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

Method bind31

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

Source from the content-addressed store, hash-verified

1562 public static int bind16 (long aBoundValue) {return (int) Math.max(0, Math.min( 65535, aBoundValue));}
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));}

Callers 2

trashMethod · 0.80
insertEnergyIntoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected