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

Method getOrCreate

src/main/java/gregapi/util/UT.java:2032–2036  ·  view source on GitHub ↗
(ItemStack aStack)

Source from the content-addressed store, hash-verified

2030 }
2031
2032 public static NBTTagCompound getOrCreate(ItemStack aStack) {
2033 NBTTagCompound rNBT = aStack.getTagCompound();
2034 if (rNBT == null) aStack.setTagCompound(rNBT = make());
2035 return rNBT;
2036 }
2037
2038 public static NBTTagCompound setPunchCardData(ItemStack aStack, String aPunchCardData) {
2039 NBTTagCompound tNBT = getNBT(aStack);

Callers 10

removeEnchantmentsMethod · 0.95
getBumbleTagMethod · 0.45
setBumbleTagMethod · 0.45
updateItemStackMethod · 0.45
findRecipeMethod · 0.45
findRecipeMethod · 0.45
onModPreInit2Method · 0.45
onModInit2Method · 0.45
onItemRightClickMethod · 0.45
reloadGunMethod · 0.45

Calls 1

makeMethod · 0.95

Tested by

no test coverage detected