Interface MutableItemStorage
- All Superinterfaces:
ItemStorage
,Storage<net.minecraft.world.item.ItemStack>
- All Known Implementing Classes:
SimpleItemStorage
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 Summary
Modifier and TypeMethodDescriptiondefault ItemStorageContainer
Wrap this item storage as anItemStorageContainer
.net.minecraft.world.item.ItemStack
removeItem
(int slot) Removes the item from the given slot with no checks, and returns it.void
setItem
(int slot, net.minecraft.world.item.ItemStack stack) Sets the itemstack in the given slot with no checks.Methods inherited from interface design.aeonic.nifty.api.transfer.Storage
extract, extract, getSlotCapacity, getSlots, getStackInSlot, insert, insert, isEverValid
-
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
Wrap this item storage as anItemStorageContainer
.
-