Package appeng.api.upgrades
Interface ItemUpgradesChanged
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback for upgrade inventories crated through
UpgradeInventories.forItem(net.minecraft.world.item.ItemStack, int)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
onUpgradesChanged
(net.minecraft.world.item.ItemStack stack, IUpgradeInventory upgrades) Called when the upgrades inserted intostack
have changed.
-
Method Details
-
onUpgradesChanged
Called when the upgrades inserted intostack
have changed. The inventory of upgrades is passed to avoid having to deserialize it from NBT again to inspect installed upgrades.
-