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

Method bindInt

src/main/java/gregapi/util/UT.java:1565–1565  ·  view source on GitHub ↗
(long   aBoundValue)

Source from the content-addressed store, hash-verified

1563 public static int bind24 (long aBoundValue) {return (int) Math.max(0, Math.min( 16777215, aBoundValue));}
1564 public static int bind31 (long aBoundValue) {return (int) Math.max(0, Math.min(2147483647, aBoundValue));}
1565 public static int bindInt (long aBoundValue) {return (int) Math.max(Integer.MIN_VALUE, Math.min(Integer.MAX_VALUE, aBoundValue));}
1566 public static short bindShort(long aBoundValue) {return (short)Math.max(Short.MIN_VALUE, Math.min(Short.MAX_VALUE, aBoundValue));}
1567 public static byte bindByte (long aBoundValue) {return (byte) Math.max(Byte.MIN_VALUE, Math.min(Byte.MAX_VALUE, aBoundValue));}
1568 public static byte bindStack(long aBoundValue) {return (byte) Math.max(1, Math.min(64, aBoundValue));}

Callers 15

makeMethod · 0.95
make_Method · 0.95
amountMethod · 0.95
move_Method · 0.95
makeMethod · 0.95
make_Method · 0.95
amountMethod · 0.95
move_Method · 0.95
averageIntsMethod · 0.95
averageUnsignedIntsMethod · 0.95
getRadioactivityLevelMethod · 0.95
makeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected