Package net.gcnt.additionsplus.api.items
Enum ItemOption
- All Implemented Interfaces:
Serializable
,Comparable<ItemOption>
,java.lang.constant.Constable
Additional options that can be added to items.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhen added, it will NOT be possible to break blocks with this item in the hand.When added, it will NOT be possible to place this block.When added, player will NOT be able to consume (eat/drink) this item.When added, it will NOT be possible to drop this item.When added, it will NOT be possible to move this item in the inventory.When added, it will NOT be possible to PvP with this item in the hand. -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemOption
Returns the enum constant of this type with the specified name.static ItemOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DISABLE_DROP
When added, it will NOT be possible to drop this item. -
DISABLE_INVENTORY_MOVING
When added, it will NOT be possible to move this item in the inventory. -
DISABLE_PVP
When added, it will NOT be possible to PvP with this item in the hand. All damage will be cancelled. -
DISABLE_BLOCK_PLACE
When added, it will NOT be possible to place this block. -
DISABLE_BLOCK_BREAK
When added, it will NOT be possible to break blocks with this item in the hand. -
DISABLE_CONSUME
When added, player will NOT be able to consume (eat/drink) this item.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-