Enum Class EquipmentSlotType

java.lang.Object
java.lang.Enum<EquipmentSlotType>
net.minecraft.inventory.EquipmentSlotType
All Implemented Interfaces:
Serializable, Comparable<EquipmentSlotType>, Constable

public enum EquipmentSlotType extends Enum<EquipmentSlotType>
  • Enum Constant Details

  • Field Details

    • type

      private final EquipmentSlotType.Group type
    • index

      private final int index
    • filterFlag

      private final int filterFlag
    • name

      private final String name
  • Constructor Details

  • Method Details

    • values

      public static EquipmentSlotType[] 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 EquipmentSlotType 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
    • getType

      public EquipmentSlotType.Group getType()
    • getIndex

      public int getIndex()
    • getFilterFlag

      public int getFilterFlag()
    • getName

      public String getName()
    • byName

      public static EquipmentSlotType byName(String p_188451_0_)
    • byTypeAndIndex

      public static EquipmentSlotType byTypeAndIndex(EquipmentSlotType.Group p_220318_0_, int p_220318_1_)