API reference / @jsprismarine/prismarine / network/NetworkWorldReplicator / WorldReplicators
Class: WorldReplicators
Defined in: packages/prismarine/src/network/NetworkWorldReplicator.ts:1683
The replicator for each world, built on first use.
Network-side membership, deliberately: a world does not keep a list of the clients watching it, it keeps the players in it. Which of those has a connection, and what that connection has been told, is the network layer's own bookkeeping.
Constructors
Constructor
new WorldReplicators(
server):WorldReplicators
Defined in: packages/prismarine/src/network/NetworkWorldReplicator.ts:1686
Parameters
server
Returns
WorldReplicators
Methods
for()
for(
world):NetworkWorldReplicator
Defined in: packages/prismarine/src/network/NetworkWorldReplicator.ts:1693
The replicator for one world.
Parameters
world
The world.
Returns
Its replicator, created on first request.