Package dev.deepcore.challenge.world
Class WorldClassificationService
java.lang.Object
dev.deepcore.challenge.world.WorldClassificationService
Centralizes world classification rules for lobby/limbo detection.
-
Constructor Summary
ConstructorsConstructorDescriptionWorldClassificationService(ChallengeConfigView configView, Supplier<WorldResetManager> worldResetManagerSupplier) Creates a world classification service. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLobbyOrLimboWorld(org.bukkit.World world) booleanisPrepBorderExemptWorld(org.bukkit.World world) Returns whether prep borders should be suppressed in the given world.booleanisTrainingWorld(org.bukkit.World world) Returns whether the world is the configured training world.
-
Constructor Details
-
WorldClassificationService
public WorldClassificationService(ChallengeConfigView configView, Supplier<WorldResetManager> worldResetManagerSupplier) Creates a world classification service.- Parameters:
configView- challenge config value accessorworldResetManagerSupplier- supplier for current world reset manager
-
-
Method Details
-
isLobbyOrLimboWorld
public boolean isLobbyOrLimboWorld(org.bukkit.World world) -
isTrainingWorld
public boolean isTrainingWorld(org.bukkit.World world) Returns whether the world is the configured training world.- Parameters:
world- world to classify- Returns:
- true when this is the configured training world
-
isPrepBorderExemptWorld
public boolean isPrepBorderExemptWorld(org.bukkit.World world) Returns whether prep borders should be suppressed in the given world.- Parameters:
world- world to classify- Returns:
- true when prep borders should not be shown
-