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

Method chisel

src/main/java/gregapi/data/RM.java:932–952  ·  view source on GitHub ↗
(String aName, ItemStack... aStacks)

Source from the content-addressed store, hash-verified

930 }
931
932 public static boolean chisel(String aName, ItemStack... aStacks) {
933 if (!MD.CHSL.mLoaded || UT.Code.stringInvalid(aName) || aStacks == null || aStacks.length < 1 || ST.invalid(aStacks[0])) return F;
934 try {
935 boolean temp = T;
936 for (int i = 0; i < aStacks.length; i++) if (ST.valid(aStacks[i])) {
937 Block tBlock = ST.block_(aStacks[i]);
938 if (tBlock == NB) continue;
939 short tMeta = ST.meta_(aStacks[i]);
940 if (tMeta == W) {
941 if (temp) {Carving.chisel.addGroup(CarvingUtils.getDefaultGroupFor(aName)); temp = F;}
942 for (int j = 0; j < 16; j++)
943 Carving.chisel.getGroup(aName).addVariation(CarvingUtils.getDefaultVariationFor(tBlock, j, i*16+j));
944 } else if (UT.Code.inside(0, 15, tMeta)) {
945 if (temp) {Carving.chisel.addGroup(CarvingUtils.getDefaultGroupFor(aName)); temp = F;}
946 Carving.chisel.getGroup(aName).addVariation(CarvingUtils.getDefaultVariationFor(tBlock, tMeta, i*16));
947 }
948 }
949 return T;
950 } catch(Throwable e) {e.printStackTrace(ERR);}
951 return F;
952 }
953
954 public static boolean mortarize(ItemStack aInput, ItemStack aOutput) {return mortarize(1, aInput, aOutput, NI);}
955 public static boolean mortarize(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2) {return mortarize(1, aInput, aOutput1, aOutput2);}

Callers 2

BlockBaseLilyPadMethod · 0.95
BlockBaseLogMethod · 0.95

Calls 6

invalidMethod · 0.95
validMethod · 0.95
block_Method · 0.95
meta_Method · 0.95
stringInvalidMethod · 0.80
insideMethod · 0.80

Tested by

no test coverage detected