Package kr.toxicity.model.api.platform
Enum Class PlatformItemTransform
- All Implemented Interfaces:
Serializable,Comparable<PlatformItemTransform>,Constable
Defines the display context for an item model.
These values correspond to the display settings in a Minecraft item model file.
- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDisplayed in the left hand in first-person view.Displayed in the right hand in first-person view.Displayed in an item frame.Displayed on the ground as an item entity.Displayed in a GUI slot.Displayed on the head (e.g., helmet).No specific transform.Displayed in the left hand in third-person view.Displayed in the right hand in third-person view. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlatformItemTransformReturns the enum constant of this class with the specified name.static PlatformItemTransform[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No specific transform.- Since:
- 2.0.0
-
THIRDPERSON_LEFTHAND
Displayed in the left hand in third-person view.- Since:
- 2.0.0
-
THIRDPERSON_RIGHTHAND
Displayed in the right hand in third-person view.- Since:
- 2.0.0
-
FIRSTPERSON_LEFTHAND
Displayed in the left hand in first-person view.- Since:
- 2.0.0
-
FIRSTPERSON_RIGHTHAND
Displayed in the right hand in first-person view.- Since:
- 2.0.0
-
HEAD
Displayed on the head (e.g., helmet).- Since:
- 2.0.0
-
GUI
Displayed in a GUI slot.- Since:
- 2.0.0
-
GROUND
Displayed on the ground as an item entity.- Since:
- 2.0.0
-
FIXED
Displayed in an item frame.- Since:
- 2.0.0
-
-
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
-