public class TileEntityBrewingStand extends TileEntity implements ISidedInventory
blockMetadata, blockType, INFINITE_EXTENT_AABB, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord
Constructor and Description |
---|
TileEntityBrewingStand() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExtractItem(int par1,
ItemStack par2ItemStack,
int par3)
Returns true if automation can extract the given item in the given slot from the given side.
|
boolean |
canInsertItem(int par1,
ItemStack par2ItemStack,
int par3)
Returns true if automation can insert the given item in the given slot from the given side.
|
void |
closeInventory() |
ItemStack |
decrStackSize(int par1,
int par2)
Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a
new stack.
|
void |
func_145937_a(java.lang.String p_145937_1_) |
void |
func_145938_d(int p_145938_1_) |
int[] |
getAccessibleSlotsFromSide(int par1)
Returns an array containing the indices of the slots that can be accessed by automation on the given side of this
block.
|
int |
getBrewTime() |
int |
getFilledSlots()
Returns an integer with each bit specifying whether that slot of the stand contains a potion
|
java.lang.String |
getInventoryName()
Returns the name of the inventory
|
int |
getInventoryStackLimit()
Returns the maximum stack size for a inventory slot.
|
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
ItemStack |
getStackInSlot(int par1)
Returns the stack in slot i
|
ItemStack |
getStackInSlotOnClosing(int par1)
When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem -
like when you close a workbench GUI.
|
boolean |
hasCustomInventoryName()
Returns if the inventory is named
|
boolean |
isItemValidForSlot(int par1,
ItemStack par2ItemStack)
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
|
boolean |
isUseableByPlayer(EntityPlayer par1EntityPlayer)
Do not make give this method the name canInteractWith because it clashes with Container
|
void |
openInventory() |
void |
readFromNBT(NBTTagCompound p_145839_1_) |
void |
setInventorySlotContents(int par1,
ItemStack par2ItemStack)
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
|
void |
updateEntity() |
void |
writeToNBT(NBTTagCompound p_145841_1_) |
addMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
markDirty
public java.lang.String getInventoryName()
getInventoryName
in interface IInventory
public boolean hasCustomInventoryName()
hasCustomInventoryName
in interface IInventory
public void func_145937_a(java.lang.String p_145937_1_)
public int getSizeInventory()
getSizeInventory
in interface IInventory
public void updateEntity()
updateEntity
in class TileEntity
public int getBrewTime()
public void readFromNBT(NBTTagCompound p_145839_1_)
readFromNBT
in class TileEntity
public void writeToNBT(NBTTagCompound p_145841_1_)
writeToNBT
in class TileEntity
public ItemStack getStackInSlot(int par1)
getStackInSlot
in interface IInventory
public ItemStack decrStackSize(int par1, int par2)
decrStackSize
in interface IInventory
public ItemStack getStackInSlotOnClosing(int par1)
getStackInSlotOnClosing
in interface IInventory
public void setInventorySlotContents(int par1, ItemStack par2ItemStack)
setInventorySlotContents
in interface IInventory
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer)
isUseableByPlayer
in interface IInventory
public void openInventory()
openInventory
in interface IInventory
public void closeInventory()
closeInventory
in interface IInventory
public boolean isItemValidForSlot(int par1, ItemStack par2ItemStack)
isItemValidForSlot
in interface IInventory
public void func_145938_d(int p_145938_1_)
public int getFilledSlots()
public int[] getAccessibleSlotsFromSide(int par1)
getAccessibleSlotsFromSide
in interface ISidedInventory
public boolean canInsertItem(int par1, ItemStack par2ItemStack, int par3)
canInsertItem
in interface ISidedInventory
public boolean canExtractItem(int par1, ItemStack par2ItemStack, int par3)
canExtractItem
in interface ISidedInventory