Package org.moddingx.libx.inventory
Interface IAdvancedItemHandlerModifiable
- All Superinterfaces:
IAdvancedItemHandler
,net.minecraftforge.items.IItemHandler
,net.minecraftforge.items.IItemHandlerModifiable
- All Known Implementing Classes:
BaseItemStackHandler
public interface IAdvancedItemHandlerModifiable
extends net.minecraftforge.items.IItemHandlerModifiable, IAdvancedItemHandler
Rich interface that provides some default methods to an
IItemHandlerModifiable
.
Just implement this together with IItemHandlerModifiable
.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
clear()
Clears all slots from the item handler.default int
Clears all stacks from the item handler that match a predicate.wrap
(net.minecraftforge.items.IItemHandlerModifiable handler) Creates a new IAdvancedItemHandlerModifiable from anIItemHandlerModifiable
.Methods inherited from interface org.moddingx.libx.inventory.IAdvancedItemHandler
extractItem, extractItem, hasSpaceFor, hasSpaceFor, insertItem
Methods inherited from interface net.minecraftforge.items.IItemHandler
extractItem, getSlotLimit, getSlots, getStackInSlot, insertItem, isItemValid
Methods inherited from interface net.minecraftforge.items.IItemHandlerModifiable
setStackInSlot
-
Method Details
-
clear
default void clear()Clears all slots from the item handler. -
clear
Clears all stacks from the item handler that match a predicate.- Returns:
- The amount of items cleared.
-
wrap
Creates a new IAdvancedItemHandlerModifiable from anIItemHandlerModifiable
.
-