net.minecraft.util

public class Mth

aec
net.minecraft.util.Mth
net.minecraft.class_3532
net.minecraft.util.math.MathHelper
net.minecraft.util.math.MathHelper
net.minecraft.server.v1_16_R1.MathHelper

Field summary

Modifier and TypeField
public static final float
a
SQRT_OF_TWO
field_15724
SQUARE_ROOT_OF_TWO
field_180189_a
private static final float[]
b
SIN
field_15725
SINE_TABLE
field_76144_a
private static final Random
c
RANDOM
field_15726
RANDOM
field_188211_c
private static final int[]
d
MULTIPLY_DE_BRUIJN_BIT_POSITION
field_15723
MULTIPLY_DE_BRUIJN_BIT_POSITION
field_151242_b
private static final double
e
FRAC_BIAS
field_15728
SMALLEST_FRACTION_FREE_DOUBLE
field_181163_d
private static final double[]
f
ASIN_TAB
field_15727
ARCSINE_TABLE
field_181164_e
private static final double[]
g
COS_TAB
field_15722
COSINE_TABLE
field_181165_f

Method summary

Modifier and TypeMethod
public static float
a(float arg0)
sin(float arg0)
method_15374(float arg0)
sin(float arg0)
func_76126_a(float arg0)
sin(float arg0)
public static float
b(float arg0)
cos(float arg0)
method_15362(float arg0)
cos(float arg0)
func_76134_b(float arg0)
cos(float arg0)
public static float
c(float arg0)
sqrt(float arg0)
method_15355(float arg0)
sqrt(float arg0)
func_76129_c(float arg0)
public static float
a(double arg0)
sqrt(double arg0)
method_15368(double arg0)
sqrt(double arg0)
func_76133_a(double arg0)
sqrt(double arg0)
public static int
d(float arg0)
floor(float arg0)
method_15375(float arg0)
floor(float arg0)
func_76141_d(float arg0)
public static int
c(double arg0)
floor(double arg0)
method_15357(double arg0)
floor(double arg0)
func_76128_c(double arg0)
floor(double arg0)
public static long
d(double arg0)
lfloor(double arg0)
method_15372(double arg0)
lfloor(double arg0)
func_76124_d(double arg0)
public static float
e(float arg0)
abs(float arg0)
method_15379(float arg0)
abs(float arg0)
func_76135_e(float arg0)
public static int
a(int arg0)
abs(int arg0)
method_15382(int arg0)
abs(int arg0)
func_76130_a(int arg0)
public static int
f(float arg0)
ceil(float arg0)
method_15386(float arg0)
ceil(float arg0)
func_76123_f(float arg0)
public static int
f(double arg0)
ceil(double arg0)
method_15384(double arg0)
ceil(double arg0)
func_76143_f(double arg0)
public static int
a(int arg0, int arg1, int arg2)
clamp(int arg0, int arg1, int arg2)
method_15340(int arg0, int arg1, int arg2)
clamp(int value, int min, int max)
func_76125_a(int arg0, int arg1, int arg2)
clamp(int arg0, int arg1, int arg2)
public static float
a(float arg0, float arg1, float arg2)
clamp(float arg0, float arg1, float arg2)
method_15363(float arg0, float arg1, float arg2)
clamp(float value, float min, float max)
func_76131_a(float arg0, float arg1, float arg2)
public static double
a(double arg0, double arg1, double arg2)
clamp(double arg0, double arg1, double arg2)
method_15350(double arg0, double arg1, double arg2)
clamp(double value, double min, double max)
func_151237_a(double arg0, double arg1, double arg2)
public static double
b(double arg0, double arg1, double arg2)
clampedLerp(double arg0, double arg1, double arg2)
method_15390(double arg0, double arg1, double arg2)
clampedLerp(double start, double end, double delta)
func_151238_b(double arg0, double arg1, double arg2)
public static double
a(double arg0, double arg1)
absMax(double arg0, double arg1)
method_15391(double arg0, double arg1)
absMax(double arg0, double arg1)
func_76132_a(double arg0, double arg1)
public static int
a(int arg0, int arg1)
intFloorDiv(int arg0, int arg1)
method_15346(int arg0, int arg1)
floorDiv(int arg0, int arg1)
func_76137_a(int arg0, int arg1)
public static int
a(Random arg0, int arg1, int arg2)
nextInt(Random arg0, int arg1, int arg2)
method_15395(Random arg0, int arg1, int arg2)
nextInt(Random random, int min, int max)
func_76136_a(Random arg0, int arg1, int arg2)
nextInt(Random arg0, int arg1, int arg2)
public static float
a(Random arg0, float arg1, float arg2)
nextFloat(Random arg0, float arg1, float arg2)
method_15344(Random arg0, float arg1, float arg2)
nextFloat(Random random, float min, float max)
func_151240_a(Random arg0, float arg1, float arg2)
public static double
a(Random arg0, double arg1, double arg2)
nextDouble(Random arg0, double arg1, double arg2)
method_15366(Random arg0, double arg1, double arg2)
nextDouble(Random random, double min, double max)
func_82716_a(Random arg0, double arg1, double arg2)
public static double
a(long[] arg0)
average(long[] arg0)
method_15373(long[] arg0)
average(long[] array)
func_76127_a(long[] arg0)
public static boolean
b(double arg0, double arg1)
equal(double arg0, double arg1)
method_20390(double arg0, double arg1)
approximatelyEquals(double a, double b)
func_219806_b(double arg0, double arg1)
public static int
b(int arg0, int arg1)
positiveModulo(int arg0, int arg1)
method_15387(int arg0, int arg1)
floorMod(int arg0, int arg1)
func_180184_b(int arg0, int arg1)
public static float
g(float arg0)
wrapDegrees(float arg0)
method_15393(float arg0)
wrapDegrees(float arg0)
func_76142_g(float arg0)
public static double
g(double arg0)
wrapDegrees(double arg0)
method_15338(double arg0)
wrapDegrees(double arg0)
func_76138_g(double arg0)
public static float
c(float arg0, float arg1)
degreesDifference(float arg0, float arg1)
method_15381(float arg0, float arg1)
subtractAngles(float start, float end)
func_203302_c(float arg0, float arg1)
public static float
d(float arg0, float arg1)
degreesDifferenceAbs(float arg0, float arg1)
method_15356(float arg0, float arg1)
angleBetween(float first, float second)
func_203301_d(float arg0, float arg1)
public static float
b(float arg0, float arg1, float arg2)
rotateIfNecessary(float arg0, float arg1, float arg2)
method_20306(float arg0, float arg1, float arg2)
stepAngleTowards(float from, float to, float step)
func_219800_b(float arg0, float arg1, float arg2)
public static float
c(float arg0, float arg1, float arg2)
approach(float arg0, float arg1, float arg2)
method_15348(float arg0, float arg1, float arg2)
stepTowards(float from, float to, float step)
func_203300_b(float arg0, float arg1, float arg2)
public static float
d(float arg0, float arg1, float arg2)
approachDegrees(float arg0, float arg1, float arg2)
method_15388(float arg0, float arg1, float arg2)
stepUnwrappedAngleTowards(float from, float to, float step)
func_203303_c(float arg0, float arg1, float arg2)
public static int
c(int arg0)
smallestEncompassingPowerOfTwo(int arg0)
method_15339(int arg0)
smallestEncompassingPowerOfTwo(int value)
func_151236_b(int arg0)
public static boolean
d(int arg0)
isPowerOfTwo(int arg0)
method_15352(int arg0)
isPowerOfTwo(int arg0)
func_151235_d(int arg0)
public static int
e(int arg0)
ceillog2(int arg0)
method_15342(int arg0)
log2DeBruijn(int arg0)
func_151241_e(int arg0)
public static int
f(int arg0)
log2(int arg0)
method_15351(int arg0)
log2(int arg0)
func_151239_c(int arg0)
public static int
c(int arg0, int arg1)
roundUp(int arg0, int arg1)
method_28139(int arg0, int arg1)
roundUpToMultiple(int value, int divisor)
func_154354_b(int arg0, int arg1)
public static float
h(float arg0)
frac(float arg0)
method_22450(float arg0)
fractionalPart(float value)
func_226164_h_(float arg0)
public static double
h(double arg0)
frac(double arg0)
method_15385(double arg0)
fractionalPart(double value)
func_181162_h(double arg0)
public static long
a(gr arg0)
getSeed(Vec3i arg0)
method_15389(class_2382 arg0)
hashCode(Vec3i vec)
func_180186_a(Vector3i arg0)
public static long
c(int arg0, int arg1, int arg2)
getSeed(int arg0, int arg1, int arg2)
method_15371(int arg0, int arg1, int arg2)
hashCode(int x, int y, int z)
func_180187_c(int arg0, int arg1, int arg2)
public static UUID
a(Random arg0)
createInsecureUUID(Random arg0)
method_15378(Random arg0)
randomUuid(Random random)
func_180182_a(Random arg0)
public static UUID
a()
createInsecureUUID()
method_15394()
randomUuid()
func_188210_a()
public static double
c(double arg0, double arg1, double arg2)
inverseLerp(double arg0, double arg1, double arg2)
method_15370(double arg0, double arg1, double arg2)
getLerpProgress(double value, double start, double end)
func_233020_c_(double arg0, double arg1, double arg2)
public static double
d(double arg0, double arg1)
atan2(double arg0, double arg1)
method_15349(double arg0, double arg1)
atan2(double y, double x)
func_181159_b(double arg0, double arg1)
public static double
i(double arg0)
fastInvSqrt(double arg0)
method_15345(double arg0)
fastInverseSqrt(double x)
func_181161_i(double arg0)
public static int
f(float arg0, float arg1, float arg2)
hsvToRgb(float arg0, float arg1, float arg2)
method_15369(float arg0, float arg1, float arg2)
hsvToRgb(float hue, float saturation, float value)
func_181758_c(float arg0, float arg1, float arg2)
public static int
g(int arg0)
murmurHash3Mixer(int arg0)
method_15354(int arg0)
idealHash(int arg0)
func_188208_f(int arg0)
public static int
a(int arg0, int arg1, IntPredicate arg2)
binarySearch(int arg0, int arg1, IntPredicate arg2)
method_15360(int arg0, int arg1, IntPredicate arg2)
binarySearch(int start, int end, IntPredicate leftPredicate)
func_199093_a(int arg0, int arg1, IntPredicate arg2)
public static float
g(float arg0, float arg1, float arg2)
lerp(float arg0, float arg1, float arg2)
method_16439(float arg0, float arg1, float arg2)
lerp(float delta, float start, float end)
func_219799_g(float arg0, float arg1, float arg2)
public static double
d(double arg0, double arg1, double arg2)
lerp(double arg0, double arg1, double arg2)
method_16436(double arg0, double arg1, double arg2)
lerp(double delta, double start, double end)
func_219803_d(double arg0, double arg1, double arg2)
public static double
a(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
lerp2(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
method_16437(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
lerp2(double deltaX, double deltaY, double val00, double val10, double val01, double val11)
func_219804_a(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
public static double
a(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7, double arg8, double arg9, double arg10)
lerp3(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7, double arg8, double arg9, double arg10)
method_16438(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7, double arg8, double arg9, double arg10)
lerp3(double deltaX, double deltaY, double deltaZ, double val000, double val100, double val010, double val110, double val001, double val101, double val011, double val111)
func_219807_a(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7, double arg8, double arg9, double arg10)
public static double
j(double arg0)
smoothstep(double arg0)
method_16435(double arg0)
perlinFade(double arg0)
func_219801_j(double arg0)
public static int
k(double arg0)
sign(double arg0)
method_17822(double arg0)
sign(double arg0)
func_219802_k(double arg0)
public static float
j(float arg0, float arg1, float arg2)
rotlerp(float arg0, float arg1, float arg2)
method_22859(float arg0, float arg1, float arg2)
lerpAngle(float start, float end, float delta)
func_226167_j_(float arg0, float arg1, float arg2)
public static float
k(float arg0)
square(float arg0)
method_27285(float arg0)
square(float n)
func_233022_k_(float arg0)
public static int
b(double arg0)
fastFloor(double arg0)
method_15365(double arg0)
fastFloor(double arg0)
func_76140_b(double arg0)
public static long
a(long arg0, long arg1, long arg2)
clamp(long arg0, long arg1, long arg2)
method_24156(long arg0, long arg1, long arg2)
clamp(long value, long min, long max)
func_226163_a_(long arg0, long arg1, long arg2)
public static boolean
a(float arg0, float arg1)
equal(float arg0, float arg1)
method_15347(float arg0, float arg1)
approximatelyEquals(float a, float b)
func_180185_a(float arg0, float arg1)
public static float
b(float arg0, float arg1)
positiveModulo(float arg0, float arg1)
method_15341(float arg0, float arg1)
floorMod(float arg0, float arg1)
func_188207_b(float arg0, float arg1)
public static double
c(double arg0, double arg1)
positiveModulo(double arg0, double arg1)
method_15367(double arg0, double arg1)
floorMod(double arg0, double arg1)
func_191273_b(double arg0, double arg1)
public static int
b(int arg0)
wrapDegrees(int arg0)
method_15392(int arg0)
wrapDegrees(int arg0)
func_188209_b(int arg0)
public static int
a(String arg0, int arg1)
getInt(String arg0, int arg1)
method_15343(String arg0, int arg1)
parseInt(String string, int fallback)
func_82715_a(String arg0, int arg1)
public static int
e(float arg0, float arg1, float arg2)
color(float arg0, float arg1, float arg2)
method_15353(float arg0, float arg1, float arg2)
packRgb(float r, float g, float b)
func_180183_b(float arg0, float arg1, float arg2)
public static int
b(int arg0, int arg1, int arg2)
color(int arg0, int arg1, int arg2)
method_15383(int arg0, int arg1, int arg2)
packRgb(int r, int g, int b)
func_180181_b(int arg0, int arg1, int arg2)
public static float
i(float arg0)
fastInvSqrt(float arg0)
method_22858(float arg0)
fastInverseSqrt(float x)
func_226165_i_(float arg0)
public static float
j(float arg0)
fastInvCubeRoot(float arg0)
method_23278(float arg0)
fastInverseCbrt(float x)
func_226166_j_(float arg0)
public static float
h(float arg0, float arg1, float arg2)
rotLerp(float arg0, float arg1, float arg2)
method_17821(float arg0, float arg1, float arg2)
lerpAngleDegrees(float delta, float start, float end)
func_219805_h(float arg0, float arg1, float arg2)
public static float
l(double arg0)
rotWrap(double arg0)
method_22860(double arg0)
fwrapDegrees(double degrees)
func_226168_l_(double arg0)
public static float
e(float arg0, float arg1)
triangleWave(float arg0, float arg1)
method_24504(float arg0, float arg1)
method_24504(float arg0, float arg1)
func_233021_e_(float arg0, float arg1)