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 TypeMethodDescriptionvoidonUpgradesChanged(net.minecraft.world.item.ItemStack stack, IUpgradeInventory upgrades) Called when the upgrades inserted intostackhave changed.
-
Method Details
-
onUpgradesChanged
Called when the upgrades inserted intostackhave changed. The inventory of upgrades is passed to avoid having to deserialize it from NBT again to inspect installed upgrades.
-