MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / clamp_float

Method clamp_float

src/main/java/net/minecraft/util/MathHelper.java:143–146  ·  view source on GitHub ↗

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

(float num, float min, float max)

Source from the content-addressed store, hash-verified

141 * third parameters
142 */
143 public static float clamp_float(float num, float min, float max)
144 {
145 return num < min ? min : (num > max ? max : num);
146 }
147
148 public static double clamp_double(double num, double min, double max)
149 {

Callers 15

getColorVanillaMethod · 0.95
evalFloatMethod · 0.95
mouseDraggedMethod · 0.95
mousePressedMethod · 0.95
runTickMethod · 0.95
updateRendererMethod · 0.95
func_178100_cMethod · 0.95
updateEquippedItemMethod · 0.95
deserializeMethod · 0.95
func_180560_aMethod · 0.95
preRenderCallbackMethod · 0.95
doRenderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected