Package btw.block.tileentity
Class CampfireTileEntity
java.lang.Object
net.minecraft.src.TileEntity
btw.block.tileentity.CampfireTileEntity
- All Implemented Interfaces:
TileEntityDataPacketHandler
-
Field Summary
Fields inherited from class net.minecraft.src.TileEntity
blockMetadata, blockType, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBurnTime(int iBurnTime) voidOverriden in a sign to provide the text.booleanbooleanbooleanvoidvoidReads a tile entity from NBT.voidvoidsetCookStack(ItemStack stack) voidsetSpitStack(ItemStack stack) voidAllows the entity to update its state.intvoidwriteToNBT(NBTTagCompound tag) Writes a tile entity to NBT.Methods inherited from class net.minecraft.src.TileEntity
addMapping, createAndLoadEntity, func_85027_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, invalidate, isInvalid, onInventoryChanged, receiveClientEvent, setWorldObj, updateContainingBlockInfo, validate
-
Constructor Details
-
CampfireTileEntity
public CampfireTileEntity()
-
-
Method Details
-
readFromNBT
Description copied from class:TileEntityReads a tile entity from NBT.- Overrides:
readFromNBTin classTileEntity
-
writeToNBT
Description copied from class:TileEntityWrites a tile entity to NBT.- Overrides:
writeToNBTin classTileEntity
-
updateEntity
public void updateEntity()Description copied from class:TileEntityAllows 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 classTileEntity
-
getDescriptionPacket
Description copied from class:TileEntityOverriden in a sign to provide the text.- Overrides:
getDescriptionPacketin classTileEntity
-
readNBTFromPacket
- Specified by:
readNBTFromPacketin interfaceTileEntityDataPacketHandler
-
setSpitStack
-
getSpitStack
-
setCookStack
-
getCookStack
-
ejectContents
public void ejectContents() -
addBurnTime
public void addBurnTime(int iBurnTime) -
onFirstLit
public void onFirstLit() -
validateFireLevel
public int validateFireLevel() -
getIsCooking
public boolean getIsCooking() -
getIsFoodBurning
public boolean getIsFoodBurning() -
isRainingOnCampfire
public boolean isRainingOnCampfire()
-