mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2025-12-29 03:39:08 +00:00
feature: add icon & icon model data editing
This commit is contained in:
@@ -45,6 +45,7 @@ public class ConfiguredRegion {
|
||||
private final List<DiscoveryReward> rewards;
|
||||
@NeedsGUI private Sound sound;
|
||||
@NeedsGUI private String icon;
|
||||
private int iconModel;
|
||||
@NeedsGUI private String undiscoveredIcon;
|
||||
private final List<IconCommand> iconCommand;
|
||||
@EditableField(description = "Toggle whether the coordinates of the region are shown", name = "Toggle coordinates")
|
||||
@@ -149,6 +150,14 @@ public class ConfiguredRegion {
|
||||
this.icon = material.name();
|
||||
}
|
||||
|
||||
public int getIconModel() {
|
||||
return iconModel;
|
||||
}
|
||||
|
||||
public void setIconModel(int iconModel) {
|
||||
this.iconModel = iconModel;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public ItemStack getUndiscoveredIcon() {
|
||||
if (undiscoveredIcon == null) return new ItemStack(Material.TOTEM_OF_UNDYING);
|
||||
|
||||
Reference in New Issue
Block a user