Class RotationCalculator

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

public class RotationCalculator extends Object
Mappings:
Namespace Name
named net/minecraft/util/math/RotationCalculator
intermediary net/minecraft/class_8013
official bao
  • 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 Lbao;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 Lbao;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 Lbao;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 Lbao;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> Lbao;<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 Lbao;a(II)Z
    • toRotation

      public int toRotation(Direction direction)
      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 Lbao;a(Ljm;)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 Lbao;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 Lbao;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 Lbao;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 Lbao;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 Lbao;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 Lbao;a()I