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

Method stoneshapes

src/main/java/gregapi/data/RM.java:312–396  ·  view source on GitHub ↗
(final OreDictMaterial aMat, boolean aIsCobbleTarget, final ItemStack aBlock, final ItemStack aStair, final ItemStack aSlabs, final ItemStack aWalls, final ItemStack aPillar)

Source from the content-addressed store, hash-verified

310 }
311
312 public static ItemStack stoneshapes(final OreDictMaterial aMat, boolean aIsCobbleTarget, final ItemStack aBlock, final ItemStack aStair, final ItemStack aSlabs, final ItemStack aWalls, final ItemStack aPillar) {
313
314 if (ST.valid(aBlock)) {
315 if (aMat != null) {
316 RM.Shredder.addRecipe1(T, 16, 16, aBlock, OP.blockDust.mat(aMat, 1));
317
318 if (aIsCobbleTarget) {
319 RM.pack(OP.rockGt.mat(aMat, 4), aBlock);
320 CR.shaped(aBlock, CR.DEF_NCC, "BB", "BB", 'B', OP.rockGt.dat(aMat));
321 }
322 }
323 if (ST.valid(aStair)) {
324 CR.shaped(ST.amount(4, aStair), CR.DEF_NCC_MIR, "sB", "BB", 'B', aBlock);
325 }
326 if (ST.valid(aSlabs)) {
327 CR.shaped(ST.amount(2, aSlabs), CR.DEF_NCC, "sB", 'B', aBlock);
328 RM.sawing(16, 72, F, 3, aBlock, ST.amount(2, aSlabs));
329 }
330 if (ST.valid(aWalls)) {
331 CR.shaped(ST.amount(4, aWalls), CR.DEF_NCC, " B ", "BBB", 'B', aBlock);
332 }
333 if (ST.valid(aPillar)) {
334 CR.shaped(ST.amount(2, aPillar), CR.DEF_NCC, " B", " B", 'B', aBlock);
335 }
336 }
337
338 if (ST.valid(aStair)) {
339 CR.remout(aStair);
340
341 if (aMat != null) {
342 RM.Shredder.addRecipe1(T, 16, 16, aStair, OP.dustSmall.mat(aMat, 27));
343
344 if (aIsCobbleTarget) {
345 RM.pack(OP.rockGt.mat(aMat, 3), aStair);
346 CR.shaped(aStair, CR.DEF_NCC_MIR, " B", "BB", 'B', OP.rockGt.dat(aMat));
347 }
348 }
349 if (ST.valid(aSlabs)) {
350 CR.shaped(aSlabs, CR.DEF_NCC, "sB", 'B', aStair);
351 RM.sawing(16, 72, F, 3, aStair, aSlabs, aMat == null ? NI : OP.dustSmall.mat(aMat, 9));
352 }
353 }
354
355 if (ST.valid(aSlabs)) {
356 CR.remout(aSlabs);
357
358 if (aMat != null) {
359 RM.Shredder.addRecipe1(T, 16, 16, aSlabs, OP.dustSmall.mat(aMat, 18));
360
361 if (aIsCobbleTarget) {
362 RM.pack(OP.rockGt.mat(aMat, 2), aSlabs);
363 CR.shaped(aSlabs, CR.DEF_NCC, "BB", 'B', OP.rockGt.dat(aMat));
364 }
365 }
366 if (ST.valid(aStair)) {
367 CR.shaped(ST.amount(2, aStair), CR.DEF_NCC_MIR, "sB", "BB", 'B', aSlabs);
368 }
369 }

Callers 7

onPostLoadMethod · 0.95
onPostLoadMethod · 0.95
onPostLoadMethod · 0.95
onPostLoadMethod · 0.95
onPostLoadMethod · 0.95
onPostLoadMethod · 0.95
onPostLoadMethod · 0.95

Calls 9

validMethod · 0.95
packMethod · 0.95
shapedMethod · 0.95
amountMethod · 0.95
sawingMethod · 0.95
remoutMethod · 0.95
addRecipe1Method · 0.80
matMethod · 0.80
datMethod · 0.80

Tested by

no test coverage detected