Class RotationCalculator

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

public class RotationCalculator extends Object
Mappings:
Namespace Name
official aph
intermediary net/minecraft/class_8013
named net/minecraft/util/math/RotationCalculator
  • Field Details

    • max

      private final int max
      Mappings:
      Namespace Name Mixin selector
      official a Laph;a:I
      intermediary field_41760 Lnet/minecraft/class_8013;field_41760:I
      named max Lnet/minecraft/util/math/RotationCalculator;max:I
    • precision

      private final int precision
      Mappings:
      Namespace Name Mixin selector
      official b Laph;b:I
      intermediary field_41761 Lnet/minecraft/class_8013;field_41761:I
      named precision Lnet/minecraft/util/math/RotationCalculator;precision:I
    • rotationPerDegrees

      private final float rotationPerDegrees
      Mappings:
      Namespace Name Mixin selector
      official c Laph;c:F
      intermediary field_41762 Lnet/minecraft/class_8013;field_41762:F
      named rotationPerDegrees Lnet/minecraft/util/math/RotationCalculator;rotationPerDegrees:F
    • degreesPerRotation

      private final float degreesPerRotation
      Mappings:
      Namespace Name Mixin selector
      official d Laph;d:F
      intermediary field_41763 Lnet/minecraft/class_8013;field_41763:F
      named degreesPerRotation Lnet/minecraft/util/math/RotationCalculator;degreesPerRotation:F
  • Constructor Details

    • RotationCalculator

      public RotationCalculator(int precision)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laph;<init>(I)V
      intermediary <init> Lnet/minecraft/class_8013;<init>(I)V
      named <init> Lnet/minecraft/util/math/RotationCalculator;<init>(I)V
  • Method Details

    • areRotationsParallel

      public boolean areRotationsParallel(int alpha, int beta)
      Mappings:
      Namespace Name Mixin selector
      official a Laph;a(II)Z
      intermediary method_48123 Lnet/minecraft/class_8013;method_48123(II)Z
      named areRotationsParallel Lnet/minecraft/util/math/RotationCalculator;areRotationsParallel(II)Z
    • toRotation

      public int toRotation(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Laph;a(Lha;)I
      intermediary method_48124 Lnet/minecraft/class_8013;method_48124(Lnet/minecraft/class_2350;)I
      named toRotation Lnet/minecraft/util/math/RotationCalculator;toRotation(Lnet/minecraft/util/math/Direction;)I
    • toRotation

      public int toRotation(float degrees)
      Mappings:
      Namespace Name Mixin selector
      official a Laph;a(F)I
      intermediary method_48121 Lnet/minecraft/class_8013;method_48121(F)I
      named toRotation Lnet/minecraft/util/math/RotationCalculator;toRotation(F)I
    • toClampedRotation

      public int toClampedRotation(float degrees)
      Mappings:
      Namespace Name Mixin selector
      official b Laph;b(F)I
      intermediary method_48125 Lnet/minecraft/class_8013;method_48125(F)I
      named toClampedRotation Lnet/minecraft/util/math/RotationCalculator;toClampedRotation(F)I
    • toDegrees

      public float toDegrees(int rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Laph;a(I)F
      intermediary method_48122 Lnet/minecraft/class_8013;method_48122(I)F
      named toDegrees Lnet/minecraft/util/math/RotationCalculator;toDegrees(I)F
    • toWrappedDegrees

      public float toWrappedDegrees(int rotation)
      Mappings:
      Namespace Name Mixin selector
      official b Laph;b(I)F
      intermediary method_48126 Lnet/minecraft/class_8013;method_48126(I)F
      named toWrappedDegrees Lnet/minecraft/util/math/RotationCalculator;toWrappedDegrees(I)F
    • clamp

      public int clamp(int rotationBits)
      Mappings:
      Namespace Name Mixin selector
      official c Laph;c(I)I
      intermediary method_48127 Lnet/minecraft/class_8013;method_48127(I)I
      named clamp Lnet/minecraft/util/math/RotationCalculator;clamp(I)I
    • getMax

      public int getMax()
      Mappings:
      Namespace Name Mixin selector
      official a Laph;a()I
      intermediary method_48120 Lnet/minecraft/class_8013;method_48120()I
      named getMax Lnet/minecraft/util/math/RotationCalculator;getMax()I