public class InventoryMapper extends InvWrapperBase implements net.minecraft.inventory.IInventory
| Constructor and Description |
|---|
InventoryMapper(net.minecraft.inventory.IInventory inv) |
InventoryMapper(net.minecraft.inventory.IInventory inv,
boolean checkItems) |
InventoryMapper(net.minecraft.inventory.IInventory inv,
int start,
int size)
Creates a new InventoryMapper
|
InventoryMapper(net.minecraft.inventory.IInventory inv,
int start,
int size,
boolean checkItems) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.item.ItemStack |
decrStackSize(int slot,
int amount) |
int |
getInventoryStackLimit() |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int slot) |
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack stack) |
void |
setInventorySlotContents(int slot,
net.minecraft.item.ItemStack itemstack) |
void |
setStackSizeLimit(int limit) |
checkItems, clear, closeInventory, getBaseInventory, getDisplayName, getField, getFieldCount, getName, hasCustomName, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setFieldclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic InventoryMapper(net.minecraft.inventory.IInventory inv)
public InventoryMapper(net.minecraft.inventory.IInventory inv,
boolean checkItems)
public InventoryMapper(net.minecraft.inventory.IInventory inv,
int start,
int size)
inv - The backing inventorystart - The starting indexsize - The size of the new inventory, take care not to exceed the
end of the backing inventorypublic InventoryMapper(net.minecraft.inventory.IInventory inv,
int start,
int size,
boolean checkItems)
public boolean isEmpty()
isEmpty in interface net.minecraft.inventory.IInventorypublic int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorygetSizeInventory in class InvWrapperBasepublic net.minecraft.item.ItemStack getStackInSlot(int slot)
getStackInSlot in interface net.minecraft.inventory.IInventorygetStackInSlot in class InvWrapperBasepublic net.minecraft.item.ItemStack decrStackSize(int slot,
int amount)
decrStackSize in interface net.minecraft.inventory.IInventorydecrStackSize in class InvWrapperBasepublic void setInventorySlotContents(int slot,
net.minecraft.item.ItemStack itemstack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorysetInventorySlotContents in class InvWrapperBasepublic void setStackSizeLimit(int limit)
public int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorygetInventoryStackLimit in class InvWrapperBasepublic boolean isItemValidForSlot(int slot,
net.minecraft.item.ItemStack stack)
isItemValidForSlot in interface net.minecraft.inventory.IInventoryisItemValidForSlot in class InvWrapperBase