public class PlayerMainInvWrapper extends RangedWrapper
Constructor and Description |
---|
PlayerMainInvWrapper(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, getSlotLimit, getSlots, getStackInSlot, isItemValid, setStackInSlot
public PlayerMainInvWrapper(InventoryPlayer inv)
public ItemStack insertItem(int slot, ItemStack stack, boolean simulate)
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, boolean)
insertItem
in interface IItemHandler
insertItem
in class RangedWrapper
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 simulatedpublic InventoryPlayer getInventoryPlayer()