cBlockInfo


Index:
Articles
Classes
Hooks

Quick navigation:
cArrowEntity
cBeaconEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoat
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
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
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


cBlockInfo class

This class is used to query and register block properties.


Member variables

NameTypeNotes
m_BlockHeight number The height of the block, a value between 0.0 and 1.0
m_CanBeTerraformed bool Is this block suited to be terraformed?
m_FullyOccupiesVoxel bool Does this block fully occupy its voxel - is it a 'full' block?
m_Hardness number The greater the value the longer the player needs to break the block.
m_IsSnowable bool Can this block hold snow atop?
m_IsSolid bool Is this block solid (player cannot walk through)?
m_LightValue number How much light do the blocks emit on their own?
m_OneHitDig bool Is a block destroyed after a single hit?
m_PistonBreakable bool Can a piston break this block?
m_PlaceSound string The name of the sound that is placed when a block is placed.
m_SpreadLightFalloff number How much light do the blocks consume?
m_Transparent bool Is a block completely transparent? (light doesn't get decreased(?))
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.
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) Returns the name of the sound that is played when placing the block of this type.
GetSpreadLightFalloff
BlockTypenumber
number
(STATIC) Returns how much light the specified block type consumes.
IsOneHitDig
BlockTypenumber
boolean
(STATIC) Returns whether the specified block type will be destroyed after a single hit.
IsPistonBreakable
BlockTypenumber
boolean
(STATIC) Returns whether a piston can break the specified block 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 on 2017-06-26 01:00:07, Build ID Unknown, Commit approx: bd025e2bdbaf86425b1d692ffc4aa87c3c086cc7