BlockStorage

Storage for a world's blocks.

Constructors

this
this()
Undocumented in source.

Members

Functions

fromBedrock
Block* fromBedrock(ubyte id, ubyte meta)

Gets a block with the id used in Minecraft.

fromJava
Block* fromJava(ubyte id, ubyte meta)

Gets a block with the id used in Minecraft.

opBinaryRight
Block* opBinaryRight(block_t id)
opIndex
Block* opIndex(block_t id)

Gets a block using its sel-id. This method only takes an argument as SEL blocks are identified by a single number instead of an id and optional metadata as in Minecraft and Minecraft: Pocket Edition.

register
void register(Block block)
Undocumented in source. Be warned that the author may not have intended to support it.
registerTile
void registerTile(T tile)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

length
size_t length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta