YATS/Forge Documentation
|
Static Public Member Functions | |
static int | getItemBurnTime (ItemStack par0ItemStack) |
static boolean | isItemFuel (ItemStack par0ItemStack) |
Static Public Member Functions inherited from net.minecraft.tileentity.TileEntity | |
static void | addMapping (Class par0Class, String par1Str) |
static TileEntity | createAndLoadEntity (NBTTagCompound par0NBTTagCompound) |
Public Attributes | |
int | furnaceBurnTime = 0 |
int | currentItemBurnTime = 0 |
int | furnaceCookTime = 0 |
Public Attributes inherited from net.minecraft.tileentity.TileEntity | |
World | worldObj |
int | xCoord |
int | yCoord |
int | zCoord |
int | blockMetadata = -1 |
Block | blockType |
Additional Inherited Members | |
Static Public Attributes inherited from net.minecraft.tileentity.TileEntity | |
static final AxisAlignedBB | INFINITE_EXTENT_AABB = AxisAlignedBB.getBoundingBox(Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY) |
Protected Attributes inherited from net.minecraft.tileentity.TileEntity | |
boolean | tileEntityInvalid |
boolean net.minecraft.tileentity.TileEntityFurnace.canExtractItem | ( | int | par1, |
ItemStack | par2ItemStack, | ||
int | par3 | ||
) |
Returns true if automation can extract the given item in the given slot from the given side. Args: Slot, item, side
Implements net.minecraft.inventory.ISidedInventory.
boolean net.minecraft.tileentity.TileEntityFurnace.canInsertItem | ( | int | par1, |
ItemStack | par2ItemStack, | ||
int | par3 | ||
) |
Returns true if automation can insert the given item in the given slot from the given side. Args: Slot, item, side
Implements net.minecraft.inventory.ISidedInventory.
void net.minecraft.tileentity.TileEntityFurnace.closeChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
ItemStack net.minecraft.tileentity.TileEntityFurnace.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.
Implements net.minecraft.inventory.IInventory.
void net.minecraft.tileentity.TileEntityFurnace.func_94129_a | ( | String | par1Str) |
int [] net.minecraft.tileentity.TileEntityFurnace.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.
Implements net.minecraft.inventory.ISidedInventory.
int net.minecraft.tileentity.TileEntityFurnace.getBurnTimeRemainingScaled | ( | int | par1) |
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 net.minecraft.tileentity.TileEntityFurnace.getCookProgressScaled | ( | int | par1) |
Returns an integer between 0 and the passed value representing how close the current item is to being completely cooked
int net.minecraft.tileentity.TileEntityFurnace.getInventoryStackLimit | ( | ) |
Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended. Isn't this more of a set than a get?
Implements net.minecraft.inventory.IInventory.
String net.minecraft.tileentity.TileEntityFurnace.getInvName | ( | ) |
Returns the name of the inventory.
Implements net.minecraft.inventory.IInventory.
|
static |
Returns the number of ticks that the supplied fuel item will keep the furnace burning, or 0 if the item isn't fuel
int net.minecraft.tileentity.TileEntityFurnace.getSizeInventory | ( | ) |
Returns the number of slots in the inventory.
Implements net.minecraft.inventory.IInventory.
int net.minecraft.tileentity.TileEntityFurnace.getSizeInventorySide | ( | ForgeDirection | side) |
Get the size of the side inventory.
side | The global side. |
Implements net.minecraftforge.common.ISidedInventory.
ItemStack net.minecraft.tileentity.TileEntityFurnace.getStackInSlot | ( | int | par1) |
Returns the stack in slot i
Implements net.minecraft.inventory.IInventory.
ItemStack net.minecraft.tileentity.TileEntityFurnace.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.
Implements net.minecraft.inventory.IInventory.
int net.minecraft.tileentity.TileEntityFurnace.getStartInventorySide | ( | ForgeDirection | side) |
Get the start of the side inventory.
side | The global side to get the start of range. |
Implements net.minecraftforge.common.ISidedInventory.
boolean net.minecraft.tileentity.TileEntityFurnace.isBurning | ( | ) |
Returns true if the furnace is currently burning
boolean net.minecraft.tileentity.TileEntityFurnace.isInvNameLocalized | ( | ) |
If this returns false, the inventory name will be used as an unlocalized name, and translated into the player's language. Otherwise it will be used directly.
Implements net.minecraft.inventory.IInventory.
|
static |
Return true if item is a fuel source (getItemBurnTime() > 0).
boolean net.minecraft.tileentity.TileEntityFurnace.isStackValidForSlot | ( | int | par1, |
ItemStack | par2ItemStack | ||
) |
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
Implements net.minecraft.inventory.IInventory.
boolean net.minecraft.tileentity.TileEntityFurnace.isUseableByPlayer | ( | EntityPlayer | par1EntityPlayer) |
Do not make give this method the name canInteractWith because it clashes with Container
Implements net.minecraft.inventory.IInventory.
void net.minecraft.tileentity.TileEntityFurnace.openChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
void net.minecraft.tileentity.TileEntityFurnace.readFromNBT | ( | NBTTagCompound | par1NBTTagCompound) |
Reads a tile entity from NBT.
void net.minecraft.tileentity.TileEntityFurnace.setInventorySlotContents | ( | int | par1, |
ItemStack | par2ItemStack | ||
) |
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
Implements net.minecraft.inventory.IInventory.
void net.minecraft.tileentity.TileEntityFurnace.smeltItem | ( | ) |
Turn one item from the furnace source stack into the appropriate smelted item in the furnace result stack
void net.minecraft.tileentity.TileEntityFurnace.updateEntity | ( | ) |
Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count ticks and creates a new spawn inside its implementation.
void net.minecraft.tileentity.TileEntityFurnace.writeToNBT | ( | NBTTagCompound | par1NBTTagCompound) |
Writes a tile entity to NBT.
int net.minecraft.tileentity.TileEntityFurnace.currentItemBurnTime = 0 |
The number of ticks that a fresh copy of the currently-burning item would keep the furnace burning for
int net.minecraft.tileentity.TileEntityFurnace.furnaceBurnTime = 0 |
The number of ticks that the furnace will keep burning
int net.minecraft.tileentity.TileEntityFurnace.furnaceCookTime = 0 |
The number of ticks that the current item has been cooking for