Modifier and Type | Method and Description |
---|---|
java.util.List<CustomShapedRecipe> |
getCustomShapedRecipe(org.bukkit.Material itemMaterial,
org.bukkit.Material stickMaterial) |
java.util.List<CustomShapedRecipe> |
getCustomShapedRecipe(RecipeIngredient itemIngredient,
RecipeIngredient stickIngredient) |
ItemDurability |
getDurabilityMechanics() |
ItemPermissions |
getItemPermissions(java.lang.String permissionPrefix,
PermissionType type) |
static ToolType |
getToolType(org.bukkit.Material material) |
java.lang.String |
toIngameString() |
static ToolType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ToolType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ToolType SWORD
public static final ToolType AXE
public static final ToolType PICKAXE
public static final ToolType SPADE
public static final ToolType HOE
public static ToolType[] values()
for (ToolType c : ToolType.values()) System.out.println(c);
public static ToolType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic ItemDurability getDurabilityMechanics()
public ItemPermissions getItemPermissions(java.lang.String permissionPrefix, PermissionType type)
public java.util.List<CustomShapedRecipe> getCustomShapedRecipe(org.bukkit.Material itemMaterial, org.bukkit.Material stickMaterial)
public java.util.List<CustomShapedRecipe> getCustomShapedRecipe(RecipeIngredient itemIngredient, RecipeIngredient stickIngredient)
public static ToolType getToolType(org.bukkit.Material material)
public java.lang.String toIngameString()