Zig: Blocks¶
BlockAt¶
| Zig | |
|---|---|
One block cell of a dimension.
BlockAt.at¶
| Zig | |
|---|---|
- Parameters:
- at_dim :
i32 - at_x :
i32 - at_y :
i32 - at_z :
i32
- at_dim :
- Return type:
BlockAt
BlockAt.isAir¶
| Zig | |
|---|---|
PIER_BPROP_IS_AIR: Block::isAir
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.data¶
| Zig | |
|---|---|
PIER_BPROP_DATA: Block::getData (legacy data value)
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.blockItemId¶
| Zig | |
|---|---|
PIER_BPROP_BLOCK_ITEM_ID: Block::getBlockItemId
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.isCraftingBlock¶
| Zig | |
|---|---|
PIER_BPROP_IS_CRAFTING_BLOCK: Block::isCraftingBlock
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.isInteractiveBlock¶
| Zig | |
|---|---|
PIER_BPROP_IS_INTERACTIVE_BLOCK: Block::isInteractiveBlock
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.hasBlockEntity¶
| Zig | |
|---|---|
PIER_BPROP_HAS_BLOCK_ENTITY: BlockSource::getBlockEntity(pos) != null
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.light¶
| Zig | |
|---|---|
PIER_BPROP_LIGHT: Block::getLight
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.lightEmission¶
| Zig | |
|---|---|
PIER_BPROP_LIGHT_EMISSION: Block::getLightEmission
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.destroySpeed¶
| Zig | |
|---|---|
PIER_BPROP_DESTROY_SPEED: Block::getDestroySpeed
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.explosionResistance¶
| Zig | |
|---|---|
PIER_BPROP_EXPLOSION_RESISTANCE: Block::getExplosionResistance
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.friction¶
| Zig | |
|---|---|
PIER_BPROP_FRICTION: Block::getFriction
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.isContainer¶
| Zig | |
|---|---|
PIER_BPROP_IS_CONTAINER: Block::isContainerBlock
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.isDoor¶
| Zig | |
|---|---|
PIER_BPROP_IS_DOOR: unsupported since BDS 1.26.40: BlockType::isDoorBlock is gone
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.isFence¶
| Zig | |
|---|---|
PIER_BPROP_IS_FENCE: Block::isFenceBlock
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.isRail¶
| Zig | |
|---|---|
PIER_BPROP_IS_RAIL: Block::isRailBlock
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.isSlab¶
| Zig | |
|---|---|
PIER_BPROP_IS_SLAB: Block::isSlabBlock
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.isStair¶
| Zig | |
|---|---|
PIER_BPROP_IS_STAIR: unsupported since BDS 1.26.40: BlockType::isStairBlock is gone
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.isWall¶
| Zig | |
|---|---|
PIER_BPROP_IS_WALL: Block::isWallBlock
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.isCrop¶
| Zig | |
|---|---|
PIER_BPROP_IS_CROP: Block::isCropBlock
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.isUnbreakable¶
| Zig | |
|---|---|
PIER_BPROP_IS_UNBREAKABLE: Block::isUnbreakable
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.redstoneSignal¶
| Zig | |
|---|---|
PIER_BPROP_REDSTONE_SIGNAL: Block::getDirectSignal
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.comparatorSignal¶
| Zig | |
|---|---|
PIER_BPROP_COMPARATOR_SIGNAL: Block::getComparatorSignal
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.isSignalSource¶
| Zig | |
|---|---|
PIER_BPROP_IS_SIGNAL_SOURCE: Block::isSignalSource
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.variant¶
| Zig | |
|---|---|
PIER_BPROP_VARIANT: Block::getVariant
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.burnOdds¶
| Zig | |
|---|---|
PIER_BPROP_BURN_ODDS: Block::getBurnOdds
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.flameOdds¶
| Zig | |
|---|---|
PIER_BPROP_FLAME_ODDS: Block::getFlameOdds
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.bounciness¶
| Zig | |
|---|---|
PIER_BPROP_BOUNCINESS: Block::getBounciness
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.isSolid¶
| Zig | |
|---|---|
PIER_BPROP_IS_SOLID: Block::isSolid
- Return type:
core.Error!bool - Slots:
block_get_num
BlockAt.requiresTool¶
| Zig | |
|---|---|
PIER_BPROP_REQUIRES_TOOL: Block::requiresCorrectToolForDrops
- Return type:
core.Error!f64 - Slots:
block_get_num
BlockAt.typeName¶
| Zig | |
|---|---|
PIER_BSTR_TYPE_NAME: Block::getTypeName
- Parameters:
- allocator :
std.mem.Allocator
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_get_str
BlockAt.snbt¶
| Zig | |
|---|---|
PIER_BSTR_SNBT: Block::mSerializationId β SNBT {name,states,version}
- Parameters:
- allocator :
std.mem.Allocator
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_get_str
BlockAt.descriptionId¶
| Zig | |
|---|---|
PIER_BSTR_DESCRIPTION_ID: Block::getDescriptionId
- Parameters:
- allocator :
std.mem.Allocator
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_get_str
BlockAt.debugString¶
| Zig | |
|---|---|
PIER_BSTR_DEBUG_STRING: Block::toDebugString
- Parameters:
- allocator :
std.mem.Allocator
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_get_str
BlockAt.tags¶
| Zig | |
|---|---|
PIER_BSTR_TAGS: Block::mTags β SNBT string list ["a","b"]
- Parameters:
- allocator :
std.mem.Allocator
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_get_str
BlockAt.state¶
| Zig | |
|---|---|
PIER_BSTR_STATE: SNBT {state_name:value,β¦} all block states
- Parameters:
- allocator :
std.mem.Allocator
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_get_str
BlockAt.collisionShape¶
| Zig | |
|---|---|
PIER_BSTR_COLLISION_SHAPE: SNBT [{min:[x,y,z],max:[x,y,z]},β¦]
- Parameters:
- allocator :
std.mem.Allocator
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_get_str
BlockAt.outlineShape¶
| Zig | |
|---|---|
PIER_BSTR_OUTLINE_SHAPE: SNBT [{min,max}] render outline
- Parameters:
- allocator :
std.mem.Allocator
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_get_str
BlockAt.displayName¶
| Zig | |
|---|---|
PIER_BSTR_DISPLAY_NAME: Block::getDisplayName
- Parameters:
- allocator :
std.mem.Allocator
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_get_str
BlockAt.hasTag¶
| Zig | |
|---|---|
PIER_BACT_HAS_TAG: sarg=tag β out "0"/"1" Block::hasTag
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- allocator :
std.mem.Allocator - s_arg :
[]const u8
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_action
BlockAt.getState¶
| Zig | |
|---|---|
PIER_BACT_GET_STATE: sarg=state name β out value string Block::getState
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- allocator :
std.mem.Allocator - s_arg :
[]const u8
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_action
BlockAt.popResource¶
| Zig | |
|---|---|
PIER_BACT_POP_RESOURCE: sarg=item SNBT β pop resource at pos Block::popResource
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- allocator :
std.mem.Allocator - s_arg :
[]const u8
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_action
BlockAt.asItem¶
| Zig | |
|---|---|
PIER_BACT_AS_ITEM: β out item SNBT Block::asItemInstance
The output, when the verb has one, is returned; abi.h names each argument.
- Parameters:
- allocator :
std.mem.Allocator - s_arg :
[]const u8
- allocator :
- Return type:
core.Error![]u8 - Slots:
block_action