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.

@FunctionalInterface public interface ItemUpgradesChanged
Callback for upgrade inventories crated through UpgradeInventories.forItem(net.minecraft.world.item.ItemStack, int).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onUpgradesChanged(net.minecraft.world.item.ItemStack stack, IUpgradeInventory upgrades)
    Called when the upgrades inserted into stack have changed.
  • Method Details

    • onUpgradesChanged

      void onUpgradesChanged(net.minecraft.world.item.ItemStack stack, IUpgradeInventory upgrades)
      Called when the upgrades inserted into stack have changed. The inventory of upgrades is passed to avoid having to deserialize it from NBT again to inspect installed upgrades.