Interface BattleStartStrategy

All Known Implementing Classes:
DynamaxBattleStartStrategy, TeraBattleStartStrategy

public interface BattleStartStrategy
Defines how a raid type creates its battle controller when the raid encounter begins.

This is separated from normal in-battle raid strategies because battle topology is not a boss lifecycle rule. Max Raids can start as a single shared battle, while Tera Raids may start multiple linked battles. That creation flow needs access to den, player, ally, and raid instance data that should not be pushed into every battle-time strategy.

Implementations should own only battle construction and initial participant wiring. They should choose or create the correct raid boss participant, attach the raid type context, and return the battle controller that represents the started encounter. Turn-by-turn behavior, shield behavior, revives, boss actions, and progress rules should remain in RaidStrategy implementations.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<BattleStartStrategy>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    start(DenEntity den, RaidData raid)
    Starts the raid battle and returns the controller representing that battle flow.
    Gets the registered strategy type used to serialize and deserialize this strategy from datapack data.
  • Field Details

  • Method Details

    • type

      Gets the registered strategy type used to serialize and deserialize this strategy from datapack data.
      Returns:
      The battle start strategy type.
    • start

      BattleController start(DenEntity den, RaidData raid)
      Starts the raid battle and returns the controller representing that battle flow.

      The exact meaning of the returned controller is implementation-specific for raid types that start more than one battle, but it should be the controller callers use to observe the started encounter.

      Parameters:
      den - The den entity that owns the raid.
      raid - The raid instance being started.
      Returns:
      The battle controller created for the raid encounter.