Updated APartType to include db friendly id
This commit is contained in:
parent
07f721e812
commit
5be8722f53
|
|
@ -4,15 +4,16 @@ import org.bukkit.Material;
|
|||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public enum APartType { //TODO add description?
|
||||
HEAD("Head", Material.PLAYER_HEAD, null),
|
||||
TRAIL("Trail", Material.GOLD_INGOT, null),
|
||||
BREAK_PLACE_BLOCK("Break/place block", Material.GRASS_BLOCK, null),
|
||||
DEATH("Death", Material.SKELETON_SKULL, null),
|
||||
ATTACK_CLOSE("Attack CQC", Material.DIAMOND_SWORD, null),
|
||||
ATTACK_RANGE("Attack ranged", Material.BOW, null),
|
||||
TELEPORT_ARRIVE("Teleport", Material.DRAGON_EGG, null);
|
||||
HEAD("HEAD", "Head", Material.PLAYER_HEAD, null),
|
||||
TRAIL("TRAIL", "Trail", Material.GOLD_INGOT, null),
|
||||
BREAK_PLACE_BLOCK("BREAK_PLACE_BLOCK", "Break/place block", Material.GRASS_BLOCK, null),
|
||||
DEATH("DEATH", "Death", Material.SKELETON_SKULL, null),
|
||||
ATTACK_CLOSE("ATTACK_CQC", "Attack CQC", Material.DIAMOND_SWORD, null),
|
||||
ATTACK_RANGE("ATTACK_RANGED", "Attack ranged", Material.BOW, null),
|
||||
TELEPORT_ARRIVE("TELEPORT", "Teleport", Material.DRAGON_EGG, null);
|
||||
|
||||
private final String name;
|
||||
private final String displayName;
|
||||
private final Material material;
|
||||
private ItemStack itemStack;
|
||||
|
||||
|
|
@ -20,6 +21,10 @@ public enum APartType { //TODO add description?
|
|||
return name;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return displayName;
|
||||
}
|
||||
|
||||
public Material getMaterial() {
|
||||
return material;
|
||||
}
|
||||
|
|
@ -32,8 +37,9 @@ public enum APartType { //TODO add description?
|
|||
this.itemStack = itemStack;
|
||||
}
|
||||
|
||||
APartType(String name, Material material, ItemStack itemStack) {
|
||||
APartType(String name, String displayName, Material material, ItemStack itemStack) {
|
||||
this.name = name;
|
||||
this.displayName = displayName;
|
||||
this.material = material;
|
||||
this.itemStack = itemStack;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user