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

Method load

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

Loads an ItemStack properly.

(NBTTagCompound aNBT, String aTagName)

Source from the content-addressed store, hash-verified

1259
1260 /** Loads an ItemStack properly. */
1261 public static ItemStack load(NBTTagCompound aNBT, String aTagName) {
1262 return aNBT == null ? null : load(aNBT.getCompoundTag(aTagName), NI);
1263 }
1264 /** Loads an ItemStack properly. */
1265 public static ItemStack load(NBTTagCompound aNBT, String aTagName, ItemStack aDefault) {
1266 return aNBT == null ? null : load(aNBT.getCompoundTag(aTagName), aDefault);

Callers 15

onServerLoadMethod · 0.95
readFromNBT2Method · 0.95
readFromNBT2Method · 0.95
readFromNBT2Method · 0.95
readFromNBT2Method · 0.95
getBlueprintCraftingMethod · 0.95
loadMethod · 0.95
addToolTipsMethod · 0.95
onToolClickMethod · 0.95
addToolTipsMethod · 0.95
onToolClickMethod · 0.95

Calls 4

makeMethod · 0.95
update_Method · 0.95
get_Method · 0.95
getStackMethod · 0.45

Tested by

no test coverage detected