类 MathHelper


  • public class MathHelper
    extends Object
    Mappings:
    Namespace Name
    official ags
    intermediary net/minecraft/class_3532
    named net/minecraft/util/math/MathHelper
    • 字段详细资料

      • field_29850

        private static final int field_29850
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official h Lags;h:I
        intermediary field_29850 Lnet/minecraft/class_3532;field_29850:I
        named field_29850 Lnet/minecraft/util/math/MathHelper;field_29850:I
      • field_29851

        private static final float field_29851
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official i Lags;i:F
        intermediary field_29851 Lnet/minecraft/class_3532;field_29851:F
        named field_29851 Lnet/minecraft/util/math/MathHelper;field_29851:F
      • field_29852

        private static final long field_29852
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official j Lags;j:J
        intermediary field_29852 Lnet/minecraft/class_3532;field_29852:J
        named field_29852 Lnet/minecraft/util/math/MathHelper;field_29852:J
      • field_29853

        private static final long field_29853
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official k Lags;k:J
        intermediary field_29853 Lnet/minecraft/class_3532;field_29853:J
        named field_29853 Lnet/minecraft/util/math/MathHelper;field_29853:J
      • field_29854

        private static final long field_29854
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official l Lags;l:J
        intermediary field_29854 Lnet/minecraft/class_3532;field_29854:J
        named field_29854 Lnet/minecraft/util/math/MathHelper;field_29854:J
      • field_29855

        private static final long field_29855
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official m Lags;m:J
        intermediary field_29855 Lnet/minecraft/class_3532;field_29855:J
        named field_29855 Lnet/minecraft/util/math/MathHelper;field_29855:J
      • field_29844

        public static final float field_29844
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a:F
        intermediary field_29844 Lnet/minecraft/class_3532;field_29844:F
        named field_29844 Lnet/minecraft/util/math/MathHelper;field_29844:F
      • field_29845

        public static final float field_29845
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b:F
        intermediary field_29845 Lnet/minecraft/class_3532;field_29845:F
        named field_29845 Lnet/minecraft/util/math/MathHelper;field_29845:F
      • field_29846

        public static final float field_29846
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c:F
        intermediary field_29846 Lnet/minecraft/class_3532;field_29846:F
        named field_29846 Lnet/minecraft/util/math/MathHelper;field_29846:F
      • field_29847

        public static final float field_29847
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official d Lags;d:F
        intermediary field_29847 Lnet/minecraft/class_3532;field_29847:F
        named field_29847 Lnet/minecraft/util/math/MathHelper;field_29847:F
      • field_29848

        public static final float field_29848
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official e Lags;e:F
        intermediary field_29848 Lnet/minecraft/class_3532;field_29848:F
        named field_29848 Lnet/minecraft/util/math/MathHelper;field_29848:F
      • field_29849

        public static final float field_29849
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official f Lags;f:F
        intermediary field_29849 Lnet/minecraft/class_3532;field_29849:F
        named field_29849 Lnet/minecraft/util/math/MathHelper;field_29849:F
      • SQUARE_ROOT_OF_TWO

        public static final float SQUARE_ROOT_OF_TWO
        Mappings:
        Namespace Name Mixin selector
        official g Lags;g:F
        intermediary field_15724 Lnet/minecraft/class_3532;field_15724:F
        named SQUARE_ROOT_OF_TWO Lnet/minecraft/util/math/MathHelper;SQUARE_ROOT_OF_TWO:F
      • field_29856

        private static final float field_29856
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official n Lags;n:F
        intermediary field_29856 Lnet/minecraft/class_3532;field_29856:F
        named field_29856 Lnet/minecraft/util/math/MathHelper;field_29856:F
      • SINE_TABLE

        private static final float[] SINE_TABLE
        Mappings:
        Namespace Name Mixin selector
        official o Lags;o:[F
        intermediary field_15725 Lnet/minecraft/class_3532;field_15725:[F
        named SINE_TABLE Lnet/minecraft/util/math/MathHelper;SINE_TABLE:[F
      • RANDOM

        private static final Random RANDOM
        Mappings:
        Namespace Name Mixin selector
        official p Lags;p:Ljava/util/Random;
        intermediary field_15726 Lnet/minecraft/class_3532;field_15726:Ljava/util/Random;
        named RANDOM Lnet/minecraft/util/math/MathHelper;RANDOM:Ljava/util/Random;
      • MULTIPLY_DE_BRUIJN_BIT_POSITION

        private static final int[] MULTIPLY_DE_BRUIJN_BIT_POSITION
        Mappings:
        Namespace Name Mixin selector
        official q Lags;q:[I
        intermediary field_15723 Lnet/minecraft/class_3532;field_15723:[I
        named MULTIPLY_DE_BRUIJN_BIT_POSITION Lnet/minecraft/util/math/MathHelper;MULTIPLY_DE_BRUIJN_BIT_POSITION:[I
      • field_29857

        private static final double field_29857
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official r Lags;r:D
        intermediary field_29857 Lnet/minecraft/class_3532;field_29857:D
        named field_29857 Lnet/minecraft/util/math/MathHelper;field_29857:D
      • field_29858

        private static final int field_29858
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official s Lags;s:I
        intermediary field_29858 Lnet/minecraft/class_3532;field_29858:I
        named field_29858 Lnet/minecraft/util/math/MathHelper;field_29858:I
      • field_29859

        private static final int field_29859
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official t Lags;t:I
        intermediary field_29859 Lnet/minecraft/class_3532;field_29859:I
        named field_29859 Lnet/minecraft/util/math/MathHelper;field_29859:I
      • SMALLEST_FRACTION_FREE_DOUBLE

        private static final double SMALLEST_FRACTION_FREE_DOUBLE
        Mappings:
        Namespace Name Mixin selector
        official u Lags;u:D
        intermediary field_15728 Lnet/minecraft/class_3532;field_15728:D
        named SMALLEST_FRACTION_FREE_DOUBLE Lnet/minecraft/util/math/MathHelper;SMALLEST_FRACTION_FREE_DOUBLE:D
      • ARCSINE_TABLE

        private static final double[] ARCSINE_TABLE
        Mappings:
        Namespace Name Mixin selector
        official v Lags;v:[D
        intermediary field_15727 Lnet/minecraft/class_3532;field_15727:[D
        named ARCSINE_TABLE Lnet/minecraft/util/math/MathHelper;ARCSINE_TABLE:[D
      • COSINE_TABLE

        private static final double[] COSINE_TABLE
        Mappings:
        Namespace Name Mixin selector
        official w Lags;w:[D
        intermediary field_15722 Lnet/minecraft/class_3532;field_15722:[D
        named COSINE_TABLE Lnet/minecraft/util/math/MathHelper;COSINE_TABLE:[D
    • 构造器详细资料

      • MathHelper

        public MathHelper()
    • 方法详细资料

      • sin

        public static float sin​(float value)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(F)F
        intermediary method_15374 Lnet/minecraft/class_3532;method_15374(F)F
        named sin Lnet/minecraft/util/math/MathHelper;sin(F)F
      • cos

        public static float cos​(float value)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(F)F
        intermediary method_15362 Lnet/minecraft/class_3532;method_15362(F)F
        named cos Lnet/minecraft/util/math/MathHelper;cos(F)F
      • sqrt

        public static float sqrt​(float value)
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c(F)F
        intermediary method_15355 Lnet/minecraft/class_3532;method_15355(F)F
        named sqrt Lnet/minecraft/util/math/MathHelper;sqrt(F)F
      • sqrt

        public static float sqrt​(double value)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(D)F
        intermediary method_15368 Lnet/minecraft/class_3532;method_15368(D)F
        named sqrt Lnet/minecraft/util/math/MathHelper;sqrt(D)F
      • floor

        public static int floor​(float value)
        Mappings:
        Namespace Name Mixin selector
        official d Lags;d(F)I
        intermediary method_15375 Lnet/minecraft/class_3532;method_15375(F)I
        named floor Lnet/minecraft/util/math/MathHelper;floor(F)I
      • fastFloor

        public static int fastFloor​(double value)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(D)I
        intermediary method_15365 Lnet/minecraft/class_3532;method_15365(D)I
        named fastFloor Lnet/minecraft/util/math/MathHelper;fastFloor(D)I
      • floor

        public static int floor​(double value)
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c(D)I
        intermediary method_15357 Lnet/minecraft/class_3532;method_15357(D)I
        named floor Lnet/minecraft/util/math/MathHelper;floor(D)I
      • lfloor

        public static long lfloor​(double value)
        Mappings:
        Namespace Name Mixin selector
        official d Lags;d(D)J
        intermediary method_15372 Lnet/minecraft/class_3532;method_15372(D)J
        named lfloor Lnet/minecraft/util/math/MathHelper;lfloor(D)J
      • method_34953

        public static int method_34953​(double double2)
        Mappings:
        Namespace Name Mixin selector
        official e Lags;e(D)I
        intermediary method_34953 Lnet/minecraft/class_3532;method_34953(D)I
        named method_34953 Lnet/minecraft/util/math/MathHelper;method_34953(D)I
      • abs

        public static float abs​(float value)
        Mappings:
        Namespace Name Mixin selector
        official e Lags;e(F)F
        intermediary method_15379 Lnet/minecraft/class_3532;method_15379(F)F
        named abs Lnet/minecraft/util/math/MathHelper;abs(F)F
      • abs

        public static int abs​(int value)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(I)I
        intermediary method_15382 Lnet/minecraft/class_3532;method_15382(I)I
        named abs Lnet/minecraft/util/math/MathHelper;abs(I)I
      • ceil

        public static int ceil​(float value)
        Mappings:
        Namespace Name Mixin selector
        official f Lags;f(F)I
        intermediary method_15386 Lnet/minecraft/class_3532;method_15386(F)I
        named ceil Lnet/minecraft/util/math/MathHelper;ceil(F)I
      • ceil

        public static int ceil​(double value)
        Mappings:
        Namespace Name Mixin selector
        official f Lags;f(D)I
        intermediary method_15384 Lnet/minecraft/class_3532;method_15384(D)I
        named ceil Lnet/minecraft/util/math/MathHelper;ceil(D)I
      • method_34939

        public static byte method_34939​(byte byte2,
                                        byte byte3,
                                        byte byte4)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(BBB)B
        intermediary method_34939 Lnet/minecraft/class_3532;method_34939(BBB)B
        named method_34939 Lnet/minecraft/util/math/MathHelper;method_34939(BBB)B
      • clamp

        public static int clamp​(int value,
                                int min,
                                int max)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(III)I
        intermediary method_15340 Lnet/minecraft/class_3532;method_15340(III)I
        named clamp Lnet/minecraft/util/math/MathHelper;clamp(III)I
      • clamp

        public static long clamp​(long value,
                                 long min,
                                 long max)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(JJJ)J
        intermediary method_24156 Lnet/minecraft/class_3532;method_24156(JJJ)J
        named clamp Lnet/minecraft/util/math/MathHelper;clamp(JJJ)J
      • clamp

        public static float clamp​(float value,
                                  float min,
                                  float max)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(FFF)F
        intermediary method_15363 Lnet/minecraft/class_3532;method_15363(FFF)F
        named clamp Lnet/minecraft/util/math/MathHelper;clamp(FFF)F
      • clamp

        public static double clamp​(double value,
                                   double min,
                                   double max)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(DDD)D
        intermediary method_15350 Lnet/minecraft/class_3532;method_15350(DDD)D
        named clamp Lnet/minecraft/util/math/MathHelper;clamp(DDD)D
      • clampedLerp

        public static double clampedLerp​(double start,
                                         double end,
                                         double delta)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(DDD)D
        intermediary method_15390 Lnet/minecraft/class_3532;method_15390(DDD)D
        named clampedLerp Lnet/minecraft/util/math/MathHelper;clampedLerp(DDD)D
      • absMax

        public static double absMax​(double a,
                                    double b)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(DD)D
        intermediary method_15391 Lnet/minecraft/class_3532;method_15391(DD)D
        named absMax Lnet/minecraft/util/math/MathHelper;absMax(DD)D
      • floorDiv

        public static int floorDiv​(int dividend,
                                   int divisor)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(II)I
        intermediary method_15346 Lnet/minecraft/class_3532;method_15346(II)I
        named floorDiv Lnet/minecraft/util/math/MathHelper;floorDiv(II)I
      • nextInt

        public static int nextInt​(Random random,
                                  int min,
                                  int max)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ljava/util/Random;II)I
        intermediary method_15395 Lnet/minecraft/class_3532;method_15395(Ljava/util/Random;II)I
        named nextInt Lnet/minecraft/util/math/MathHelper;nextInt(Ljava/util/Random;II)I
      • nextFloat

        public static float nextFloat​(Random random,
                                      float min,
                                      float max)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ljava/util/Random;FF)F
        intermediary method_15344 Lnet/minecraft/class_3532;method_15344(Ljava/util/Random;FF)F
        named nextFloat Lnet/minecraft/util/math/MathHelper;nextFloat(Ljava/util/Random;FF)F
      • nextDouble

        public static double nextDouble​(Random random,
                                        double min,
                                        double max)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ljava/util/Random;DD)D
        intermediary method_15366 Lnet/minecraft/class_3532;method_15366(Ljava/util/Random;DD)D
        named nextDouble Lnet/minecraft/util/math/MathHelper;nextDouble(Ljava/util/Random;DD)D
      • average

        public static double average​(long[] array)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a([J)D
        intermediary method_15373 Lnet/minecraft/class_3532;method_15373([J)D
        named average Lnet/minecraft/util/math/MathHelper;average([J)D
      • approximatelyEquals

        public static boolean approximatelyEquals​(float a,
                                                  float b)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(FF)Z
        intermediary method_15347 Lnet/minecraft/class_3532;method_15347(FF)Z
        named approximatelyEquals Lnet/minecraft/util/math/MathHelper;approximatelyEquals(FF)Z
      • approximatelyEquals

        public static boolean approximatelyEquals​(double a,
                                                  double b)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(DD)Z
        intermediary method_20390 Lnet/minecraft/class_3532;method_20390(DD)Z
        named approximatelyEquals Lnet/minecraft/util/math/MathHelper;approximatelyEquals(DD)Z
      • floorMod

        public static int floorMod​(int dividend,
                                   int divisor)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(II)I
        intermediary method_15387 Lnet/minecraft/class_3532;method_15387(II)I
        named floorMod Lnet/minecraft/util/math/MathHelper;floorMod(II)I
      • floorMod

        public static float floorMod​(float dividend,
                                     float divisor)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(FF)F
        intermediary method_15341 Lnet/minecraft/class_3532;method_15341(FF)F
        named floorMod Lnet/minecraft/util/math/MathHelper;floorMod(FF)F
      • floorMod

        public static double floorMod​(double dividend,
                                      double divisor)
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c(DD)D
        intermediary method_15367 Lnet/minecraft/class_3532;method_15367(DD)D
        named floorMod Lnet/minecraft/util/math/MathHelper;floorMod(DD)D
      • wrapDegrees

        public static int wrapDegrees​(int degrees)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(I)I
        intermediary method_15392 Lnet/minecraft/class_3532;method_15392(I)I
        named wrapDegrees Lnet/minecraft/util/math/MathHelper;wrapDegrees(I)I
      • wrapDegrees

        public static float wrapDegrees​(float degrees)
        Mappings:
        Namespace Name Mixin selector
        official g Lags;g(F)F
        intermediary method_15393 Lnet/minecraft/class_3532;method_15393(F)F
        named wrapDegrees Lnet/minecraft/util/math/MathHelper;wrapDegrees(F)F
      • wrapDegrees

        public static double wrapDegrees​(double degrees)
        Mappings:
        Namespace Name Mixin selector
        official g Lags;g(D)D
        intermediary method_15338 Lnet/minecraft/class_3532;method_15338(D)D
        named wrapDegrees Lnet/minecraft/util/math/MathHelper;wrapDegrees(D)D
      • subtractAngles

        public static float subtractAngles​(float start,
                                           float end)
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c(FF)F
        intermediary method_15381 Lnet/minecraft/class_3532;method_15381(FF)F
        named subtractAngles Lnet/minecraft/util/math/MathHelper;subtractAngles(FF)F
      • angleBetween

        public static float angleBetween​(float first,
                                         float second)
        Mappings:
        Namespace Name Mixin selector
        official d Lags;d(FF)F
        intermediary method_15356 Lnet/minecraft/class_3532;method_15356(FF)F
        named angleBetween Lnet/minecraft/util/math/MathHelper;angleBetween(FF)F
      • stepAngleTowards

        public static float stepAngleTowards​(float from,
                                             float to,
                                             float step)
        Steps from from degrees towards to degrees, changing the value by at most step degrees.
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(FFF)F
        intermediary method_20306 Lnet/minecraft/class_3532;method_20306(FFF)F
        named stepAngleTowards Lnet/minecraft/util/math/MathHelper;stepAngleTowards(FFF)F
      • stepTowards

        public static float stepTowards​(float from,
                                        float to,
                                        float step)
        Steps from from towards to, changing the value by at most step.
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c(FFF)F
        intermediary method_15348 Lnet/minecraft/class_3532;method_15348(FFF)F
        named stepTowards Lnet/minecraft/util/math/MathHelper;stepTowards(FFF)F
      • stepUnwrappedAngleTowards

        public static float stepUnwrappedAngleTowards​(float from,
                                                      float to,
                                                      float step)
        Steps from from degrees towards to degrees, changing the value by at most step degrees.

        This method does not wrap the resulting angle, so stepAngleTowards(float, float, float) should be used in preference.

        Mappings:
        Namespace Name Mixin selector
        official d Lags;d(FFF)F
        intermediary method_15388 Lnet/minecraft/class_3532;method_15388(FFF)F
        named stepUnwrappedAngleTowards Lnet/minecraft/util/math/MathHelper;stepUnwrappedAngleTowards(FFF)F
      • parseInt

        public static int parseInt​(String string,
                                   int fallback)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ljava/lang/String;I)I
        intermediary method_15343 Lnet/minecraft/class_3532;method_15343(Ljava/lang/String;I)I
        named parseInt Lnet/minecraft/util/math/MathHelper;parseInt(Ljava/lang/String;I)I
      • method_34949

        public static int method_34949​(String string,
                                       int int2,
                                       int int3)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ljava/lang/String;II)I
        intermediary method_34949 Lnet/minecraft/class_3532;method_34949(Ljava/lang/String;II)I
        named method_34949 Lnet/minecraft/util/math/MathHelper;method_34949(Ljava/lang/String;II)I
      • method_34947

        public static double method_34947​(String string,
                                          double double2)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ljava/lang/String;D)D
        intermediary method_34947 Lnet/minecraft/class_3532;method_34947(Ljava/lang/String;D)D
        named method_34947 Lnet/minecraft/util/math/MathHelper;method_34947(Ljava/lang/String;D)D
      • method_34948

        public static double method_34948​(String string,
                                          double double2,
                                          double double3)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ljava/lang/String;DD)D
        intermediary method_34948 Lnet/minecraft/class_3532;method_34948(Ljava/lang/String;DD)D
        named method_34948 Lnet/minecraft/util/math/MathHelper;method_34948(Ljava/lang/String;DD)D
      • smallestEncompassingPowerOfTwo

        public static int smallestEncompassingPowerOfTwo​(int value)
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c(I)I
        intermediary method_15339 Lnet/minecraft/class_3532;method_15339(I)I
        named smallestEncompassingPowerOfTwo Lnet/minecraft/util/math/MathHelper;smallestEncompassingPowerOfTwo(I)I
      • isPowerOfTwo

        public static boolean isPowerOfTwo​(int value)
        Mappings:
        Namespace Name Mixin selector
        official d Lags;d(I)Z
        intermediary method_15352 Lnet/minecraft/class_3532;method_15352(I)Z
        named isPowerOfTwo Lnet/minecraft/util/math/MathHelper;isPowerOfTwo(I)Z
      • log2DeBruijn

        public static int log2DeBruijn​(int value)
        Mappings:
        Namespace Name Mixin selector
        official e Lags;e(I)I
        intermediary method_15342 Lnet/minecraft/class_3532;method_15342(I)I
        named log2DeBruijn Lnet/minecraft/util/math/MathHelper;log2DeBruijn(I)I
      • log2

        public static int log2​(int value)
        Mappings:
        Namespace Name Mixin selector
        official f Lags;f(I)I
        intermediary method_15351 Lnet/minecraft/class_3532;method_15351(I)I
        named log2 Lnet/minecraft/util/math/MathHelper;log2(I)I
      • packRgb

        public static int packRgb​(float r,
                                  float g,
                                  float b)
        Mappings:
        Namespace Name Mixin selector
        official e Lags;e(FFF)I
        intermediary method_15353 Lnet/minecraft/class_3532;method_15353(FFF)I
        named packRgb Lnet/minecraft/util/math/MathHelper;packRgb(FFF)I
      • packRgb

        public static int packRgb​(int r,
                                  int g,
                                  int b)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(III)I
        intermediary method_15383 Lnet/minecraft/class_3532;method_15383(III)I
        named packRgb Lnet/minecraft/util/math/MathHelper;packRgb(III)I
      • method_34952

        public static int method_34952​(int int2,
                                       int int3)
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c(II)I
        intermediary method_34952 Lnet/minecraft/class_3532;method_34952(II)I
        named method_34952 Lnet/minecraft/util/math/MathHelper;method_34952(II)I
      • method_34943

        public static int method_34943​(int int2,
                                       float float2,
                                       float float3,
                                       float float4)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(IFFF)I
        intermediary method_34943 Lnet/minecraft/class_3532;method_34943(IFFF)I
        named method_34943 Lnet/minecraft/util/math/MathHelper;method_34943(IFFF)I
      • fractionalPart

        public static float fractionalPart​(float value)
        Mappings:
        Namespace Name Mixin selector
        official h Lags;h(F)F
        intermediary method_22450 Lnet/minecraft/class_3532;method_22450(F)F
        named fractionalPart Lnet/minecraft/util/math/MathHelper;fractionalPart(F)F
      • fractionalPart

        public static double fractionalPart​(double value)
        Mappings:
        Namespace Name Mixin selector
        official h Lags;h(D)D
        intermediary method_15385 Lnet/minecraft/class_3532;method_15385(D)D
        named fractionalPart Lnet/minecraft/util/math/MathHelper;fractionalPart(D)D
      • method_34946

        public static Vec3d method_34946​(Vec3d vec3d,
                                         Vec3d vec3d2,
                                         Vec3d vec3d3,
                                         Vec3d vec3d4,
                                         double double2)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ldma;Ldma;Ldma;Ldma;D)Ldma;
        intermediary method_34946 Lnet/minecraft/class_3532;method_34946(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_243;D)Lnet/minecraft/class_243;
        named method_34946 Lnet/minecraft/util/math/MathHelper;method_34946(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;D)Lnet/minecraft/util/math/Vec3d;
      • hashCode

        public static long hashCode​(Vec3i vec)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Lgw;)J
        intermediary method_15389 Lnet/minecraft/class_3532;method_15389(Lnet/minecraft/class_2382;)J
        named hashCode Lnet/minecraft/util/math/MathHelper;hashCode(Lnet/minecraft/util/math/Vec3i;)J
      • hashCode

        public static long hashCode​(int x,
                                    int y,
                                    int z)
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c(III)J
        intermediary method_15371 Lnet/minecraft/class_3532;method_15371(III)J
        named hashCode Lnet/minecraft/util/math/MathHelper;hashCode(III)J
      • randomUuid

        public static UUID randomUuid​(Random random)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ljava/util/Random;)Ljava/util/UUID;
        intermediary method_15378 Lnet/minecraft/class_3532;method_15378(Ljava/util/Random;)Ljava/util/UUID;
        named randomUuid Lnet/minecraft/util/math/MathHelper;randomUuid(Ljava/util/Random;)Ljava/util/UUID;
      • randomUuid

        public static UUID randomUuid()
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a()Ljava/util/UUID;
        intermediary method_15394 Lnet/minecraft/class_3532;method_15394()Ljava/util/UUID;
        named randomUuid Lnet/minecraft/util/math/MathHelper;randomUuid()Ljava/util/UUID;
      • getLerpProgress

        public static double getLerpProgress​(double value,
                                             double start,
                                             double end)
        Gets the fraction of the way that value is between start and end. This is the delta value needed to lerp between start and end to get value. In other words, getLerpProgress(lerp(delta, start, end), start, end) == delta.
        参数:
        value - The result of the lerp function
        start - The value interpolated from
        end - The value interpolated to
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c(DDD)D
        intermediary method_15370 Lnet/minecraft/class_3532;method_15370(DDD)D
        named getLerpProgress Lnet/minecraft/util/math/MathHelper;getLerpProgress(DDD)D
      • method_34945

        public static boolean method_34945​(Vec3d vec3d,
                                           Vec3d vec3d2,
                                           Box box)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ldma;Ldma;Ldlv;)Z
        intermediary method_34945 Lnet/minecraft/class_3532;method_34945(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_238;)Z
        named method_34945 Lnet/minecraft/util/math/MathHelper;method_34945(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Box;)Z
      • atan2

        public static double atan2​(double y,
                                   double x)
        Mappings:
        Namespace Name Mixin selector
        official d Lags;d(DD)D
        intermediary method_15349 Lnet/minecraft/class_3532;method_15349(DD)D
        named atan2 Lnet/minecraft/util/math/MathHelper;atan2(DD)D
      • fastInverseSqrt

        public static float fastInverseSqrt​(float x)
        Mappings:
        Namespace Name Mixin selector
        official i Lags;i(F)F
        intermediary method_22858 Lnet/minecraft/class_3532;method_22858(F)F
        named fastInverseSqrt Lnet/minecraft/util/math/MathHelper;fastInverseSqrt(F)F
      • fastInverseSqrt

        public static double fastInverseSqrt​(double x)
        Mappings:
        Namespace Name Mixin selector
        official i Lags;i(D)D
        intermediary method_15345 Lnet/minecraft/class_3532;method_15345(D)D
        named fastInverseSqrt Lnet/minecraft/util/math/MathHelper;fastInverseSqrt(D)D
      • fastInverseCbrt

        public static float fastInverseCbrt​(float x)
        Mappings:
        Namespace Name Mixin selector
        official j Lags;j(F)F
        intermediary method_23278 Lnet/minecraft/class_3532;method_23278(F)F
        named fastInverseCbrt Lnet/minecraft/util/math/MathHelper;fastInverseCbrt(F)F
      • hsvToRgb

        public static int hsvToRgb​(float hue,
                                   float saturation,
                                   float value)
        Mappings:
        Namespace Name Mixin selector
        official f Lags;f(FFF)I
        intermediary method_15369 Lnet/minecraft/class_3532;method_15369(FFF)I
        named hsvToRgb Lnet/minecraft/util/math/MathHelper;hsvToRgb(FFF)I
      • idealHash

        public static int idealHash​(int value)
        Mappings:
        Namespace Name Mixin selector
        official g Lags;g(I)I
        intermediary method_15354 Lnet/minecraft/class_3532;method_15354(I)I
        named idealHash Lnet/minecraft/util/math/MathHelper;idealHash(I)I
      • method_34944

        public static long method_34944​(long long2)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(J)J
        intermediary method_34944 Lnet/minecraft/class_3532;method_34944(J)J
        named method_34944 Lnet/minecraft/util/math/MathHelper;method_34944(J)J
      • method_34951

        public static double[] method_34951​(double[] double2)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a([D)[D
        intermediary method_34951 Lnet/minecraft/class_3532;method_34951([D)[D
        named method_34951 Lnet/minecraft/util/math/MathHelper;method_34951([D)[D
      • method_34950

        public static int method_34950​(Random random,
                                       double[] double2)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(Ljava/util/Random;[D)I
        intermediary method_34950 Lnet/minecraft/class_3532;method_34950(Ljava/util/Random;[D)I
        named method_34950 Lnet/minecraft/util/math/MathHelper;method_34950(Ljava/util/Random;[D)I
      • method_34941

        public static double[] method_34941​(double double2,
                                            double double3,
                                            double double4,
                                            int int2,
                                            int int3)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(DDDII)[D
        intermediary method_34941 Lnet/minecraft/class_3532;method_34941(DDDII)[D
        named method_34941 Lnet/minecraft/util/math/MathHelper;method_34941(DDDII)[D
      • method_34940

        public static double[] method_34940​(double double2,
                                            double double3,
                                            double double4,
                                            double double5,
                                            double double6,
                                            double double7,
                                            int int2,
                                            int int3)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(DDDDDDII)[D
        intermediary method_34940 Lnet/minecraft/class_3532;method_34940(DDDDDDII)[D
        named method_34940 Lnet/minecraft/util/math/MathHelper;method_34940(DDDDDDII)[D
      • method_34942

        public static double[] method_34942​(double double2,
                                            double double3,
                                            int int2,
                                            int int3)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(DDII)[D
        intermediary method_34942 Lnet/minecraft/class_3532;method_34942(DDII)[D
        named method_34942 Lnet/minecraft/util/math/MathHelper;method_34942(DDII)[D
      • binarySearch

        public static int binarySearch​(int start,
                                       int end,
                                       IntPredicate leftPredicate)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(IILjava/util/function/IntPredicate;)I
        intermediary method_15360 Lnet/minecraft/class_3532;method_15360(IILjava/util/function/IntPredicate;)I
        named binarySearch Lnet/minecraft/util/math/MathHelper;binarySearch(IILjava/util/function/IntPredicate;)I
      • lerp

        public static float lerp​(float delta,
                                 float start,
                                 float end)
        Mappings:
        Namespace Name Mixin selector
        official g Lags;g(FFF)F
        intermediary method_16439 Lnet/minecraft/class_3532;method_16439(FFF)F
        named lerp Lnet/minecraft/util/math/MathHelper;lerp(FFF)F
      • lerp

        public static double lerp​(double delta,
                                  double start,
                                  double end)
        Mappings:
        Namespace Name Mixin selector
        official d Lags;d(DDD)D
        intermediary method_16436 Lnet/minecraft/class_3532;method_16436(DDD)D
        named lerp Lnet/minecraft/util/math/MathHelper;lerp(DDD)D
      • lerp2

        public static double lerp2​(double deltaX,
                                   double deltaY,
                                   double x0y0,
                                   double x1y0,
                                   double x0y1,
                                   double x1y1)
        A two-dimensional lerp between values on the 4 corners of the unit square. Arbitrary values are specified for the corners and the output is interpolated between them.
        参数:
        deltaX - The x-coordinate on the unit square
        deltaY - The y-coordinate on the unit square
        x0y0 - The output if deltaX is 0 and deltaY is 0
        x1y0 - The output if deltaX is 1 and deltaY is 0
        x0y1 - The output if deltaX is 0 and deltaY is 1
        x1y1 - The output if deltaX is 1 and deltaY is 1
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(DDDDDD)D
        intermediary method_16437 Lnet/minecraft/class_3532;method_16437(DDDDDD)D
        named lerp2 Lnet/minecraft/util/math/MathHelper;lerp2(DDDDDD)D
      • lerp3

        public static double lerp3​(double deltaX,
                                   double deltaY,
                                   double deltaZ,
                                   double x0y0z0,
                                   double x1y0z0,
                                   double x0y1z0,
                                   double x1y1z0,
                                   double x0y0z1,
                                   double x1y0z1,
                                   double x0y1z1,
                                   double x1y1z1)
        A three-dimensional lerp between values on the 8 corners of the unit cube. Arbitrary values are specified for the corners and the output is interpolated between them.
        参数:
        deltaX - The x-coordinate on the unit cube
        deltaY - The y-coordinate on the unit cube
        deltaZ - The z-coordinate on the unit cube
        x0y0z0 - The output if deltaX is 0, deltaY is 0 and deltaZ is 0
        x1y0z0 - The output if deltaX is 1, deltaY is 0 and deltaZ is 0
        x0y1z0 - The output if deltaX is 0, deltaY is 1 and deltaZ is 0
        x1y1z0 - The output if deltaX is 1, deltaY is 1 and deltaZ is 0
        x0y0z1 - The output if deltaX is 0, deltaY is 0 and deltaZ is 1
        x1y0z1 - The output if deltaX is 1, deltaY is 0 and deltaZ is 1
        x0y1z1 - The output if deltaX is 0, deltaY is 1 and deltaZ is 1
        x1y1z1 - The output if deltaX is 1, deltaY is 1 and deltaZ is 1
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(DDDDDDDDDDD)D
        intermediary method_16438 Lnet/minecraft/class_3532;method_16438(DDDDDDDDDDD)D
        named lerp3 Lnet/minecraft/util/math/MathHelper;lerp3(DDDDDDDDDDD)D
      • perlinFade

        public static double perlinFade​(double value)
        Mappings:
        Namespace Name Mixin selector
        official j Lags;j(D)D
        intermediary method_16435 Lnet/minecraft/class_3532;method_16435(D)D
        named perlinFade Lnet/minecraft/util/math/MathHelper;perlinFade(D)D
      • method_34956

        public static double method_34956​(double double2)
        Mappings:
        Namespace Name Mixin selector
        official k Lags;k(D)D
        intermediary method_34956 Lnet/minecraft/class_3532;method_34956(D)D
        named method_34956 Lnet/minecraft/util/math/MathHelper;method_34956(D)D
      • sign

        public static int sign​(double value)
        Mappings:
        Namespace Name Mixin selector
        official l Lags;l(D)I
        intermediary method_17822 Lnet/minecraft/class_3532;method_17822(D)I
        named sign Lnet/minecraft/util/math/MathHelper;sign(D)I
      • lerpAngleDegrees

        public static float lerpAngleDegrees​(float delta,
                                             float start,
                                             float end)
        Mappings:
        Namespace Name Mixin selector
        official h Lags;h(FFF)F
        intermediary method_17821 Lnet/minecraft/class_3532;method_17821(FFF)F
        named lerpAngleDegrees Lnet/minecraft/util/math/MathHelper;lerpAngleDegrees(FFF)F
      • method_34955

        public static float method_34955​(float float2,
                                         float float3,
                                         float float4)
        Mappings:
        Namespace Name Mixin selector
        official i Lags;i(FFF)F
        intermediary method_34955 Lnet/minecraft/class_3532;method_34955(FFF)F
        named method_34955 Lnet/minecraft/util/math/MathHelper;method_34955(FFF)F
      • lerpAngle

        @Deprecated
        public static float lerpAngle​(float start,
                                      float end,
                                      float delta)
        已过时。
        Mappings:
        Namespace Name Mixin selector
        official j Lags;j(FFF)F
        intermediary method_22859 Lnet/minecraft/class_3532;method_22859(FFF)F
        named lerpAngle Lnet/minecraft/util/math/MathHelper;lerpAngle(FFF)F
      • fwrapDegrees

        @Deprecated
        public static float fwrapDegrees​(double degrees)
        已过时。
        Mappings:
        Namespace Name Mixin selector
        official m Lags;m(D)F
        intermediary method_22860 Lnet/minecraft/class_3532;method_22860(D)F
        named fwrapDegrees Lnet/minecraft/util/math/MathHelper;fwrapDegrees(D)F
      • wrap

        public static float wrap​(float value,
                                 float maxDeviation)
        Mappings:
        Namespace Name Mixin selector
        official e Lags;e(FF)F
        intermediary method_24504 Lnet/minecraft/class_3532;method_24504(FF)F
        named wrap Lnet/minecraft/util/math/MathHelper;wrap(FF)F
      • square

        public static float square​(float n)
        Mappings:
        Namespace Name Mixin selector
        official k Lags;k(F)F
        intermediary method_27285 Lnet/minecraft/class_3532;method_27285(F)F
        named square Lnet/minecraft/util/math/MathHelper;square(F)F
      • square

        public static double square​(double n)
        Mappings:
        Namespace Name Mixin selector
        official n Lags;n(D)D
        intermediary method_33723 Lnet/minecraft/class_3532;method_33723(D)D
        named square Lnet/minecraft/util/math/MathHelper;square(D)D
      • method_34954

        public static int method_34954​(int int2)
        Mappings:
        Namespace Name Mixin selector
        official h Lags;h(I)I
        intermediary method_34954 Lnet/minecraft/class_3532;method_34954(I)I
        named method_34954 Lnet/minecraft/util/math/MathHelper;method_34954(I)I
      • clampedLerpFromProgress

        public static double clampedLerpFromProgress​(double lerpValue,
                                                     double lerpStart,
                                                     double lerpEnd,
                                                     double start,
                                                     double end)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(DDDDD)D
        intermediary method_32854 Lnet/minecraft/class_3532;method_32854(DDDDD)D
        named clampedLerpFromProgress Lnet/minecraft/util/math/MathHelper;clampedLerpFromProgress(DDDDD)D
      • lerpFromProgress

        public static double lerpFromProgress​(double lerpValue,
                                              double lerpStart,
                                              double lerpEnd,
                                              double start,
                                              double end)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(DDDDD)D
        intermediary method_33722 Lnet/minecraft/class_3532;method_33722(DDDDD)D
        named lerpFromProgress Lnet/minecraft/util/math/MathHelper;lerpFromProgress(DDDDD)D
      • method_34957

        public static double method_34957​(double double2)
        Mappings:
        Namespace Name Mixin selector
        official o Lags;o(D)D
        intermediary method_34957 Lnet/minecraft/class_3532;method_34957(D)D
        named method_34957 Lnet/minecraft/util/math/MathHelper;method_34957(D)D
      • roundUpToMultiple

        public static int roundUpToMultiple​(int value,
                                            int divisor)
        Returns a value farther than or as far as value from zero that is a multiple of divisor.
        Mappings:
        Namespace Name Mixin selector
        official d Lags;d(II)I
        intermediary method_28139 Lnet/minecraft/class_3532;method_28139(II)I
        named roundUpToMultiple Lnet/minecraft/util/math/MathHelper;roundUpToMultiple(II)I
      • nextBetween

        public static int nextBetween​(Random random,
                                      int min,
                                      int max)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(Ljava/util/Random;II)I
        intermediary method_32751 Lnet/minecraft/class_3532;method_32751(Ljava/util/Random;II)I
        named nextBetween Lnet/minecraft/util/math/MathHelper;nextBetween(Ljava/util/Random;II)I
      • nextBetween

        public static float nextBetween​(Random random,
                                        float min,
                                        float max)
        Mappings:
        Namespace Name Mixin selector
        official b Lags;b(Ljava/util/Random;FF)F
        intermediary method_32750 Lnet/minecraft/class_3532;method_32750(Ljava/util/Random;FF)F
        named nextBetween Lnet/minecraft/util/math/MathHelper;nextBetween(Ljava/util/Random;FF)F
      • nextGaussian

        public static float nextGaussian​(Random random,
                                         float mean,
                                         float deviation)
        Mappings:
        Namespace Name Mixin selector
        official c Lags;c(Ljava/util/Random;FF)F
        intermediary method_32855 Lnet/minecraft/class_3532;method_32855(Ljava/util/Random;FF)F
        named nextGaussian Lnet/minecraft/util/math/MathHelper;nextGaussian(Ljava/util/Random;FF)F
      • magnitude

        public static double magnitude​(int x,
                                       double y,
                                       int z)
        Mappings:
        Namespace Name Mixin selector
        official a Lags;a(IDI)D
        intermediary method_33825 Lnet/minecraft/class_3532;method_33825(IDI)D
        named magnitude Lnet/minecraft/util/math/MathHelper;magnitude(IDI)D