BlockStorage.fromJava

Gets a block with the id used in Minecraft.

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

Examples

auto block = blocks.fromMinecraft(217);
assert(block.name == "structure void");
assert(blocks.fromMinecraft(248) is null);

Meta