public class PlayerInventory extends MalisisInventory
containers, inventoryId, inventoryProvider, itemStackProvider, name, size, slotMaxStackSize, slots, state
Constructor and Description |
---|
PlayerInventory(net.minecraft.entity.player.EntityPlayer p) |
Modifier and Type | Method and Description |
---|---|
boolean |
isItemValidForSlot(int slotNumber,
net.minecraft.item.ItemStack itemStack)
Checks whether itemStack can be contained by the slot at position slotNumber.
|
net.minecraft.item.ItemStack |
transferInto(net.minecraft.item.ItemStack itemStack)
Transfers an
ItemStack inside this MalisisInventory . |
net.minecraft.item.ItemStack |
transferInto(net.minecraft.item.ItemStack itemStack,
boolean reversed)
Transfers itemStack inside this
MalisisInventory . |
addOpenedContainer, breakInventory, closeInventory, decrStackSize, getFirstOccupiedSlot, getInventoryId, getInventoryName, getInventoryStackLimit, getItemStack, getItemStackList, getOpenedContainers, getProvider, getSizeInventory, getSlot, getSlots, getStackInSlot, getStackInSlotOnClosing, hasCustomInventoryName, isEmpty, isFull, isUseableByPlayer, itemValidForSlot, markDirty, onSlotChanged, open, open, openInventory, overrideSlot, pullItemStack, readFromNBT, register, removeOpenedContainer, setInventoryId, setInventorySlotContents, setInventoryStackLimit, setItemStack, setItemStackProvider, setName, setSlots, toString, transferInto, writeToNBT
public PlayerInventory(net.minecraft.entity.player.EntityPlayer p)
public net.minecraft.item.ItemStack transferInto(net.minecraft.item.ItemStack itemStack)
MalisisInventory
ItemStack
inside this MalisisInventory
.transferInto
in class MalisisInventory
itemStack
- the item stackpublic net.minecraft.item.ItemStack transferInto(net.minecraft.item.ItemStack itemStack, boolean reversed)
MalisisInventory
MalisisInventory
.transferInto
in class MalisisInventory
itemStack
- the item stackreversed
- if true, start filling slots from the last slotpublic boolean isItemValidForSlot(int slotNumber, net.minecraft.item.ItemStack itemStack)
MalisisInventory
isItemValidForSlot
in interface net.minecraft.inventory.IInventory
isItemValidForSlot
in class MalisisInventory
slotNumber
- the slot numberitemStack
- the item stack