cBlockInfo


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


cBlockInfo class

This class is used to query block properties.


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.
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.
IsClickedThrough
BlockTypenumber
boolean
(STATIC) Returns true if the specified block type is ignored by the client on left and right clicks, that is, treated as if it were air.
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 2022-10-28 17:00:47, Build ID Unknown, Commit approx: 21ec3ebe26bff24b5fc6d96f86a441c9c9628247