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

Method update

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

Source from the content-addressed store, hash-verified

252 }
253
254 public static ItemStack update (ItemStack aStack) {
255 return invalid(aStack)?aStack:update_(aStack);
256 }
257 public static ItemStack update_(ItemStack aStack) {
258 if (aStack.hasTagCompound() && aStack.getTagCompound().hasNoTags()) aStack.setTagCompound(null);
259 if (item_(aStack) instanceof IItemUpdatable) ((IItemUpdatable)item_(aStack)).updateItemStack(aStack);

Callers 15

onPlayerTickEventMethod · 0.95
onPlayerDestroyItemMethod · 0.95
onEntitySpawningEventMethod · 0.95
addItemMethod · 0.95
rechargeFromPlayerMethod · 0.95
getCraftingResultMethod · 0.95
RecipeMethod · 0.95
getCraftingResultMethod · 0.95
findRecipeMethod · 0.95
rechargeFromPlayerMethod · 0.95
onToolClick2Method · 0.95

Calls 4

invalidMethod · 0.95
update_Method · 0.95
roundDownMethod · 0.80
detectAndSendChangesMethod · 0.45

Tested by

no test coverage detected