Package net.minecraft.util.math
Class RotationPropertyHelper
java.lang.Object
net.minecraft.util.math.RotationPropertyHelper
- Mappings:
Namespace Name named net/minecraft/util/math/RotationPropertyHelper
intermediary net/minecraft/class_7718
official dtr
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final RotationCalculator
private static final int
private static final int
private static final int
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
fromDirection
(Direction direction) static int
fromYaw
(float yaw) static int
getMax()
static float
toDegrees
(int rotation) toDirection
(int rotation)
-
Field Details
-
CALCULATOR
- Mappings:
Namespace Name Mixin selector named CALCULATOR
Lnet/minecraft/util/math/RotationPropertyHelper;CALCULATOR:Lnet/minecraft/util/math/RotationCalculator;
intermediary field_41768
Lnet/minecraft/class_7718;field_41768:Lnet/minecraft/class_8013;
official a
Ldtr;a:Layq;
-
MAX
private static final int MAX- Mappings:
Namespace Name Mixin selector named MAX
Lnet/minecraft/util/math/RotationPropertyHelper;MAX:I
intermediary field_40345
Lnet/minecraft/class_7718;field_40345:I
official b
Ldtr;b:I
-
NORTH
private static final int NORTH- See Also:
- Mappings:
Namespace Name Mixin selector named NORTH
Lnet/minecraft/util/math/RotationPropertyHelper;NORTH:I
intermediary field_40346
Lnet/minecraft/class_7718;field_40346:I
official c
Ldtr;c:I
-
EAST
private static final int EAST- See Also:
- Mappings:
Namespace Name Mixin selector named EAST
Lnet/minecraft/util/math/RotationPropertyHelper;EAST:I
intermediary field_40347
Lnet/minecraft/class_7718;field_40347:I
official d
Ldtr;d:I
-
SOUTH
private static final int SOUTH- See Also:
- Mappings:
Namespace Name Mixin selector named SOUTH
Lnet/minecraft/util/math/RotationPropertyHelper;SOUTH:I
intermediary field_40348
Lnet/minecraft/class_7718;field_40348:I
official e
Ldtr;e:I
-
WEST
private static final int WEST- See Also:
- Mappings:
Namespace Name Mixin selector named WEST
Lnet/minecraft/util/math/RotationPropertyHelper;WEST:I
intermediary field_40349
Lnet/minecraft/class_7718;field_40349:I
official f
Ldtr;f:I
-
-
Constructor Details
-
RotationPropertyHelper
public RotationPropertyHelper()
-
-
Method Details
-
getMax
public static int getMax()- Mappings:
Namespace Name Mixin selector named getMax
Lnet/minecraft/util/math/RotationPropertyHelper;getMax()I
intermediary method_45478
Lnet/minecraft/class_7718;method_45478()I
official a
Ldtr;a()I
-
fromDirection
- Mappings:
Namespace Name Mixin selector named fromDirection
Lnet/minecraft/util/math/RotationPropertyHelper;fromDirection(Lnet/minecraft/util/math/Direction;)I
intermediary method_45481
Lnet/minecraft/class_7718;method_45481(Lnet/minecraft/class_2350;)I
official a
Ldtr;a(Ljf;)I
-
fromYaw
public static int fromYaw(float yaw) - Mappings:
Namespace Name Mixin selector named fromYaw
Lnet/minecraft/util/math/RotationPropertyHelper;fromYaw(F)I
intermediary method_45479
Lnet/minecraft/class_7718;method_45479(F)I
official a
Ldtr;a(F)I
-
toDirection
- Mappings:
Namespace Name Mixin selector named toDirection
Lnet/minecraft/util/math/RotationPropertyHelper;toDirection(I)Ljava/util/Optional;
intermediary method_45480
Lnet/minecraft/class_7718;method_45480(I)Ljava/util/Optional;
official a
Ldtr;a(I)Ljava/util/Optional;
-
toDegrees
public static float toDegrees(int rotation) - Mappings:
Namespace Name Mixin selector named toDegrees
Lnet/minecraft/util/math/RotationPropertyHelper;toDegrees(I)F
intermediary method_45482
Lnet/minecraft/class_7718;method_45482(I)F
official b
Ldtr;b(I)F
-