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

Method floor_float

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

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

(float value)

Source from the content-addressed store, hash-verified

66 * Returns the greatest integer less than or equal to the float argument
67 */
68 public static int floor_float(float value)
69 {
70 int i = (int)value;
71 return value < (float)i ? i - 1 : i;
72 }
73
74 /**
75 * returns par0 cast as an int, and no greater than Integer.MAX_VALUE-1024

Callers 15

evalFloatMethod · 0.95
addRainParticlesMethod · 0.95
func_178401_aMethod · 0.95
handleChangeGameStateMethod · 0.95
setChatLineMethod · 0.95
getChatComponentMethod · 0.95
calculateChatboxWidthMethod · 0.95
onItemUseMethod · 0.95
S0EPacketSpawnObjectMethod · 0.95
getIntMethod · 0.95
getShortMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected