World.addChild

Adds a child to the world. A child world is not managed (and ticked) by the server but by its parent. This means that this method should be used instead of server.addWorld.

class World
final
T
addChild
(
T : World = World
E...
)
()
if (
__traits(compiles, new T(args))
)

Return Value

Type: T

a new instance of the given world, constructed with the given parameters

Examples

auto overworld = server.addWorld!Overworld();
auto nether = overworld.addChild!Nether();

Meta