Class LinearPhaseFlow

java.lang.Object
de.kentoj.scrow.bukkit.minigame.LinearPhaseFlow
All Implemented Interfaces:
PhaseFlow

public class LinearPhaseFlow extends Object implements PhaseFlow
  • Constructor Details

    • LinearPhaseFlow

      public LinearPhaseFlow()
  • Method Details

    • add

      public void add(Phase phase)
    • advancePhase

      public void advancePhase()
      Description copied from interface: PhaseFlow
      end the current phase, go to the next phase and start it
      Specified by:
      advancePhase in interface PhaseFlow
    • rewindPhase

      public void rewindPhase()
      Description copied from interface: PhaseFlow
      end the current phase, go to the previous phase and start it
      Specified by:
      rewindPhase in interface PhaseFlow
    • handlePhaseError

      public void handlePhaseError()
      Specified by:
      handlePhaseError in interface PhaseFlow
    • start

      public CompletableFuture<Void> start()
      Description copied from interface: PhaseFlow
      CompletableFuture is completed when the game finishes
      Specified by:
      start in interface PhaseFlow