Enum ItemOption

java.lang.Object
java.lang.Enum<ItemOption>
net.gcnt.additionsplus.api.items.ItemOption
All Implemented Interfaces:
Serializable, Comparable<ItemOption>, java.lang.constant.Constable

public enum ItemOption extends Enum<ItemOption>
Additional options that can be added to items.
  • Enum Constant Details

    • DISABLE_DROP

      public static final ItemOption DISABLE_DROP
      When added, it will NOT be possible to drop this item.
    • DISABLE_INVENTORY_MOVING

      public static final ItemOption DISABLE_INVENTORY_MOVING
      When added, it will NOT be possible to move this item in the inventory.
    • DISABLE_PVP

      public static final ItemOption 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

      public static final ItemOption DISABLE_BLOCK_PLACE
      When added, it will NOT be possible to place this block.
    • DISABLE_BLOCK_BREAK

      public static final ItemOption DISABLE_BLOCK_BREAK
      When added, it will NOT be possible to break blocks with this item in the hand.
    • DISABLE_CONSUME

      public static final ItemOption DISABLE_CONSUME
      When added, player will NOT be able to consume (eat/drink) this item.
  • Method Details

    • values

      public static ItemOption[] 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

      public static ItemOption valueOf(String name)
      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 name
      NullPointerException - if the argument is null