Enum Class PlayerLimb
- All Implemented Interfaces:
Serializable, Comparable<PlayerLimb>, Constable
Player limb data
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChestHeadHipLeft armLeft forearmLeft forelegLeft legRight armRight forearmRight forelegRight legWaist -
Method Summary
Modifier and TypeMethodDescription@NotNull TransformedItemStackcreateItem(@NotNull BoneRenderContext context) Generates transformed item from playerstatic PlayerLimbReturns the enum constant of this class with the specified name.static PlayerLimb[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEAD
Head -
RIGHT_ARM
Right arm -
RIGHT_FOREARM
Right forearm -
LEFT_ARM
Left arm -
LEFT_FOREARM
Left forearm -
HIP
Hip -
WAIST
Waist -
CHEST
Chest -
RIGHT_LEG
Right leg -
RIGHT_FORELEG
Right foreleg -
LEFT_LEG
Left leg -
LEFT_FORELEG
Left foreleg
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
createItem
@NotNull public @NotNull TransformedItemStack createItem(@NotNull @NotNull BoneRenderContext context) Generates transformed item from player- Parameters:
context- context- Returns:
- item
-