public class PlayerInventory extends MalisisInventory
containers, inventoryId, inventoryProvider, itemStackProvider, name, 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.
|
void |
overrideSlot(MalisisSlot slot,
int slotIndex)
Overrides a specific slot with a new one.
|
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, closeContainers, emptyInventory, getFirstOccupiedSlot, getInventoryId, getInventoryStackLimit, getItemStack, getItemStackList, getName, getNonEmptySlots, getOpenedContainers, getProvider, getSize, getSlot, getSlots, hasCustomName, isEmpty, isFull, itemValidForSlot, onSlotChanged, open, open, open, open, pullItemStack, pullItemStacks, readFromNBT, register, removeOpenedContainer, setInventoryId, setInventoryStackLimit, setItemStack, setItemStackProvider, setName, toString, transfer, transferInto, writeToNBTpublic PlayerInventory(net.minecraft.entity.player.EntityPlayer p)
public void overrideSlot(MalisisSlot slot, int slotIndex)
MalisisInventoryoverrideSlot in class MalisisInventoryslot - the slotslotIndex - the slot indexpublic net.minecraft.item.ItemStack transferInto(net.minecraft.item.ItemStack itemStack)
MalisisInventoryItemStack inside this MalisisInventory.transferInto in class MalisisInventoryitemStack - the item stackpublic net.minecraft.item.ItemStack transferInto(net.minecraft.item.ItemStack itemStack,
boolean reversed)
MalisisInventoryMalisisInventory.transferInto in class MalisisInventoryitemStack - the item stackreversed - if true, start filling slots from the last slotpublic boolean isItemValidForSlot(int slotNumber,
net.minecraft.item.ItemStack itemStack)
MalisisInventoryisItemValidForSlot in class MalisisInventoryslotNumber - the slot numberitemStack - the item stack