BlockStorage.fromBedrock

Gets a block with the id used in Minecraft.

class BlockStorage
@safe
fromBedrock
(
ubyte id
,
ubyte meta = 0
)

Examples

auto block = blocks.fromBedrock(33, 2);
assert(block && block.name == "piston facing north");
assert(blocks.fromBedrock(255) is null); // structure block

Meta