Class WorldClassificationService

java.lang.Object
dev.deepcore.challenge.world.WorldClassificationService

public final class WorldClassificationService extends Object
Centralizes world classification rules for lobby/limbo detection.
  • Constructor Details

    • WorldClassificationService

      public WorldClassificationService(ChallengeConfigView configView, Supplier<WorldResetManager> worldResetManagerSupplier)
      Creates a world classification service.
      Parameters:
      configView - challenge config value accessor
      worldResetManagerSupplier - 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