Enum Class Attachment
- All Implemented Interfaces:
Serializable, Comparable<Attachment>, Constable
Points on the 1.8.9 player model that things attach to. Each anchor moves and turns with its model part. Offsets are
in model pixels (1/16 of a model unit), with x toward the player's left, y down and z toward the back.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AttachmentReturns the enum constant of this class with the specified name.static Attachment[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEAD
Top centre of the head, or of the helmet when one is worn; turns with the head. -
BODY
Top centre of the torso, at the neck; tilts forward with the body when sneaking. -
BACK
Top centre of the back, or of the chestplate when one is worn; tilts with the body.
-
-
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
-