Enum Class AccessorySlot

java.lang.Object
java.lang.Enum<AccessorySlot>
com.stereowalker.unionlib.world.entity.AccessorySlot
All Implemented Interfaces:
Serializable, Comparable<AccessorySlot>, Constable

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

  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<AccessorySlot> CODEC
  • Method Details

    • values

      public static AccessorySlot[] 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 AccessorySlot 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
    • getName

      public String getName()
    • byName

      public static AccessorySlot byName(String pTargetName)
    • byGroupAndIndex

      public static AccessorySlot byGroupAndIndex(AccessorySlot.Group pSlotType, int pSlotIndex)
      Returns the slot type based on the slot group and the index inside of that group.
    • getGroup

      public AccessorySlot.Group getGroup()
    • getValidStack

      public Predicate<net.minecraft.world.item.ItemStack> getValidStack()
    • getTextureIndex

      public int getTextureIndex()
    • getIndex

      public int getIndex()