public class PlayerArmorInvWrapper extends RangedWrapper
Constructor and Description |
---|
PlayerArmorInvWrapper(InventoryPlayer inv) |
Modifier and Type | Method and Description |
---|---|
InventoryPlayer |
getInventoryPlayer() |
ItemStack |
insertItem(int slot,
ItemStack stack,
boolean simulate)
Inserts an ItemStack into the given slot and return the remainder.
|
extractItem, getSlots, getStackInSlot, setStackInSlot
public PlayerArmorInvWrapper(InventoryPlayer inv)
public ItemStack insertItem(int slot, ItemStack stack, boolean simulate)
IItemHandler
insertItem
in interface IItemHandler
insertItem
in class RangedWrapper
slot
- Slot to insert into.stack
- ItemStack to insert.simulate
- If true, the insertion is only simulatedpublic InventoryPlayer getInventoryPlayer()