Enum HolderItemPosition

java.lang.Object
java.lang.Enum<HolderItemPosition>
nl.sbdeveloper.vehiclesplus.api.vehicles.HolderItemPosition
All Implemented Interfaces:
Serializable, Comparable<HolderItemPosition>

public enum HolderItemPosition extends Enum<HolderItemPosition>
The position of an item in the holder (armor stand)
  • Enum Constant Details

    • MAIN_HAND

      public static final HolderItemPosition MAIN_HAND
      The main hand (right) of the armor stand
    • OFF_HAND

      public static final HolderItemPosition OFF_HAND
      The offhand (left) of the armor stand
  • Method Details

    • values

      public static HolderItemPosition[] 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 HolderItemPosition 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
    • setItem

      public void setItem(org.bukkit.entity.ArmorStand stand, org.bukkit.inventory.ItemStack item)
      Set an item to the holder This will set the item to the correct slot
      Parameters:
      stand - The armor stand
      item - The item to set