Index:
Articles
Classes
Hooks
Quick navigation:
cArrowEntity cBeaconEntity cBlockArea cBlockEntity cBlockEntityWithItems cBlockInfo cBoundingBox cBrewingstandEntity cChatColor cChestEntity cChunkDesc cClientHandle cCommandBlockEntity cCompositeChat cCraftingGrid cCraftingRecipe cCryptoHash cCuboid cDispenserEntity cDropperEntity cDropSpenserEntity cEnchantments cEntity cEntityEffect cExpBottleEntity cFile cFireChargeEntity cFireworkEntity cFloater cFlowerPotEntity cFurnaceEntity cGhastFireballEntity cHangingEntity cHopperEntity cIniFile cInventory cItem cItemFrame cItemGrid cItems cJson cJukeboxEntity cLineBlockTracer cLuaWindow cMap cMapManager cMobHeadEntity cMobSpawnerEntity cMojangAPI cMonster cNetwork cNoteEntity cObjective cPainting cPawn cPickup cPlayer cPlugin cPluginLua cPluginManager cProjectileEntity cRankManager cRoot cScoreboard cServer cServerHandle cSignEntity cSplashPotionEntity cStatManager cStringCompression cTCPLink cTeam cThrownEggEntity cThrownEnderPearlEntity cThrownSnowballEntity cTNTEntity cTracer cUDPEndpoint cUrlClient cUrlParser cWebAdmin cWindow cWitherSkullEntity cWorld HTTPFormData HTTPRequest HTTPTemplateRequest ItemCategory lxp sqlite3 TakeDamageInfo tolua Vector3d Vector3f Vector3i Globals | Contents
cFurnaceEntity class
This class represents a furnace block entity in the world.
See also cRoot's GetFurnaceRecipe() and GetFurnaceFuelBurnTime() functions
Inheritance
This class inherits from the following parent classes:
Constants
Name | Value | Notes |
ContentsHeight |
1 |
Height (Y) of the cItemGrid representing the contents |
ContentsWidth |
3 |
Width (X) of the cItemGrid representing the contents |
When using the GetSlot() or SetSlot() function, use these constants for slot index:
Name | Value | Notes |
fsFuel |
1 |
Index of the fuel slot |
fsInput |
0 |
Index of the input slot |
fsOutput |
2 |
Index of the output slot |
Functions
Name | Parameters | Return value | Notes |
GetCookTimeLeft |
|
number |
Returns the time until the current item finishes cooking, in ticks |
GetFuelBurnTimeLeft |
|
number |
Returns the time until the current fuel is depleted, in ticks |
GetFuelSlot |
|
cItem |
Returns the item in the fuel slot |
GetInputSlot |
|
cItem |
Returns the item in the input slot |
GetOutputSlot |
|
cItem |
Returns the item in the output slot |
GetTimeCooked |
|
number |
Returns the time that the current item has been cooking, in ticks |
HasFuelTimeLeft |
|
bool |
Returns true if there's time before the current fuel is depleted |
SetFuelSlot |
cItem |
|
Sets the item in the fuel slot |
SetInputSlot |
cItem |
|
Sets the item in the input slot |
SetOutputSlot |
cItem |
|
Sets the item in the output slot |
Functions inherited from cBlockEntityWithItems
Name | Parameters | Return value | Notes |
GetContents |
|
cItemGrid |
Returns the cItemGrid object representing the items stored within this block entity |
GetSlot |
SlotNum |
cItem |
Returns the cItem for the specified slot number. Returns nil for invalid slot numbers |
GetSlot |
X, Y |
cItem |
Returns the cItem for the specified slot coords. Returns nil for invalid slot coords |
SetSlot |
SlotNum, cItem |
|
Sets the cItem for the specified slot number. Ignored if invalid slot number |
SetSlot |
X, Y, cItem |
|
Sets the cItem for the specified slot coords. Ignored if invalid slot coords |
Functions inherited from cBlockEntity
Name | Parameters | Return value | Notes |
GetBlockType |
|
BLOCKTYPE |
Returns the blocktype which is represented by this blockentity. This is the primary means of type-identification |
GetChunkX |
|
number |
Returns the chunk X-coord of the block entity's chunk |
GetChunkZ |
|
number |
Returns the chunk Z-coord of the block entity's chunk |
GetPos |
|
Vector3i |
Returns the name of the parent class, or empty string if no parent class. |
GetPosX |
|
number |
Returns the block X-coord of the block entity's block |
GetPosY |
|
number |
Returns the block Y-coord of the block entity's block |
GetPosZ |
|
number |
Returns the block Z-coord of the block entity's block |
GetRelX |
|
number |
Returns the relative X coord of the block entity's block within the chunk |
GetRelZ |
|
number |
Returns the relative Z coord of the block entity's block within the chunk |
GetWorld |
|
cWorld |
Returns the world to which the block entity belongs |
|