ArenaInstance

public class ArenaInstance extends MatchInstance

Constructors

Link copied to clipboard
public void ArenaInstance(CustomArenasConfigFields customArenasConfigFields, Location corner1, Location corner2, Location startLocation, Location exitLocation)
public void ArenaInstance(CustomArenasConfigFields customArenasConfigFields, ArenaContainer container)

Types

Link copied to clipboard
public class ArenaInstanceEvents implements Listener
Link copied to clipboard
public class ArenaInstanceLoader implements Listener
Drains pendingArenas as worlds come online.

Properties

Link copied to clipboard
public final static HashMap<String, ArenaInstance> arenaInstances
Link copied to clipboard
public ArenaInstance.ArenaState arenaState
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public int currentWave
Link copied to clipboard
public final HashSet<CustomBossEntity> customBosses
Link copied to clipboard
public final HashMap<Player, Double> roundDamage

Inherited properties

Link copied to clipboard
protected boolean cancelled
Link copied to clipboard
protected final HashMap<Block, InstanceDeathLocation> deathBanners
Link copied to clipboard
protected boolean destroyingMatch
Link copied to clipboard
protected Location exitLocation
Link copied to clipboard
protected final static HashSet<MatchInstance> instances
Link copied to clipboard
protected Location lobbyLocation
Link copied to clipboard
protected int maxPlayers
Link copied to clipboard
protected int minPlayers
Link copied to clipboard
protected HashSet<Player> participants
Link copied to clipboard
protected String permission
Link copied to clipboard
protected HashMap<Player, Integer> playerLives
Link copied to clipboard
protected HashSet<Player> players
Link copied to clipboard
protected final Map<Player, Location> previousPlayerLocations
Link copied to clipboard
public final UUID runtimeId
Distinguishes successive matches that reuse the same world and physical region.
Link copied to clipboard
protected HashSet<Player> spectators
Link copied to clipboard
protected final HashSet<UUID> startingParticipantIds
Link copied to clipboard
protected Location startLocation
Link copied to clipboard
Link copied to clipboard
protected World world

Functions

Link copied to clipboard
protected void abortAdmission()
Releases an admission reservation if registration could not finish.
Link copied to clipboard
protected void destroyMatch()
Link copied to clipboard
protected void endMatch()
Link copied to clipboard
public static HashMap<String, ArenaInstance> getArenaInstances()
Link copied to clipboard
public ArenaInstance.ArenaState getArenaState()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public int getCurrentWave()
Link copied to clipboard
Link copied to clipboard
public HashMap<Player, Double> getRoundDamage()
Link copied to clipboard
public static void initializeArena(CustomArenasConfigFields customArenasConfigFields)
Link copied to clipboard
public boolean isAcceptingNewPlayers()
The single admission predicate.
Link copied to clipboard
protected boolean isAcceptingSpectator(Player player, boolean wasPlayer)
Link copied to clipboard
protected boolean isInRegion(Location location)
Link copied to clipboard
public void removeBoss(CustomBossEntity customBossEntity)
public void removeBoss(Entity nonEliteEntity)
Link copied to clipboard
public void removeSpectator(Player player)
Link copied to clipboard
protected boolean reserveAdmission()
Acquired after all cancellable admission preflights, before player registration.
Link copied to clipboard
public static void shutdown()
Link copied to clipboard
protected void startMatch()

Inherited functions

Link copied to clipboard
public boolean addNewPlayer(Player player)
Link copied to clipboard
public void addSpectator(Player player, boolean wasPlayer)
Link copied to clipboard
protected void announce(String message)
Link copied to clipboard
public final boolean authorizesCombatTarget(Player player, Location targetLocation)
True only when both the active participant and a prospective combat target remain inside this ongoing instance.
Link copied to clipboard
protected void cancelScheduledTasks()
Link copied to clipboard
public void countdownMatch()
Link copied to clipboard
protected void defeat()
Link copied to clipboard
public static MatchInstance getAnyPlayerInstance(Player player)
Link copied to clipboard
public HashMap<Block, InstanceDeathLocation> getDeathBanners()
Link copied to clipboard
Link copied to clipboard
public HashSet<Player> getParticipants()
Link copied to clipboard
public String getPermission()
Link copied to clipboard
public static MatchInstance getPlayerInstance(Player player)
Link copied to clipboard
public HashSet<Player> getPlayers()
Link copied to clipboard
public Map<Player, Location> getPreviousPlayerLocations()
Link copied to clipboard
public Integer getRemainingLives(Player player)
Returns this participant's remaining dungeon/arena lives, or null when no counter is active.
Link copied to clipboard
public UUID getRuntimeId()
Distinguishes successive matches that reuse the same world and physical region.
Link copied to clipboard
public static MatchInstance getSpectatorInstance(Player player)
Link copied to clipboard
public HashSet<UUID> getStartingParticipantIds()
Link copied to clipboard
Link copied to clipboard
protected boolean hasMatchDestroyEventFired()
Link copied to clipboard
public boolean isCancelled()
Link copied to clipboard
public boolean isDefunct()
True when this match object is a corpse: cancelled at construction, or already evicted from instances.
Link copied to clipboard
public boolean isDestroyingMatch()
Link copied to clipboard
public boolean isSpectator(Player player)
True for a player currently waiting in this match's spectator/downed state.
Link copied to clipboard
public final boolean isWaitingPlayer(Player player)
Admitted players whose entry task has reached the lobby, including the start countdown.
Link copied to clipboard
protected Location participantExitLocation(Player player)
Participant exits are independent of the boundary used to eject intruders.
Link copied to clipboard
public void playerDeath(Player player)
Link copied to clipboard
protected Location previousLocationOrExit(Player player)
Link copied to clipboard
public void removeAnyKind(Player player)
Link copied to clipboard
public void removePlayer(Player player)
Link copied to clipboard
public void revivePlayer(Player player, InstanceDeathLocation deathLocation)
Link copied to clipboard
protected void victory()