Class MathHelper

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

public class MathHelper extends Object
Mappings:
Namespace Name
intermediary net/minecraft/class_189
glue class_213
server fq
client in
named net/minecraft/util/math/MathHelper
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static float[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static float
    abs(float value)
     
    static double
    absMax(double a, double b)
     
    static final float
    cos(float value)
     
    static int
    floor(double value)
     
    static int
    floor(float value)
     
    static int
    floorDiv(int dividend, int divisor)
     
    static boolean
     
    static final float
    sin(float value)
     
    static final float
    sqrt(double value)
     
    static final float
    sqrt(float value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SINE_TABLE

      private static float[] SINE_TABLE
      Mappings:
      Namespace Name Mixin selector
      intermediary field_664 Lnet/minecraft/class_189;field_664:[F
      glue field_872 Lclass_213;field_872:[F
      server a Lfq;a:[F
      client a Lin;a:[F
      named SINE_TABLE Lnet/minecraft/util/math/MathHelper;SINE_TABLE:[F
  • Constructor Details

    • MathHelper

      public MathHelper()
  • Method Details

    • sin

      public static final float sin(float value)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_644 Lnet/minecraft/class_189;method_644(F)F
      glue method_1014 Lclass_213;method_1014(F)F
      server a Lfq;a(F)F
      client a Lin;a(F)F
      named sin Lnet/minecraft/util/math/MathHelper;sin(F)F
    • cos

      public static final float cos(float value)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_646 Lnet/minecraft/class_189;method_646(F)F
      glue method_1016 Lclass_213;method_1016(F)F
      server b Lfq;b(F)F
      client b Lin;b(F)F
      named cos Lnet/minecraft/util/math/MathHelper;cos(F)F
    • sqrt

      public static final float sqrt(float value)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_647 Lnet/minecraft/class_189;method_647(F)F
      glue method_1017 Lclass_213;method_1017(F)F
      server c Lfq;c(F)F
      client c Lin;c(F)F
      named sqrt Lnet/minecraft/util/math/MathHelper;sqrt(F)F
    • sqrt

      public static final float sqrt(double value)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_642 Lnet/minecraft/class_189;method_642(D)F
      glue method_1012 Lclass_213;method_1012(D)F
      server a Lfq;a(D)F
      client a Lin;a(D)F
      named sqrt Lnet/minecraft/util/math/MathHelper;sqrt(D)F
    • floor

      public static int floor(float value)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_648 Lnet/minecraft/class_189;method_648(F)I
      glue method_1018 Lclass_213;method_1018(F)I
      server d Lfq;d(F)I
      client d Lin;d(F)I
      named floor Lnet/minecraft/util/math/MathHelper;floor(F)I
    • floor

      public static int floor(double value)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_645 Lnet/minecraft/class_189;method_645(D)I
      glue method_1015 Lclass_213;method_1015(D)I
      server b Lfq;b(D)I
      client b Lin;b(D)I
      named floor Lnet/minecraft/util/math/MathHelper;floor(D)I
    • abs

      public static float abs(float value)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_649 Lnet/minecraft/class_189;method_649(F)F
      glue method_1019 Lclass_213;method_1019(F)F
      server e Lfq;e(F)F
      client e Lin;e(F)F
      named abs Lnet/minecraft/util/math/MathHelper;abs(F)F
    • absMax

      public static double absMax(double a, double b)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_643 Lnet/minecraft/class_189;method_643(DD)D
      glue method_1013 Lclass_213;method_1013(DD)D
      server a Lfq;a(DD)D
      client a Lin;a(DD)D
      named absMax Lnet/minecraft/util/math/MathHelper;absMax(DD)D
    • floorDiv

      @Environment(CLIENT) public static int floorDiv(int dividend, int divisor)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_650 Lnet/minecraft/class_189;method_650(II)I
      glue method_1357 Lclass_213;method_1357(II)I
      server method_650 Lfq;method_650(II)I
      client a Lin;a(II)I
      named floorDiv Lnet/minecraft/util/math/MathHelper;floorDiv(II)I
    • isNullOrEmtpy

      @Environment(CLIENT) public static boolean isNullOrEmtpy(String text)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_651 Lnet/minecraft/class_189;method_651(Ljava/lang/String;)Z
      glue method_1358 Lclass_213;method_1358(Ljava/lang/String;)Z
      server method_651 Lfq;method_651(Ljava/lang/String;)Z
      client a Lin;a(Ljava/lang/String;)Z
      named isNullOrEmtpy Lnet/minecraft/util/math/MathHelper;isNullOrEmtpy(Ljava/lang/String;)Z