Interface MutableItemStorage

All Superinterfaces:
ItemStorage, Storage<net.minecraft.world.item.ItemStack>
All Known Implementing Classes:
SimpleItemStorage

public interface MutableItemStorage extends ItemStorage
A mutable ItemStorage. Item handlers you obtain from other mods or blocks will most likely not implement this! Use it only to wrap your item storage as an ItemStorageContainer.
  • Method Details

    • setItem

      void setItem(int slot, net.minecraft.world.item.ItemStack stack)
      Sets the itemstack in the given slot with no checks.
    • removeItem

      net.minecraft.world.item.ItemStack removeItem(int slot)
      Removes the item from the given slot with no checks, and returns it.
    • asContainer

      default ItemStorageContainer asContainer()
      Wrap this item storage as an ItemStorageContainer.