Enum Class PlayerModelPart

java.lang.Object
java.lang.Enum<PlayerModelPart>
org.bukkit.entity.model.PlayerModelPart
All Implemented Interfaces:
Serializable, Comparable<PlayerModelPart>, Constable

@Experimental public enum PlayerModelPart extends Enum<PlayerModelPart>
Represents a part of a player model/texture.
  • Enum Constant Details

    • CAPE

      public static final PlayerModelPart CAPE
      Player cape.
    • JACKET

      public static final PlayerModelPart JACKET
      Player torso covering.
    • LEFT_SLEEVE

      public static final PlayerModelPart LEFT_SLEEVE
      Player left arm covering.
    • RIGHT_SLEEVE

      public static final PlayerModelPart RIGHT_SLEEVE
      Player right arm covering.
    • LEFT_PANTS_LEG

      public static final PlayerModelPart LEFT_PANTS_LEG
      Player left leg covering.
    • RIGHT_PANTS_LEG

      public static final PlayerModelPart RIGHT_PANTS_LEG
      Player right leg covering.
    • HAT

      public static final PlayerModelPart HAT
      Player hat/helmet.
  • Method Details

    • values

      public static PlayerModelPart[] 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 PlayerModelPart 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