Package kr.toxicity.model.api.player
Enum Class PlayerLimb
- All Implemented Interfaces:
Serializable,Comparable<PlayerLimb>,Constable
Player limb data
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChestHeadHipLeft armLeft forearmLeft forelegLeft itemLEft legRight armRight forearmRight forelegRight itemRight legWaist -
Method Summary
Modifier and TypeMethodDescription@NotNull TransformedItemStackcreateItem(RenderSource.Profiled profiled) 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 -
LEFT_ITEM
Left item -
RIGHT_ITEM
Right item
-
-
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
Generates transformed item from player- Parameters:
profiled- target player- Returns:
- item
-