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 p_102008_1_,
ItemStack p_102008_2_,
int p_102008_3_)
Returns true if automation can extract the given item in the given slot from the given side.
|
boolean |
canInsertItem(int p_102007_1_,
ItemStack p_102007_2_,
int p_102007_3_)
Returns true if automation can insert the given item in the given slot from the given side.
|
void |
closeInventory() |
ItemStack |
decrStackSize(int p_70298_1_,
int p_70298_2_)
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 p_94128_1_)
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 p_70301_1_)
Returns the stack in slot i
|
ItemStack |
getStackInSlotOnClosing(int p_70304_1_)
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 p_94041_1_,
ItemStack p_94041_2_)
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
|
boolean |
isUseableByPlayer(EntityPlayer p_70300_1_)
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 p_70299_1_,
ItemStack p_70299_2_)
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, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkDirtypublic java.lang.String getInventoryName()
getInventoryName in interface IInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface IInventorypublic void func_145937_a(java.lang.String p_145937_1_)
public int getSizeInventory()
getSizeInventory in interface IInventorypublic void updateEntity()
updateEntity in class TileEntitypublic int getBrewTime()
public void readFromNBT(NBTTagCompound p_145839_1_)
readFromNBT in class TileEntitypublic void writeToNBT(NBTTagCompound p_145841_1_)
writeToNBT in class TileEntitypublic ItemStack getStackInSlot(int p_70301_1_)
getStackInSlot in interface IInventorypublic ItemStack decrStackSize(int p_70298_1_, int p_70298_2_)
decrStackSize in interface IInventorypublic ItemStack getStackInSlotOnClosing(int p_70304_1_)
getStackInSlotOnClosing in interface IInventorypublic void setInventorySlotContents(int p_70299_1_,
ItemStack p_70299_2_)
setInventorySlotContents in interface IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic boolean isUseableByPlayer(EntityPlayer p_70300_1_)
isUseableByPlayer in interface IInventorypublic void openInventory()
openInventory in interface IInventorypublic void closeInventory()
closeInventory in interface IInventorypublic boolean isItemValidForSlot(int p_94041_1_,
ItemStack p_94041_2_)
isItemValidForSlot in interface IInventorypublic void func_145938_d(int p_145938_1_)
public int getFilledSlots()
public int[] getAccessibleSlotsFromSide(int p_94128_1_)
getAccessibleSlotsFromSide in interface ISidedInventorypublic boolean canInsertItem(int p_102007_1_,
ItemStack p_102007_2_,
int p_102007_3_)
canInsertItem in interface ISidedInventorypublic boolean canExtractItem(int p_102008_1_,
ItemStack p_102008_2_,
int p_102008_3_)
canExtractItem in interface ISidedInventory