cBrewingstandEntity


Index:
Articles
Classes
Hooks

Quick navigation:
BannerPattern
BossBarColor
BossBarDivisionType
cArrowEntity
cBeaconEntity
cBedEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoat
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cColor
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEnderCrystal
cEntity
cEntityEffect
cExpBottleEntity
cExpOrb
cFallingBlock
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLeashKnot
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
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cUDPEndpoint
cUrlClient
cUrlParser
CustomStatistic
cUUID
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
EffectID
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
SmokeDirection
sqlite3
StatisticsManager
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


cBrewingstandEntity class

This class represents a brewingstand entity in the world.

See also the cRoot:GetBrewingRecipe() function.


Inheritance

This class inherits from the following parent classes:


Constants

NameValueNotes
ContentsHeight 1 Height (Y) of the cItemGrid representing the contents
ContentsWidth 5 Width (X) of the cItemGrid representing the contents

When using the GetSlot() or SetSlot() function, use these constants for slot index:

NameValueNotes
bsFuel 4 Index of the top left fuel slot
bsIngredient 3 Index of the ingredient slot
bsLeftBottle 0 Index of the left bottle slot
bsMiddleBottle 1 Index of the middle bottle slot
bsRightBottle 2 Index of the right bottle slot



Functions

NameParametersReturn valueNotes
GetBrewingTimeLeft
number
Returns the time until the current items finishes brewing, in ticks
GetFuelSlot
cItem
Returns the item in the top left fuel slot
GetIndgredientSlot
cItem
Returns the item in the ingredient slot
GetLeftBottleSlot
cItem
Returns the item in the left bottle slot
GetMiddleBottleSlot
cItem
Returns the item in the middle bottle slot
GetRemainingFuel
number
Returns the remaining fuel that is left. It's the amount of brewing operations that can be done (20 for one blaze powder).
GetResultItem
SlotNumbernumber
cItem
Returns the expected result item for the given slot number.
GetRightBottleSlot
cItem
Returns the item in the right bottle slot
GetTimeBrewed
number
Returns the time that the current items has been brewing, in ticks
SetFuelSlot
FuelSlotcItem
Sets the item in the top left fuel slot
SetIngredientSlot
IngredientcItem
Sets the item in the ingredient bottle slot
SetLeftBottleSlot
LeftSlotcItem
Sets the item in the left bottle slot
SetMiddleBottleSlot
MiddleSlotcItem
Sets the item in the middle bottle slot
SetRightBottleSlot
RightSlotcItem
Sets the item in the right bottle slot

Functions inherited from cBlockEntityWithItems

NameParametersReturn valueNotes
GetContents
cItemGrid
Returns the cItemGrid object representing the items stored within this block entity
GetSlot
Xnumber
Ynumber
cItem
Returns the cItem for the specified slot coords. Returns nil for invalid slot coords
GetSlot
SlotNumnumber
cItem
Returns the cItem for the specified slot number. Returns nil for invalid slot numbers
SetSlot
SlotNumnumber
cItemcItem
Sets the cItem for the specified slot number. Ignored if invalid slot number
SetSlot
Xnumber
Ynumber
cItemcItem
Sets the cItem for the specified slot coords. Ignored if invalid slot coords

Functions inherited from cBlockEntity

NameParametersReturn valueNotes
GetBlockType
BLOCKTYPEnumber
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
GetRelPos
Vector3i
Returns the relative coords of the block entity's block within its chunk
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
Generated by APIDump on 2024-12-05 00:47:58, Build ID 88, Commit 4b2b02a8ba1cf259ead477cc256c4ac2a994809c