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

Class BushesGT

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

Source from the content-addressed store, hash-verified

1579 }
1580
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);}
1587 // Add Cotton as a Default Bush.
1588 public static int[] DEFAULT = new int[] {0x22cc22, 0x33cc33, 0x44cc44, 0xeeeeee};
1589 static {put(ST.make(Items.string, 1, 0), 0x22cc22, 0x33cc33, 0x44cc44, 0xeeeeee);}
1590 }
1591
1592 public static class FoodsGT {
1593 public static final ItemStackMap<ItemStackContainer, int[]> MAP = new ItemStackMap<>();

Callers

nothing calls this directly

Calls 2

putMethod · 0.95
makeMethod · 0.95

Tested by

no test coverage detected