Package net.minecraft.util.math
Enum Class AxisRotation
- All Implemented Interfaces:
Serializable
,Comparable<AxisRotation>
,Constable
- Mappings:
Namespace Name named net/minecraft/util/math/AxisRotation
intermediary net/minecraft/class_10821
official i
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<AxisRotation> final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AxisRotation
fromDegrees
(int degrees) Deprecated.int
rotate
(int index) static AxisRotation
Returns the enum constant of this class with the specified name.static AxisRotation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
R0
- Mappings:
Namespace Name Mixin selector named R0
Lnet/minecraft/util/math/AxisRotation;R0:Lnet/minecraft/util/math/AxisRotation;
intermediary field_57029
Lnet/minecraft/class_10821;field_57029:Lnet/minecraft/class_10821;
official a
Li;a:Li;
-
R90
- Mappings:
Namespace Name Mixin selector named R90
Lnet/minecraft/util/math/AxisRotation;R90:Lnet/minecraft/util/math/AxisRotation;
intermediary field_57030
Lnet/minecraft/class_10821;field_57030:Lnet/minecraft/class_10821;
official b
Li;b:Li;
-
R180
- Mappings:
Namespace Name Mixin selector named R180
Lnet/minecraft/util/math/AxisRotation;R180:Lnet/minecraft/util/math/AxisRotation;
intermediary field_57031
Lnet/minecraft/class_10821;field_57031:Lnet/minecraft/class_10821;
official c
Li;c:Li;
-
R270
- Mappings:
Namespace Name Mixin selector named R270
Lnet/minecraft/util/math/AxisRotation;R270:Lnet/minecraft/util/math/AxisRotation;
intermediary field_57032
Lnet/minecraft/class_10821;field_57032:Lnet/minecraft/class_10821;
official d
Li;d:Li;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/util/math/AxisRotation;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_57033
Lnet/minecraft/class_10821;field_57033:Lcom/mojang/serialization/Codec;
official e
Li;e:Lcom/mojang/serialization/Codec;
-
index
public final int index- Mappings:
Namespace Name Mixin selector named index
Lnet/minecraft/util/math/AxisRotation;index:I
intermediary field_57034
Lnet/minecraft/class_10821;field_57034:I
official f
Li;f:I
-
-
Constructor Details
-
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
-
fromDegrees
Deprecated.- Mappings:
Namespace Name Mixin selector named fromDegrees
Lnet/minecraft/util/math/AxisRotation;fromDegrees(I)Lnet/minecraft/util/math/AxisRotation;
intermediary method_68064
Lnet/minecraft/class_10821;method_68064(I)Lnet/minecraft/class_10821;
official a
Li;a(I)Li;
-
rotate
public int rotate(int index) - Mappings:
Namespace Name Mixin selector named rotate
Lnet/minecraft/util/math/AxisRotation;rotate(I)I
intermediary method_68067
Lnet/minecraft/class_10821;method_68067(I)I
official b
Li;b(I)I
-