Package btw.block.tileentity
Class OvenTileEntity
java.lang.Object
net.minecraft.src.TileEntity
net.minecraft.src.TileEntityFurnace
btw.block.tileentity.OvenTileEntity
- All Implemented Interfaces:
TileEntityDataPacketHandler,IInventory,ISidedInventory
-
Field Summary
FieldsFields inherited from class net.minecraft.src.TileEntityFurnace
BASE_BURN_TIME_MULTIPLIER, currentItemBurnTime, DEFAULT_COOK_TIME, furnaceBurnTime, furnaceCookTime, furnaceItemStacksFields inherited from class net.minecraft.src.TileEntity
blockMetadata, blockType, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCookStack(ItemStack stack) booleanApplies mortar on oven.intattemptToAddFuel(ItemStack stack) booleanstatic intcalcRedstoneFromOven(OvenTileEntity tileEntity) protected intOverriden in a sign to provide the text.Returns the name of the inventory.intgetItemBurnTime(ItemStack stack) intvoidgivePlayerCookStack(EntityPlayer player, int iFacing) booleanvoidReads a tile entity from NBT.voidvoidsetCookStack(ItemStack stack) voidsetVisualFuelLevel(int iLevel) voidAllows the entity to update its state.voidwriteToNBT(NBTTagCompound tag) Writes a tile entity to NBT.Methods inherited from class net.minecraft.src.TileEntityFurnace
canExtractItem, canInsertItem, canSmelt, closeChest, decrStackSize, getAccessibleSlotsFromSide, getBurnTimeRemainingScaled, getCookProgressScaled, getInventoryStackLimit, getSizeInventory, getStackInSlot, getStackInSlotOnClosing, isBurning, isInvNameLocalized, isItemFuel, isItemValidForSlot, isUseableByPlayer, openChest, setGuiDisplayName, setInventorySlotContents, smeltItemMethods inherited from class net.minecraft.src.TileEntity
addMapping, createAndLoadEntity, func_85027_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, invalidate, isInvalid, onInventoryChanged, receiveClientEvent, setWorldObj, updateContainingBlockInfo, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.src.IInventory
onInventoryChanged
-
Field Details
-
mortarOnNextUpdate
public boolean mortarOnNextUpdate
-
-
Constructor Details
-
OvenTileEntity
public OvenTileEntity()
-
-
Method Details
-
updateEntity
public void updateEntity()Description copied from class:TileEntityFurnaceAllows 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.- Overrides:
updateEntityin classTileEntityFurnace
-
getInvName
Description copied from class:TileEntityFurnaceReturns the name of the inventory.- Specified by:
getInvNamein interfaceIInventory- Overrides:
getInvNamein classTileEntityFurnace
-
readFromNBT
Description copied from class:TileEntityFurnaceReads a tile entity from NBT.- Overrides:
readFromNBTin classTileEntityFurnace
-
writeToNBT
Description copied from class:TileEntityFurnaceWrites a tile entity to NBT.- Overrides:
writeToNBTin classTileEntityFurnace
-
getItemBurnTime
- Overrides:
getItemBurnTimein classTileEntityFurnace
-
getCookTimeForCurrentItem
protected int getCookTimeForCurrentItem()- Overrides:
getCookTimeForCurrentItemin classTileEntityFurnace
-
getDescriptionPacket
Description copied from class:TileEntityOverriden in a sign to provide the text.- Overrides:
getDescriptionPacketin classTileEntity
-
readNBTFromPacket
- Specified by:
readNBTFromPacketin interfaceTileEntityDataPacketHandler
-
applyMortar
public boolean applyMortar()Applies mortar on oven. -
attemptToLight
public boolean attemptToLight() -
hasValidFuel
public boolean hasValidFuel() -
setCookStack
-
getCookStack
-
givePlayerCookStack
-
addCookStack
-
attemptToAddFuel
-
getVisualFuelLevel
public int getVisualFuelLevel() -
setVisualFuelLevel
public void setVisualFuelLevel(int iLevel) -
calcRedstoneFromOven
-