Package net.minecraftforge.items
Interface IItemHandlerModifiable
-
- All Superinterfaces:
IItemHandler
- All Known Implementing Classes:
CombinedInvWrapper
,EmptyHandler
,EntityArmorInvWrapper
,EntityEquipmentInvWrapper
,EntityHandsInvWrapper
,InvWrapper
,ItemStackHandler
,PlayerArmorInvWrapper
,PlayerInvWrapper
,PlayerMainInvWrapper
,PlayerOffhandInvWrapper
,RangedWrapper
,SidedInvWrapper
,VanillaHopperItemHandler
public interface IItemHandlerModifiable extends IItemHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setStackInSlot(int slot, ItemStack stack)
Overrides the stack in the given slot.-
Methods inherited from interface net.minecraftforge.items.IItemHandler
extractItem, getSlotLimit, getSlots, getStackInSlot, insertItem, isItemValid
-
-
-
-
Method Detail
-
setStackInSlot
void setStackInSlot(int slot, @Nonnull ItemStack stack)
Overrides the stack in the given slot. This method is used by the standard Forge helper methods and classes. It is not intended for general use by other mods, and the handler may throw an error if it is called unexpectedly.- Parameters:
slot
- Slot to modifystack
- ItemStack to set slot to (may be empty).- Throws:
java.lang.RuntimeException
- if the handler is called in a way that the handler was not expecting.
-
-