public abstract class InventoryWrapper
extends java.lang.Object
implements net.minecraft.inventory.ISidedInventory
| Constructor and Description |
|---|
InventoryWrapper(net.minecraft.inventory.IInventory inventory) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int slotIndex,
int amount) |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int slotIndex) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int slotIndex) |
static net.minecraft.inventory.ISidedInventory |
getWrappedInventory(java.lang.Object inventory) |
boolean |
hasCustomInventoryName() |
boolean |
isItemValidForSlot(int slotIndex,
net.minecraft.item.ItemStack itemstack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityplayer) |
void |
markDirty() |
void |
openInventory() |
void |
setInventorySlotContents(int slotIndex,
net.minecraft.item.ItemStack itemstack) |
public InventoryWrapper(net.minecraft.inventory.IInventory inventory)
public int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int slotIndex)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int slotIndex,
int amount)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlotOnClosing(int slotIndex)
getStackInSlotOnClosing in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int slotIndex,
net.minecraft.item.ItemStack itemstack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic java.lang.String getInventoryName()
getInventoryName in interface net.minecraft.inventory.IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.IInventorypublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityplayer)
isUseableByPlayer in interface net.minecraft.inventory.IInventorypublic void openInventory()
openInventory in interface net.minecraft.inventory.IInventorypublic void closeInventory()
closeInventory in interface net.minecraft.inventory.IInventorypublic boolean isItemValidForSlot(int slotIndex,
net.minecraft.item.ItemStack itemstack)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface net.minecraft.inventory.IInventorypublic static net.minecraft.inventory.ISidedInventory getWrappedInventory(java.lang.Object inventory)