Enum Class NPC.Slot

java.lang.Object
java.lang.Enum<NPC.Slot>
dev.sergiferry.playernpc.api.NPC.Slot
All Implemented Interfaces:
Serializable, Comparable<NPC.Slot>, Constable
Enclosing class:
NPC

public static enum NPC.Slot extends Enum<NPC.Slot>
Since:
2021.1
  • Enum Constant Details

    • HELMET

      public static final NPC.Slot HELMET
    • CHESTPLATE

      public static final NPC.Slot CHESTPLATE
    • LEGGINGS

      public static final NPC.Slot LEGGINGS
    • BOOTS

      public static final NPC.Slot BOOTS
    • MAINHAND

      public static final NPC.Slot MAINHAND
    • OFFHAND

      public static final NPC.Slot OFFHAND
  • Method Details

    • values

      public static NPC.Slot[] 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 NPC.Slot 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
    • getSlot

      public int getSlot()
    • isDeprecated

      public boolean isDeprecated()