TemporaryWorlds

public final class TemporaryWorlds implements MatchSpace

Worlds that exist only for one match. A match may add worlds while it runs. Teardown deletes every one of them, and each carries a leftover marker in case the server crashes first.

Functions

Link copied to clipboard
public void addWorld(World world)
Link copied to clipboard
public boolean contains(Location location)
Link copied to clipboard
public boolean guardsEntryDuring(MatchPhase phase)
Whether non-participants are refused teleports into this space during the phase.
Link copied to clipboard
public void teardown()
Link copied to clipboard
public Collection<World> worlds()

Inherited functions

Link copied to clipboard
public static MatchSpace region(World world, Predicate<Location> contains)
public static MatchSpace region(World world, BoundingBox box)
Link copied to clipboard
public static TemporaryWorlds temporaryWorlds(Array<World> worlds)