Class RotationPropertyHelper

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

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

    • CALCULATOR

      private static final RotationCalculator 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 Ldtj;a:Lazj;
    • 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 Ldtj;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 Ldtj;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 Ldtj;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 Ldtj;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 Ldtj;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 Ldtj;a()I
    • fromDirection

      public static int fromDirection(Direction direction)
      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 Ldtj;a(Lje;)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 Ldtj;a(F)I
    • toDirection

      public static Optional<Direction> toDirection(int rotation)
      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 Ldtj;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 Ldtj;b(I)F