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

Method bindStack

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

Source from the content-addressed store, hash-verified

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));}
1569
1570 public static short[] bindRGBa(short[] aColors) {
1571 if (aColors == null) return new short[] {255,255,255,255};

Callers 15

onLoadMethod · 0.80
getItemStackLimitMethod · 0.80
setOffspringMethod · 0.80
getOffspringMethod · 0.80
makeInputMethod · 0.80
ingots_or_platesMethod · 0.80
ingotsMethod · 0.80
platesMethod · 0.80
gemplatesMethod · 0.80
addRecipesUsingMethod · 0.80
emitOverflowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected