Package net.neoforged.neoforge.items
Interface IItemHandlerModifiable
- All Superinterfaces:
IItemHandler
- All Known Implementing Classes:
CombinedInvWrapper,ComponentItemHandler,EmptyItemHandler,EntityArmorInvWrapper,EntityEquipmentInvWrapper,EntityHandsInvWrapper,InvWrapper,ItemStackHandler,PlayerArmorInvWrapper,PlayerInvWrapper,PlayerMainInvWrapper,PlayerOffhandInvWrapper,RangedWrapper,SidedInvWrapper
@Deprecated(since="1.21.9",
forRemoval=true)
public interface IItemHandlerModifiable
extends IItemHandler
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetStackInSlot(int slot, ItemStack stack) Deprecated, for removal: This API element is subject to removal in a future version.Overrides the stack in the given slot.Methods inherited from interface net.neoforged.neoforge.items.IItemHandler
extractItem, getSlotLimit, getSlots, getStackInSlot, insertItem, isItemValid
-
Method Details
-
setStackInSlot
Deprecated, for removal: This API element is subject to removal in a future version.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:
RuntimeException- if the handler is called in a way that the handler was not expecting.
-
IndexModifierinterface for usage inResourceHandlerSlot.