DynamicDungeonInstance

Constructors

Link copied to clipboard
public void DynamicDungeonInstance(ContentPackagesConfigFields contentPackagesConfigFields, Location lobbyLocation, Location startLocation, World world, Player player, String difficultyName, int selectedLevel)
public void DynamicDungeonInstance(ContentPackagesConfigFields contentPackagesConfigFields, Location lobbyLocation, Location startLocation, World world, Collection<Player> initialPlayers, String difficultyName, int selectedLevel)

Properties

Link copied to clipboard
public final int selectedLevel

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
public String difficultyID
Link copied to clipboard
public final static Set<DungeonInstance> dungeonInstances
Link copied to clipboard
protected Location exitLocation
Link copied to clipboard
public String instancedWorldName
Link copied to clipboard
protected final static HashSet<MatchInstance> instances
Link copied to clipboard
public int levelSync
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
public World world

Functions

Link copied to clipboard
protected boolean addEntryRoster(Player player, List<UUID> entryMemberIds, BooleanSupplier admissionAuthorization)
Link copied to clipboard
public boolean addNewPlayer(Player player)
Link copied to clipboard
public int getSelectedLevel()
Link copied to clipboard
protected static DynamicDungeonInstance initializeDynamicWorld(ContentPackagesConfigFields dynamicDungeonConfigFields, String instancedWorldName, Player player, String difficultyName, int selectedLevel)
protected static DynamicDungeonInstance initializeDynamicWorld(ContentPackagesConfigFields dynamicDungeonConfigFields, String instancedWorldName, Player player, List<UUID> entryMemberIds, String difficultyName, int selectedLevel)
protected static DynamicDungeonInstance initializeDynamicWorld(ContentPackagesConfigFields dynamicDungeonConfigFields, String instancedWorldName, Player player, List<UUID> entryMemberIds, String difficultyName, int selectedLevel, PartyDungeonReadyCheckManager.LaunchReservation reservation)
Link copied to clipboard
protected String readyCheckDescription()
Link copied to clipboard
public static void setupDynamicDungeon(Player player, String dungeonConfigFieldsString, String difficultyName, int selectedLevel)

Inherited functions

Link copied to clipboard
protected void abortAdmission()
Releases an admission reservation if registration could not finish.
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 boolean checkCompletionStatus()
Link copied to clipboard
protected static void cleanupLoadedWorld(World world)
Link copied to clipboard
protected static void cleanupUnloadedWorldFolder(String instancedWorldName)
Link copied to clipboard
protected static File cloneWorldFiles(ContentPackagesConfigFields instancedDungeonsConfigFields, String instancedWordName)
Link copied to clipboard
public void countdownMatch()
Link copied to clipboard
Creates a one-life encounter mob owned and cleaned up by this dungeon.
Link copied to clipboard
protected void defeat()
Link copied to clipboard
protected final void deregisterFailedConstruction()
De-registers a dungeon instance whose constructor body threw after super() had already registered it and started its scheduler tasks.
Link copied to clipboard
public void destroyMatch()
Link copied to clipboard
public void endMatch()
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 String getDifficultyID()
Link copied to clipboard
public static Set<DungeonInstance> getDungeonInstances()
Link copied to clipboard
public String getInstancedWorldName()
Link copied to clipboard
public int getLevelSync()
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 String getResolvedDifficultyID()
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
public World getWorld()
Link copied to clipboard
protected boolean hasMatchDestroyEventFired()
Link copied to clipboard
protected static DungeonInstance initializeInstancedWorld(ContentPackagesConfigFields instancedDungeonsConfigFields, String instancedWordName, Player player, String difficultyName)
protected static DungeonInstance initializeInstancedWorld(ContentPackagesConfigFields instancedDungeonsConfigFields, String instancedWordName, Player player, List<UUID> entryMemberIds, String difficultyName)
protected static DungeonInstance initializeInstancedWorld(ContentPackagesConfigFields instancedDungeonsConfigFields, String instancedWordName, Player player, List<UUID> entryMemberIds, String difficultyName, PartyDungeonReadyCheckManager.LaunchReservation reservation)
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
public boolean isCancelled()
Link copied to clipboard
public boolean isDefunct()
A dungeon instance is also dead once its world removal is scheduled or its world reference is gone; both can precede the registry evictions the base check keys on, and the browser holds these objects for the whole 30–90 second deletion window.
Link copied to clipboard
public boolean isDestroyingMatch()
Link copied to clipboard
protected boolean isInRegion(Location location)
Link copied to clipboard
protected boolean isInstanceRemovalScheduled()
Link copied to clipboard
protected boolean isRelativeLevelSync()
Checks if the level sync is using a relative value (starts with + or -)
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 static boolean launchEvent(ContentPackagesConfigFields instancedDungeonsConfigFields, String instancedWordName, Player player)
Link copied to clipboard
public boolean matchesDifficulty(List<String> filter, String source)
Link copied to clipboard
protected int parseLevelSync(String rawValue, int contentLevel)
Parses the levelSync value from config.
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 static List<UUID> prepareDungeonEntryRoster(Player initiator, ContentPackagesConfigFields configFields)
Link copied to clipboard
protected Location previousLocationOrExit(Player player)
Link copied to clipboard
protected static String readyCheckDescription(ContentPackagesConfigFields configFields, String difficultyName)
Link copied to clipboard
protected void recalculateLevelSyncForDynamicLevel(int dynamicLevel)
Recalculates the level sync based on a dynamic level (used by DynamicDungeonInstance).
Link copied to clipboard
public void removeAnyKind(Player player)
Link copied to clipboard
public void removeInstance()
Link copied to clipboard
public void removePlayer(Player player)
Link copied to clipboard
public void removeSpectator(Player player)
Link copied to clipboard
public boolean requestPartyEntry(Player player)
Player-facing entry boundary.
Link copied to clipboard
protected boolean reserveAdmission()
Acquired after all cancellable admission preflights, before player registration.
Link copied to clipboard
protected static List<Player> resolveDungeonEntryRoster(Player initiator, Collection<UUID> memberIds, ContentPackagesConfigFields configFields, DungeonInstance allowedInstance)
Link copied to clipboard
public void revivePlayer(Player player, InstanceDeathLocation deathLocation)
Link copied to clipboard
protected void scheduleDelayedDestroy(long delayTicks)
Schedules a cancellable delayed teardown, reusing the destroyMatchTask slot so it is cancelled by cancelDestroyMatchTask()/cleanupInstanceReferences() like every other instanced-dungeon task.
Link copied to clipboard
public static void setupInstancedDungeon(Player player, String instancedDungeonConfigFieldsString, String difficultyName)
Link copied to clipboard
public static void shutdown()
Link copied to clipboard
protected void startMatch()
Link copied to clipboard
protected void victory()