YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.util.MathHelper Class Reference

Static Public Member Functions

static final float sin (float par0)
 
static final float cos (float par0)
 
static final float sqrt_float (float par0)
 
static final float sqrt_double (double par0)
 
static int floor_float (float par0)
 
static int truncateDoubleToInt (double par0)
 
static int floor_double (double par0)
 
static long floor_double_long (double par0)
 
static float abs (float par0)
 
static int abs_int (int par0)
 
static int ceiling_float_int (float par0)
 
static int ceiling_double_int (double par0)
 
static int clamp_int (int par0, int par1, int par2)
 
static float clamp_float (float par0, float par1, float par2)
 
static double abs_max (double par0, double par2)
 
static int bucketInt (int par0, int par1)
 
static boolean stringNullOrLengthZero (String par0Str)
 
static int getRandomIntegerInRange (Random par0Random, int par1, int par2)
 
static double getRandomDoubleInRange (Random par0Random, double par1, double par3)
 
static double average (long[] par0ArrayOfLong)
 
static float wrapAngleTo180_float (float par0)
 
static double wrapAngleTo180_double (double par0)
 
static int parseIntWithDefault (String par0Str, int par1)
 
static int parseIntWithDefaultAndMax (String par0Str, int par1, int par2)
 
static double parseDoubleWithDefault (String par0Str, double par1)
 
static double func_82713_a (String par0Str, double par1, double par3)
 

Member Function Documentation

static float net.minecraft.util.MathHelper.abs ( float  par0)
static
static int net.minecraft.util.MathHelper.abs_int ( int  par0)
static

Returns the unsigned value of an int.

static double net.minecraft.util.MathHelper.abs_max ( double  par0,
double  par2 
)
static

Maximum of the absolute value of two numbers.

static double net.minecraft.util.MathHelper.average ( long[]  par0ArrayOfLong)
static
static int net.minecraft.util.MathHelper.bucketInt ( int  par0,
int  par1 
)
static

Buckets an integer with specifed bucket sizes. Args: i, bucketSize

static int net.minecraft.util.MathHelper.ceiling_double_int ( double  par0)
static
static int net.minecraft.util.MathHelper.ceiling_float_int ( float  par0)
static
static float net.minecraft.util.MathHelper.clamp_float ( float  par0,
float  par1,
float  par2 
)
static

Returns the value of the first parameter, clamped to be within the lower and upper limits given by the second and third parameters

static int net.minecraft.util.MathHelper.clamp_int ( int  par0,
int  par1,
int  par2 
)
static

Returns the value of the first parameter, clamped to be within the lower and upper limits given by the second and third parameters.

static final float net.minecraft.util.MathHelper.cos ( float  par0)
static

cos looked up in the sin table with the appropriate offset

static int net.minecraft.util.MathHelper.floor_double ( double  par0)
static

Returns the greatest integer less than or equal to the double argument

static long net.minecraft.util.MathHelper.floor_double_long ( double  par0)
static

Long version of floor_double

static int net.minecraft.util.MathHelper.floor_float ( float  par0)
static

Returns the greatest integer less than or equal to the float argument

static double net.minecraft.util.MathHelper.func_82713_a ( String  par0Str,
double  par1,
double  par3 
)
static
static double net.minecraft.util.MathHelper.getRandomDoubleInRange ( Random  par0Random,
double  par1,
double  par3 
)
static
static int net.minecraft.util.MathHelper.getRandomIntegerInRange ( Random  par0Random,
int  par1,
int  par2 
)
static
static double net.minecraft.util.MathHelper.parseDoubleWithDefault ( String  par0Str,
double  par1 
)
static

parses the string as double or returns the second parameter if it fails.

static int net.minecraft.util.MathHelper.parseIntWithDefault ( String  par0Str,
int  par1 
)
static

parses the string as integer or returns the second parameter if it fails

static int net.minecraft.util.MathHelper.parseIntWithDefaultAndMax ( String  par0Str,
int  par1,
int  par2 
)
static

parses the string as integer or returns the second parameter if it fails. this value is capped to par2

static final float net.minecraft.util.MathHelper.sin ( float  par0)
static

sin looked up in a table

static final float net.minecraft.util.MathHelper.sqrt_double ( double  par0)
static
static final float net.minecraft.util.MathHelper.sqrt_float ( float  par0)
static
static boolean net.minecraft.util.MathHelper.stringNullOrLengthZero ( String  par0Str)
static

Tests if a string is null or of length zero

static int net.minecraft.util.MathHelper.truncateDoubleToInt ( double  par0)
static

returns par0 cast as an int, and no greater than Integer.MAX_VALUE-1024

static double net.minecraft.util.MathHelper.wrapAngleTo180_double ( double  par0)
static

the angle is reduced to an angle between -180 and +180 by mod, and a 360 check

static float net.minecraft.util.MathHelper.wrapAngleTo180_float ( float  par0)
static

the angle is reduced to an angle between -180 and +180 by mod, and a 360 check


The documentation for this class was generated from the following file: