Enum Class ItemHideFlag

java.lang.Object
java.lang.Enum<ItemHideFlag>
net.minestom.server.item.ItemHideFlag
All Implemented Interfaces:
Serializable, Comparable<ItemHideFlag>, Constable

public enum ItemHideFlag extends Enum<ItemHideFlag>
Represents a hide flag which can be applied to an ItemStack using ItemMeta.Builder.hideFlag(int).
  • Enum Constant Details

    • HIDE_ENCHANTS

      public static final ItemHideFlag HIDE_ENCHANTS
    • HIDE_ATTRIBUTES

      public static final ItemHideFlag HIDE_ATTRIBUTES
    • HIDE_UNBREAKABLE

      public static final ItemHideFlag HIDE_UNBREAKABLE
    • HIDE_DESTROYS

      public static final ItemHideFlag HIDE_DESTROYS
    • HIDE_PLACED_ON

      public static final ItemHideFlag HIDE_PLACED_ON
    • HIDE_POTION_EFFECTS

      public static final ItemHideFlag HIDE_POTION_EFFECTS
    • HIDE_DYE

      public static final ItemHideFlag HIDE_DYE
  • Method Details

    • values

      public static ItemHideFlag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ItemHideFlag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getBitFieldPart

      public int getBitFieldPart()