Class RotationCalculator

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

public class RotationCalculator extends Object
Mappings:
Namespace Name
official apf
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 Lapf;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 Lapf;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 Lapf;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 Lapf;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> Lapf;<init>(I)V
      intermediary <init> Lnet/minecraft/class_8013;<init>(I)V
      named <init> Lnet/minecraft/util/math/RotationCalculator;<init>(I)V
  • Method Details

    • method_48123

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

      public int toRotation(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lapf;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 Lapf;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 Lapf;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 Lapf;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 Lapf;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 Lapf;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 Lapf;a()I
      intermediary method_48120 Lnet/minecraft/class_8013;method_48120()I
      named getMax Lnet/minecraft/util/math/RotationCalculator;getMax()I