Contents
Enum Class PrefabRotation
- All Implemented Interfaces:
Serializable, Comparable<PrefabRotation>, Constable
- Since:
- 07.04.2016
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionadd(PrefabRotation other) static PrefabRotationfromRotation(Rotation rotation) intgetFiller(int filler) intgetRotation(int rotation) intgetX(int x, int z) floatgetYaw()intgetZ(int x, int z) voidrotate(org.joml.Vector3d v) voidrotate(org.joml.Vector3i v) voidrotate(org.joml.Vector3L v) static PrefabRotationReturns the enum constant of this class with the specified name.static PrefabRotationstatic PrefabRotation[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ROTATION_0
-
ROTATION_90
-
ROTATION_180
-
ROTATION_270
-
-
Field Details
-
VALUES
-
PREFIX
- See Also:
-
-
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
-
fromRotation
-
valueOfExtended
-
getRotation
-
add
-
rotate
public void rotate(@Nonnull org.joml.Vector3d v) -
rotate
public void rotate(@Nonnull org.joml.Vector3i v) -
rotate
public void rotate(@Nonnull org.joml.Vector3L v) -
getX
public int getX(int x, int z) -
getZ
public int getZ(int x, int z) -
getYaw
public float getYaw() -
getRotation
public int getRotation(int rotation) -
getFiller
public int getFiller(int filler)
-