Package net.minecraft.util.math
Class RotationCalculator
java.lang.Object
net.minecraft.util.math.RotationCalculator
- Mappings:
Namespace Name named net/minecraft/util/math/RotationCalculator
intermediary net/minecraft/class_8013
official ayy
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
private final int
private final int
private final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
areRotationsParallel
(int alpha, int beta) int
clamp
(int rotationBits) int
getMax()
int
toClampedRotation
(float degrees) float
toDegrees
(int rotation) int
toRotation
(float degrees) int
toRotation
(Direction direction) float
toWrappedDegrees
(int rotation)
-
Field Details
-
max
private final int max- Mappings:
Namespace Name Mixin selector named max
Lnet/minecraft/util/math/RotationCalculator;max:I
intermediary field_41760
Lnet/minecraft/class_8013;field_41760:I
official a
Layy;a:I
-
precision
private final int precision- Mappings:
Namespace Name Mixin selector named precision
Lnet/minecraft/util/math/RotationCalculator;precision:I
intermediary field_41761
Lnet/minecraft/class_8013;field_41761:I
official b
Layy;b:I
-
rotationPerDegrees
private final float rotationPerDegrees- Mappings:
Namespace Name Mixin selector named rotationPerDegrees
Lnet/minecraft/util/math/RotationCalculator;rotationPerDegrees:F
intermediary field_41762
Lnet/minecraft/class_8013;field_41762:F
official c
Layy;c:F
-
degreesPerRotation
private final float degreesPerRotation- Mappings:
Namespace Name Mixin selector named degreesPerRotation
Lnet/minecraft/util/math/RotationCalculator;degreesPerRotation:F
intermediary field_41763
Lnet/minecraft/class_8013;field_41763:F
official d
Layy;d:F
-
-
Constructor Details
-
RotationCalculator
public RotationCalculator(int precision) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/math/RotationCalculator;<init>(I)V
intermediary <init>
Lnet/minecraft/class_8013;<init>(I)V
official <init>
Layy;<init>(I)V
-
-
Method Details
-
areRotationsParallel
public boolean areRotationsParallel(int alpha, int beta) - Mappings:
Namespace Name Mixin selector named areRotationsParallel
Lnet/minecraft/util/math/RotationCalculator;areRotationsParallel(II)Z
intermediary method_48123
Lnet/minecraft/class_8013;method_48123(II)Z
official a
Layy;a(II)Z
-
toRotation
- Mappings:
Namespace Name Mixin selector named toRotation
Lnet/minecraft/util/math/RotationCalculator;toRotation(Lnet/minecraft/util/math/Direction;)I
intermediary method_48124
Lnet/minecraft/class_8013;method_48124(Lnet/minecraft/class_2350;)I
official a
Layy;a(Lji;)I
-
toRotation
public int toRotation(float degrees) - Mappings:
Namespace Name Mixin selector named toRotation
Lnet/minecraft/util/math/RotationCalculator;toRotation(F)I
intermediary method_48121
Lnet/minecraft/class_8013;method_48121(F)I
official a
Layy;a(F)I
-
toClampedRotation
public int toClampedRotation(float degrees) - Mappings:
Namespace Name Mixin selector named toClampedRotation
Lnet/minecraft/util/math/RotationCalculator;toClampedRotation(F)I
intermediary method_48125
Lnet/minecraft/class_8013;method_48125(F)I
official b
Layy;b(F)I
-
toDegrees
public float toDegrees(int rotation) - Mappings:
Namespace Name Mixin selector named toDegrees
Lnet/minecraft/util/math/RotationCalculator;toDegrees(I)F
intermediary method_48122
Lnet/minecraft/class_8013;method_48122(I)F
official a
Layy;a(I)F
-
toWrappedDegrees
public float toWrappedDegrees(int rotation) - Mappings:
Namespace Name Mixin selector named toWrappedDegrees
Lnet/minecraft/util/math/RotationCalculator;toWrappedDegrees(I)F
intermediary method_48126
Lnet/minecraft/class_8013;method_48126(I)F
official b
Layy;b(I)F
-
clamp
public int clamp(int rotationBits) - Mappings:
Namespace Name Mixin selector named clamp
Lnet/minecraft/util/math/RotationCalculator;clamp(I)I
intermediary method_48127
Lnet/minecraft/class_8013;method_48127(I)I
official c
Layy;c(I)I
-
getMax
public int getMax()- Mappings:
Namespace Name Mixin selector named getMax
Lnet/minecraft/util/math/RotationCalculator;getMax()I
intermediary method_48120
Lnet/minecraft/class_8013;method_48120()I
official a
Layy;a()I
-