Klasse Services

java.lang.Object
de.delinkedde.mobarenareborn.Services

public final class Services extends Object
Immutable container that owns and exposes the plugin's subsystems.

The plugin uses manual constructor-based dependency injection instead of a framework. create(MobArenaPlugin) builds the subsystems in dependency order and returns a fully initialised container.

Siehe auch:
  • Methodendetails

    • create

      @NotNull public static @NotNull Services create(@NotNull @NotNull MobArenaPlugin plugin)
      Builds the service container in dependency order.
      Parameter:
      plugin - the owning plugin instance
      Gibt zurück:
      a fully initialised service container
    • shutdown

      public void shutdown()
      Ends every active session (restoring players and flushing progression) and closes the database.
    • plugin

      @NotNull public @NotNull MobArenaPlugin plugin()
      Gibt zurück:
      the owning plugin instance
    • configManager

      @NotNull public @NotNull ConfigManager configManager()
      Gibt zurück:
      the configuration manager
    • messages

      @NotNull public @NotNull Messages messages()
      Gibt zurück:
      the message renderer
    • arenaManager

      @NotNull public @NotNull ArenaManager arenaManager()
      Gibt zurück:
      the arena registry
    • mobRegistry

      @NotNull public @NotNull MobRegistry mobRegistry()
      Gibt zurück:
      the mob registry
    • mobScaler

      @NotNull public @NotNull MobScaler mobScaler()
      Gibt zurück:
      the mob scaler
    • bossRegistry

      @NotNull public @NotNull BossRegistry bossRegistry()
      Gibt zurück:
      the boss registry
    • waveSetRegistry

      @NotNull public @NotNull WaveSetRegistry waveSetRegistry()
      Gibt zurück:
      the wave-set registry
    • classRegistry

      @NotNull public @NotNull ClassRegistry classRegistry()
      Gibt zurück:
      the class registry
    • progressionService

      @NotNull public @NotNull ProgressionService progressionService()
      Gibt zurück:
      the progression service
    • threatService

      @NotNull public @NotNull ThreatService threatService()
      Gibt zurück:
      the threat service
    • abilityService

      @NotNull public @NotNull AbilityService abilityService()
      Gibt zurück:
      the ability service
    • revivalService

      @NotNull public @NotNull RevivalService revivalService()
      Gibt zurück:
      the healer revive service
    • rewardCache

      @NotNull public @NotNull RewardCache rewardCache()
      Gibt zurück:
      the reward cache holding undelivered reward items
    • softRestore

      @NotNull public @NotNull SoftRestore softRestore()
      Gibt zurück:
      the soft-restore service
    • itemTemplates

      @NotNull public @NotNull ItemTemplates itemTemplates()
      Gibt zurück:
      the item template store
    • petService

      @NotNull public @NotNull PetService petService()
      Gibt zurück:
      the pet service
    • infoSigns

      @NotNull public @NotNull InfoSigns infoSigns()
      Gibt zurück:
      the live info-sign service
    • api

      @NotNull public @NotNull MobArenaApi api()
      Gibt zurück:
      the public API facade for other plugins
    • statsService

      @NotNull public @NotNull StatsService statsService()
      Gibt zurück:
      the statistics service
    • spectateManager

      @NotNull public @NotNull SpectateManager spectateManager()
      Gibt zurück:
      the spectate manager
    • stashStore

      @NotNull public @NotNull StashStore stashStore()
      Gibt zurück:
      the persistent stash store
    • sessionManager

      @NotNull public @NotNull SessionManager sessionManager()
      Gibt zurück:
      the arena session manager
    • commandManager

      @NotNull public @NotNull CommandManager commandManager()
      Gibt zurück:
      the command manager