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

Method nbt

src/main/java/gregapi/util/ST.java:180–180  ·  view source on GitHub ↗
(ItemStack aStack)

Source from the content-addressed store, hash-verified

178 public static ItemStack name_(ItemStack aStack, String aName) {aStack.setStackDisplayName(aName); return aStack;}
179
180 public static NBTTagCompound nbt (ItemStack aStack) {return aStack == null ? null : nbt_(aStack);}
181 public static NBTTagCompound nbt_(ItemStack aStack) {return aStack.getTagCompound();}
182 public static ItemStack nbt (ItemStack aStack, NBTTagCompound aNBT) {return aStack == null ? null : nbt_(aStack, aNBT);}
183 public static ItemStack nbt_(ItemStack aStack, NBTTagCompound aNBT) {return UT.NBT.set(aStack, aNBT);}

Callers 5

onToolClickMethod · 0.95
makeMethod · 0.95
generateLootMethod · 0.95

Calls 1

nbt_Method · 0.95

Tested by

no test coverage detected