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

Method getWithNBT

src/main/java/gregapi/data/IL.java:698–705  ·  view source on GitHub ↗
(long aAmount, NBTTagCompound aNBT, Object... aReplacements)

Source from the content-addressed store, hash-verified

696 }
697
698 @Override
699 public ItemStack getWithNBT(long aAmount, NBTTagCompound aNBT, Object... aReplacements) {
700 if (mHasNotBeenSet && Abstract_Mod.sFinalized < Abstract_Mod.sModCountUsingGTAPI) ERR.println("The Enum '" + name() + "' has not been set to an Item at this time!");
701 if (ST.invalid(mStack)) return ST.copyFirst(aReplacements);
702 ItemStack rStack = ST.amount(aAmount, OM.get_(mStack));
703 UT.NBT.set(rStack, aNBT);
704 return rStack;
705 }
706
707 @Override
708 public IItemContainer registerOre(Object... aOreNames) {

Callers

nothing calls this directly

Calls 7

invalidMethod · 0.95
copyFirstMethod · 0.95
amountMethod · 0.95
get_Method · 0.95
printlnMethod · 0.80
nameMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected