Class RotationPropertyHelper

java.lang.Object
net.minecraft.util.math.RotationPropertyHelper

public class RotationPropertyHelper extends Object
Mappings:
Namespace Name
official dcz
intermediary net/minecraft/class_7718
named net/minecraft/util/math/RotationPropertyHelper
  • Field Details

    • CALCULATOR

      private static final RotationCalculator CALCULATOR
      Mappings:
      Namespace Name Mixin selector
      official a Ldcz;a:Lapf;
      intermediary field_41768 Lnet/minecraft/class_7718;field_41768:Lnet/minecraft/class_8013;
      named CALCULATOR Lnet/minecraft/util/math/RotationPropertyHelper;CALCULATOR:Lnet/minecraft/util/math/RotationCalculator;
    • MAX

      private static final int MAX
      Mappings:
      Namespace Name Mixin selector
      official b Ldcz;b:I
      intermediary field_40345 Lnet/minecraft/class_7718;field_40345:I
      named MAX Lnet/minecraft/util/math/RotationPropertyHelper;MAX:I
    • NORTH

      private static final int NORTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldcz;c:I
      intermediary field_40346 Lnet/minecraft/class_7718;field_40346:I
      named NORTH Lnet/minecraft/util/math/RotationPropertyHelper;NORTH:I
    • EAST

      private static final int EAST
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldcz;d:I
      intermediary field_40347 Lnet/minecraft/class_7718;field_40347:I
      named EAST Lnet/minecraft/util/math/RotationPropertyHelper;EAST:I
    • SOUTH

      private static final int SOUTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Ldcz;e:I
      intermediary field_40348 Lnet/minecraft/class_7718;field_40348:I
      named SOUTH Lnet/minecraft/util/math/RotationPropertyHelper;SOUTH:I
    • WEST

      private static final int WEST
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Ldcz;f:I
      intermediary field_40349 Lnet/minecraft/class_7718;field_40349:I
      named WEST Lnet/minecraft/util/math/RotationPropertyHelper;WEST:I
  • Constructor Details

    • RotationPropertyHelper

      public RotationPropertyHelper()
  • Method Details

    • getMax

      public static int getMax()
      Mappings:
      Namespace Name Mixin selector
      official a Ldcz;a()I
      intermediary method_45478 Lnet/minecraft/class_7718;method_45478()I
      named getMax Lnet/minecraft/util/math/RotationPropertyHelper;getMax()I
    • fromDirection

      public static int fromDirection(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Ldcz;a(Lha;)I
      intermediary method_45481 Lnet/minecraft/class_7718;method_45481(Lnet/minecraft/class_2350;)I
      named fromDirection Lnet/minecraft/util/math/RotationPropertyHelper;fromDirection(Lnet/minecraft/util/math/Direction;)I
    • fromYaw

      public static int fromYaw(float yaw)
      Mappings:
      Namespace Name Mixin selector
      official a Ldcz;a(F)I
      intermediary method_45479 Lnet/minecraft/class_7718;method_45479(F)I
      named fromYaw Lnet/minecraft/util/math/RotationPropertyHelper;fromYaw(F)I
    • toDirection

      public static Optional<Direction> toDirection(int rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Ldcz;a(I)Ljava/util/Optional;
      intermediary method_45480 Lnet/minecraft/class_7718;method_45480(I)Ljava/util/Optional;
      named toDirection Lnet/minecraft/util/math/RotationPropertyHelper;toDirection(I)Ljava/util/Optional;
    • toDegrees

      public static float toDegrees(int rotation)
      Mappings:
      Namespace Name Mixin selector
      official b Ldcz;b(I)F
      intermediary method_45482 Lnet/minecraft/class_7718;method_45482(I)F
      named toDegrees Lnet/minecraft/util/math/RotationPropertyHelper;toDegrees(I)F