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

Method make

src/main/java/gregapi/util/ST.java:353–360  ·  view source on GitHub ↗
(ModData aModID, String aItem, long aSize)

Source from the content-addressed store, hash-verified

351 public static ItemStack make_(Item aItem , long aSize, long aMeta) {return new ItemStack(aItem , UT.Code.bindInt(aSize), UT.Code.bindShort(aMeta));}
352 public static ItemStack make_(Block aBlock, long aSize, long aMeta) {return new ItemStack(aBlock, UT.Code.bindInt(aSize), UT.Code.bindShort(aMeta));}
353 public static ItemStack make(ModData aModID, String aItem, long aSize) {
354 if (!aModID.mLoaded || UT.Code.stringInvalid(aItem) || !GAPI_POST.mStartedPreInit) return null;
355 ItemStack
356 rStack = GameRegistry.findItemStack(aModID.mID, aItem, (int)aSize);
357 if (valid(rStack)) return rStack;
358 if (aItem.length() < 5 || aItem.charAt(4) != '.' || !aItem.startsWith("tile")) return null;
359 return validate(GameRegistry.findItemStack(aModID.mID, aItem.substring(5), (int)aSize));
360 }
361 public static ItemStack mkic(String aItem, long aSize) {
362 if (UT.Code.stringInvalid(aItem) || !GAPI_POST.mStartedPreInit) return null;
363 if (!sIC2ItemMap.containsKey(aItem)) try {

Callers 15

onServerTickMethod · 0.95
onPlayerTickEventMethod · 0.95
onPlayerInteractionMethod · 0.95
initMethod · 0.95
generatePermutationsMethod · 0.95
loadCraftingRecipesMethod · 0.95
GT_APIMethod · 0.95
onModPreInit2Method · 0.95
onModPostInit2Method · 0.95
onModPreInit2Method · 0.95

Calls 12

validMethod · 0.95
validateMethod · 0.95
metaMethod · 0.95
getMethod · 0.95
itemMethod · 0.95
make_Method · 0.95
nbtMethod · 0.95
nameMethod · 0.95
nbt_Method · 0.95
stringInvalidMethod · 0.80
copyMethod · 0.45
toStackMethod · 0.45

Tested by 1

generateMethod · 0.76