MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / inside

Method inside

src/main/java/gregapi/util/UT.java:1730–1730  ·  view source on GitHub ↗
(long aMin, long aMax, long aNumber)

Source from the content-addressed store, hash-verified

1728 public static boolean abs_smaller_equal(long aAmount1, long aAmount2) {return Math.abs(aAmount1) <= Math.abs(aAmount2);}
1729
1730 public static boolean inside(long aMin, long aMax, long aNumber) {return aMin < aMax ? aMin <= aNumber && aNumber <= aMax : aMax <= aNumber && aNumber <= aMin;}
1731 public static boolean inside_(double aMin, double aMax, double aNumber) {return aMin < aMax ? aMin <= aNumber && aNumber <= aMax : aMax <= aNumber && aNumber <= aMin;}
1732
1733 /** @return an Array containing the X and the Y Coordinate of the clicked Point, with the top left Corner as Origin, like on the Texture Sheet. return values should always be between [0.0F and 0.99F]. */

Callers 15

onCheckSpawnEventMethod · 0.80
onClientTickEventMethod · 0.80
onOreRegistration1Method · 0.80
insidevoltMethod · 0.80
chiselMethod · 0.80
isItemValidForSlotGUIMethod · 0.80
updateFluidBlocksMethod · 0.80
infiniteWaterMethod · 0.80
onTerrainGenEventMethod · 0.80
generateMethod · 0.80
getRenderPassesMethod · 0.80
getRottenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected