9
0
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:
SamB440
2022-06-05 14:38:57 +01:00
parent 57b7fce059
commit 75e821772d
3 changed files with 41 additions and 1 deletions

View File

@@ -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);