public abstract class InvWrapperBase
extends java.lang.Object
implements net.minecraft.inventory.IInventory
| Constructor and Description |
|---|
InvWrapperBase(net.minecraft.inventory.IInventory inv) |
InvWrapperBase(net.minecraft.inventory.IInventory inv,
boolean checkItems) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkItems() |
void |
clear() |
void |
closeInventory(net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
decrStackSize(int slot,
int amount) |
net.minecraft.inventory.IInventory |
getBaseInventory() |
net.minecraft.util.text.ITextComponent |
getDisplayName() |
int |
getField(int id) |
int |
getFieldCount() |
int |
getInventoryStackLimit() |
java.lang.String |
getName() |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int slot) |
boolean |
hasCustomName() |
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack stack) |
boolean |
isUsableByPlayer(net.minecraft.entity.player.EntityPlayer entityplayer) |
void |
markDirty() |
void |
openInventory(net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
removeStackFromSlot(int slot) |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int slot,
net.minecraft.item.ItemStack itemstack) |
public InvWrapperBase(net.minecraft.inventory.IInventory inv)
public InvWrapperBase(net.minecraft.inventory.IInventory inv,
boolean checkItems)
public net.minecraft.inventory.IInventory getBaseInventory()
public int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int slot)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int slot,
int amount)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack removeStackFromSlot(int slot)
removeStackFromSlot in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int slot,
net.minecraft.item.ItemStack itemstack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic java.lang.String getName()
getName in interface net.minecraft.world.IWorldNameablepublic net.minecraft.util.text.ITextComponent getDisplayName()
getDisplayName in interface net.minecraft.world.IWorldNameablepublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.IInventorypublic boolean isUsableByPlayer(net.minecraft.entity.player.EntityPlayer entityplayer)
isUsableByPlayer in interface net.minecraft.inventory.IInventorypublic void openInventory(net.minecraft.entity.player.EntityPlayer player)
openInventory in interface net.minecraft.inventory.IInventorypublic void closeInventory(net.minecraft.entity.player.EntityPlayer player)
closeInventory in interface net.minecraft.inventory.IInventorypublic boolean hasCustomName()
hasCustomName in interface net.minecraft.world.IWorldNameablepublic boolean isItemValidForSlot(int slot,
net.minecraft.item.ItemStack stack)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic int getField(int id)
getField in interface net.minecraft.inventory.IInventorypublic void setField(int id,
int value)
setField in interface net.minecraft.inventory.IInventorypublic int getFieldCount()
getFieldCount in interface net.minecraft.inventory.IInventorypublic void clear()
clear in interface net.minecraft.inventory.IInventorypublic boolean checkItems()