cBlockInfo


Index:
Articles
Classes
Hooks

Quick navigation:
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
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
cStatManager
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cTracer
cUDPEndpoint
cUrlClient
cUrlParser
cUUID
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
EffectID
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
SmokeDirection
sqlite3
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


cBlockInfo class

This class is used to query block properties.


Member variables

NameTypeNotes
m_BlockHeight number The height of the block, a value between 0.0 and 1.0. OBSOLETE, use cBlockInfo:GetBlockHeight() instead.
m_CanBeTerraformed bool Is this block suited to be terraformed? OBSOLETE, use cBlockInfo:CanBeTerraformed() instead.
m_FullyOccupiesVoxel bool Does this block fully occupy its voxel - is it a 'full' block? OBSOLETE, use cBlockInfo:FullyOccupiesVoxel() instead.
m_Hardness number The greater the value the longer the player needs to break the block. OBSOLETE, use cBlockInfo:GetHardness() instead.
m_IsRainBlocker (undocumented)
m_IsSkylightDispersant (undocumented)
m_IsSnowable bool Can this block hold snow atop? OBSOLETE, use cBlockInfo:IsSnowable() instead
m_IsSolid bool Is this block solid (player cannot walk through)? OBSOLETE, use cBlockInfo:IsSolid() instead.
m_LightValue number How much light do the blocks emit on their own? OBSOLETE, use cBlockInfo:GetLightValue() instead.
m_OneHitDig bool Is a block destroyed after a single hit? OBSOLETE, use cBlockInfo:IsOneHitDig() instead.
m_PistonBreakable bool Can a piston break this block? OBSOLETE, use cBlockInfo:IsPistonBreakable instead.
m_PlaceSound (undocumented)
m_SpreadLightFalloff number How much light do the blocks consume? OBSOLETE, use cBlockInfo:GetSpreadLightFalloff() instead.
m_Transparent bool Is a block completely transparent? (light doesn't get decreased(?)). OBSOLETE, use cBlockInfo:IsTransparent() instead.
m_UseableBySpectator (undocumented)

Functions

NameParametersReturn valueNotes
CanBeTerraformed
BlockTypenumber
boolean
(STATIC) Returns true if the block is suitable to be changed by a generator
FullyOccupiesVoxel
BlockTypenumber
boolean
(STATIC) Returns whether the specified block fully occupies its voxel.
Get
BlockTypenumber
cBlockInfo
(STATIC) Returns the cBlockInfo structure for the specified block type. OBSOLETE, use static functions instead
GetBlockHeight
BlockTypenumber
number
(STATIC) Returns the block's hitbox height.
GetHardness
BlockTypenumber
number
(STATIC) Returns the block's hardness. The bigger the harder the block.
GetLightValue
BlockTypenumber
number
(STATIC) Returns how much light the specified block emits on its own.
GetPlaceSound
BlockTypenumber
string
(STATIC) (DEPRECATED) Not used by cuberite internally and always returns an empty string.
GetSpreadLightFalloff
BlockTypenumber
number
(STATIC) Returns how much light the specified block type consumes.
IsOneHitDig
BlockTypenumber
boolean
(STATIC) Returns true if the specified block type will be destroyed after a single hit.
IsPistonBreakable
BlockTypenumber
boolean
(STATIC) Returns true if a piston can break the specified block type.
IsRainBlocker
BlockTypenumber
boolean
(STATIC) Returns true if the specified block type blocks rain from passing through.
IsSkylightDispersant
BlockTypenumber
boolean
(STATIC) Returns true if skylight is impeded by passage through a block of the specified type.
IsSnowable
BlockTypenumber
boolean
(STATIC) Returns whether the specified block type can hold snow atop.
IsSolid
BlockTypenumber
boolean
(STATIC) Returns whether the specified block type is solid.
IsTransparent
BlockTypenumber
boolean
(STATIC) Returns whether the specified block is transparent.
IsUseableBySpectator
BlockTypenumber
boolean
(STATIC) Returns whether a spectator can interact with the specified block.
Generated by APIDump on 2019-09-04 21:03:17, Build ID Unknown, Commit approx: 2504538a3a164f27a96f413f5b389f8dad6b2cac