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

Method getWithNameAndNBT

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

Source from the content-addressed store, hash-verified

665 }
666
667 @Override
668 public ItemStack getWithNameAndNBT(long aAmount, String aDisplayName, NBTTagCompound aNBT, Object... aReplacements) {
669 ItemStack rStack = get(1, aReplacements);
670 if (ST.invalid(rStack)) return null;
671 UT.NBT.set(rStack, aNBT);
672 if (aDisplayName != null) rStack.setStackDisplayName(aDisplayName);
673 return ST.amount(aAmount, rStack);
674 }
675
676 @Override
677 public ItemStack getWithCharge(long aAmount, long aEnergy, Object... aReplacements) {

Callers

nothing calls this directly

Calls 4

getMethod · 0.95
invalidMethod · 0.95
amountMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected