Interface IUpgradeableItem

All Superinterfaces:
net.minecraft.world.level.ItemLike
All Known Subinterfaces:
IBasicCellItem, ICellWorkbenchItem

@NonExtendable public interface IUpgradeableItem extends net.minecraft.world.level.ItemLike
Counterpart for IUpgradeableObject, but for Item.
  • Method Summary

    Modifier and Type
    Method
    Description
    getUpgrades(net.minecraft.world.item.ItemStack stack)
    Used to edit the upgrades on your item, should have a capacity of 0-8 slots.

    Methods inherited from interface net.minecraft.world.level.ItemLike

    asItem
  • Method Details

    • getUpgrades

      default IUpgradeInventory getUpgrades(net.minecraft.world.item.ItemStack stack)
      Used to edit the upgrades on your item, should have a capacity of 0-8 slots. You are also responsible for implementing the valid checks, and any storage/usage of them.

      onInventoryChange will be called when saving is needed.