Enum HologramEquipment.Slot

java.lang.Object
java.lang.Enum<HologramEquipment.Slot>
de.marcely.bedwars.api.world.hologram.HologramEquipment.Slot
All Implemented Interfaces:
Serializable, Comparable<HologramEquipment.Slot>, java.lang.constant.Constable
Enclosing interface:
HologramEquipment

public static enum HologramEquipment.Slot extends Enum<HologramEquipment.Slot>
Represents a slot in a holograms equipment inventory.
  • Enum Constant Details

  • Method Details

    • values

      public static HologramEquipment.Slot[] 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 HologramEquipment.Slot 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
    • isSupported

      public boolean isSupported()
      Returns whether the current spigot software supports the slot type.

      E.g. OFF_HAND only is being supported on 1.9+. The method would return false on 1.8.8.

      Returns:
      true when this slot may be used on the currently used spigot software
    • getInternalIdV8

      public int getInternalIdV8()
      Returns the 1.8 NMS id that is being used for the given slot.

      There shouldn't be a use for this for most developers. Mainly used for internal purposes.

      Returns:
      The 1.8 NMS id for this slot
    • getInternalIdV9

      public String getInternalIdV9()
      Returns the 1.9+ NMS id that is being used for the given slot.

      There shouldn't be a use for this for most developers. Mainly used for internal purposes.

      Returns:
      The 1.9+ NMS id for this slot
    • getInternalIdV17

      public String getInternalIdV17()
      Returns the 1.17+ NMS id that is being used for the given slot.

      There shouldn't be a use for this for most developers. Mainly used for internal purposes.

      Returns:
      The 1.17+ NMS id for this slot