World.opBinaryRight

Gets a pointer to the chunk at the given position.

  1. Chunk* opBinaryRight(ChunkPosition position)
    class World
    final @safe
    opBinaryRight
    (
    string op : "in"
    )
  2. Block* opBinaryRight(BlockPosition position)

Examples

if(ChunkPosition(100, 100) in world) {
   log("world doesn't have the chunk at 100, 100");
}

Meta