World.dimension

Gets the world's dimension as a group of bytes.

class World
final pure nothrow @property @safe @nogc
dimension
()

Examples

if(world.dimension == Dimension.nether) {
   log("world is nether!");
}

Meta