MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / roundDown

Method roundDown

src/main/java/gregapi/util/UT.java:1213–1216  ·  view source on GitHub ↗
(double aNumber)

Source from the content-addressed store, hash-verified

1211 }
1212
1213 public static int roundDown(double aNumber) {
1214 int rRounded = (int)aNumber;
1215 return rRounded > aNumber ? rRounded-1 : rRounded;
1216 }
1217 public static int roundUp(double aNumber) {
1218 int rRounded = (int)aNumber;
1219 return rRounded < aNumber ? rRounded+1 : rRounded;

Callers 15

onLivingUpdateMethod · 0.80
onPlayerTickEventMethod · 0.80
onLivingDeathMethod · 0.80
onItemExpireEventMethod · 0.80
onCheckSpawnEventMethod · 0.80
doExplosionAMethod · 0.80
onTickWorldMethod · 0.80
generateMethod · 0.80
onUpdateMethod · 0.80
lineMethod · 0.80
updateMethod · 0.80
update_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected