Enum Constant and Description |
---|
ARMOR |
ARROW |
BARDING |
BLOCK |
BOAT |
BOOK |
BOW |
BUCKET |
ELYTRA |
FISHING_ROD |
FLINT_AND_STEEL |
FOOD |
POTION |
PROJECTILE |
RAW_MATERIAL |
RECORD |
SHEARS |
SHIELD |
TOOL |
UTILITY |
Modifier and Type | Method and Description |
---|---|
ItemDurability |
getItemDurability() |
ItemPermissions |
getItemPermissions(java.lang.String permissionPrefix,
PermissionType type) |
static ItemType |
getItemType(org.bukkit.inventory.ItemStack item) |
static ItemType |
getItemType(org.bukkit.Material material) |
static ItemType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ItemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemType BLOCK
public static final ItemType TOOL
public static final ItemType ARMOR
public static final ItemType FOOD
public static final ItemType RECORD
public static final ItemType BOAT
public static final ItemType BOOK
public static final ItemType RAW_MATERIAL
public static final ItemType BOW
public static final ItemType BUCKET
public static final ItemType UTILITY
public static final ItemType BARDING
public static final ItemType POTION
public static final ItemType PROJECTILE
public static final ItemType ELYTRA
public static final ItemType SHIELD
public static final ItemType ARROW
public static final ItemType SHEARS
public static final ItemType FISHING_ROD
public static final ItemType FLINT_AND_STEEL
public static ItemType[] values()
for (ItemType c : ItemType.values()) System.out.println(c);
public static ItemType 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 static ItemType getItemType(org.bukkit.inventory.ItemStack item)
public ItemDurability getItemDurability()
public ItemPermissions getItemPermissions(java.lang.String permissionPrefix, PermissionType type)
public static ItemType getItemType(org.bukkit.Material material)