public class TileEntityFurnace extends TileEntity implements ISidedInventory
| Modifier and Type | Field and Description |
|---|---|
int |
currentItemBurnTime
The number of ticks that a fresh copy of the currently-burning item would keep the furnace burning for
|
int |
furnaceBurnTime
The number of ticks that the furnace will keep burning
|
int |
furnaceCookTime
The number of ticks that the current item has been cooking for
|
blockMetadata, blockType, INFINITE_EXTENT_AABB, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord| Constructor and Description |
|---|
TileEntityFurnace() |
| 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_145951_a(java.lang.String p_145951_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 |
getBurnTimeRemainingScaled(int p_145955_1_)
Returns an integer between 0 and the passed value representing how much burn time is left on the current fuel
item, where 0 means that the item is exhausted and the passed value means that the item is fresh
|
int |
getCookProgressScaled(int p_145953_1_)
Returns an integer between 0 and the passed value representing how close the current item is to being completely
cooked
|
java.lang.String |
getInventoryName()
Returns the name of the inventory
|
int |
getInventoryStackLimit()
Returns the maximum stack size for a inventory slot.
|
static int |
getItemBurnTime(ItemStack p_145952_0_)
Returns the number of ticks that the supplied fuel item will keep the furnace burning, or 0 if the item isn't
fuel
|
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 |
isBurning()
Furnace isBurning
|
static boolean |
isItemFuel(ItemStack p_145954_0_) |
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 |
smeltItem()
Turn one item from the furnace source stack into the appropriate smelted item in the furnace result stack
|
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 int furnaceBurnTime
public int currentItemBurnTime
public int furnaceCookTime
public int getSizeInventory()
getSizeInventory in interface IInventorypublic 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 java.lang.String getInventoryName()
getInventoryName in interface IInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface IInventorypublic void func_145951_a(java.lang.String p_145951_1_)
public void readFromNBT(NBTTagCompound p_145839_1_)
readFromNBT in class TileEntitypublic void writeToNBT(NBTTagCompound p_145841_1_)
writeToNBT in class TileEntitypublic int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic int getCookProgressScaled(int p_145953_1_)
public int getBurnTimeRemainingScaled(int p_145955_1_)
public boolean isBurning()
public void updateEntity()
updateEntity in class TileEntitypublic void smeltItem()
public static int getItemBurnTime(ItemStack p_145952_0_)
public static boolean isItemFuel(ItemStack p_145954_0_)
public 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 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