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

Method put

src/main/java/gregapi/data/CS.java:1585–1585  ·  view source on GitHub ↗

Bush Color, Stage 1, Stage 2, Stage 3

(ItemStack aStack, int aBush, int aBloom, int aImmature, int aBerry)

Source from the content-addressed store, hash-verified

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);}
1587 // Add Cotton as a Default Bush.
1588 public static int[] DEFAULT = new int[] {0x22cc22, 0x33cc33, 0x44cc44, 0xeeeeee};

Callers 2

BushesGTClass · 0.95
addItemsMethod · 0.95

Calls 2

containsKeyMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected