Package net.minecraftforge.items.wrapper
Class PlayerArmorInvWrapper
java.lang.Object
net.minecraftforge.items.wrapper.RangedWrapper
net.minecraftforge.items.wrapper.PlayerArmorInvWrapper
- All Implemented Interfaces:
IItemHandler
,IItemHandlerModifiable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninsertItem(int slot, ItemStack stack, boolean simulate)
Inserts an ItemStack into the given slot and return the remainder.Methods inherited from class net.minecraftforge.items.wrapper.RangedWrapper
extractItem, getSlotLimit, getSlots, getStackInSlot, isItemValid, setStackInSlot
-
Field Details
-
inventoryPlayer
-
-
Constructor Details
-
PlayerArmorInvWrapper
-
-
Method Details
-
insertItem
Description copied from interface:IItemHandler
Inserts an ItemStack into the given slot and return the remainder. The ItemStack should not be modified in this function!
Note: This behaviour is subtly different fromIFluidHandler.fill(FluidStack, IFluidHandler.FluidAction)
- Specified by:
insertItem
in interfaceIItemHandler
- Overrides:
insertItem
in classRangedWrapper
- Parameters:
slot
- Slot to insert into.stack
- ItemStack to insert. This must not be modified by the item handler.simulate
- If true, the insertion is only simulated- Returns:
- The remaining ItemStack that was not inserted (if the entire stack is accepted, then return an empty ItemStack). May be the same as the input ItemStack if unchanged, otherwise a new ItemStack. The returned ItemStack can be safely modified after.
-
getInventoryPlayer
-