public static enum ItemMeta.HiddenModifierFlag extends Enum<ItemMeta.HiddenModifierFlag>
Enum Constant and Description |
---|
ATTRIBUTES
Flag representing attributes being hidden.
|
CAN_DESTROY
Flag representing the 'CanDestroy' NBT Tag on tools.
|
CAN_PLACE_ON
Flag representing the 'CanPlaceOn' NBT Tag on blocks.
|
ENCHANTMENTS
Flag representing enchantments being hidden.
|
OTHER
Flag representing any other NBT values (future Minecraft versions).
|
UNBREAKABLE
Flag representing the 'Unbreakable' NBT Tag on items with Durability.
|
Modifier and Type | Method and Description |
---|---|
int |
modifier() |
static ItemMeta.HiddenModifierFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemMeta.HiddenModifierFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemMeta.HiddenModifierFlag ENCHANTMENTS
public static final ItemMeta.HiddenModifierFlag ATTRIBUTES
public static final ItemMeta.HiddenModifierFlag UNBREAKABLE
public static final ItemMeta.HiddenModifierFlag CAN_DESTROY
public static final ItemMeta.HiddenModifierFlag CAN_PLACE_ON
public static final ItemMeta.HiddenModifierFlag OTHER
public static ItemMeta.HiddenModifierFlag[] values()
for (ItemMeta.HiddenModifierFlag c : ItemMeta.HiddenModifierFlag.values()) System.out.println(c);
public static ItemMeta.HiddenModifierFlag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int modifier()
Copyright © 2016. All rights reserved.