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

Method save

src/main/java/gregapi/util/ST.java:1291–1296  ·  view source on GitHub ↗

Saves an ItemStack properly.

(String aTagName, Block aBlock)

Source from the content-addressed store, hash-verified

1289
1290 /** Saves an ItemStack properly. */
1291 public static NBTTagCompound save(String aTagName, Block aBlock) {
1292 NBTTagCompound aNBT = UT.NBT.make();
1293 NBTTagCompound tNBT = save(make(aBlock, 1, 0));
1294 if (tNBT == null) aNBT.removeTag(aTagName); else aNBT.setTag(aTagName, tNBT);
1295 return aNBT;
1296 }
1297 /** Saves an ItemStack properly. */
1298 public static NBTTagCompound save(String aTagName, Block aBlock, long aStackSize) {
1299 NBTTagCompound aNBT = UT.NBT.make();

Callers 15

onItemExpireEventMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
ingots_or_platesMethod · 0.95
ingotsMethod · 0.95
platesMethod · 0.95
gemplatesMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95

Calls 8

makeMethod · 0.95
item_Method · 0.95
get_Method · 0.95
idMethod · 0.95
meta_Method · 0.95
anyassociation_Method · 0.95
toStringMethod · 0.95
setNumberMethod · 0.80

Tested by

no test coverage detected