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

Method get

src/main/java/gregapi/data/CS.java:1583–1583  ·  view source on GitHub ↗
(ItemStack aStack)

Source from the content-addressed store, hash-verified

1581 public static class BushesGT {
1582 public static final ItemStackMap<ItemStackContainer, int[]> MAP = new ItemStackMap<>();
1583 public static int[] get(ItemStack aStack) {return UT.Code.getWithDefault(MAP.containsKey(aStack, F) ? MAP.get(aStack) : MAP.get(new ItemStackContainer(aStack, 1, W)), DEFAULT);}
1584 /** Bush Color, Stage 1, Stage 2, Stage 3 */
1585 public static void put(ItemStack aStack, int aBush, int aBloom, int aImmature, int aBerry) {if (!MAP.containsKey(aStack, F)) MAP.put(aStack, new int[] {aBush, aBloom, aImmature, aBerry});}
1586 public static void override(ItemStack aStack, int... aColors) {MAP.put(aStack, aColors);}

Callers 2

onBlockActivated3Method · 0.95
getRenderPasses2Method · 0.95

Calls 3

getWithDefaultMethod · 0.80
containsKeyMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected