Class Phase<T extends Minigame>

java.lang.Object
de.kentoj.scrow.bukkit.minigame.phase.Phase<T>
All Implemented Interfaces:
IPhase
Direct Known Subclasses:
CompositePhase, WaitForMaximumPlayersPhase, WaitForMinimumPlayersPhase

public abstract class Phase<T extends Minigame> extends Object implements IPhase
  • Field Details

  • Constructor Details

    • Phase

      public Phase()
  • Method Details

    • onStart

      protected abstract void onStart()
    • onCancel

      protected abstract void onCancel()
      Called together with onEnd() but only called when the phase was cancelled due to an error
    • onEnd

      @ForOverride protected void onEnd()
    • onTick

      @ForOverride protected void onTick(int tick)
    • cancel

      public void cancel()
      Specified by:
      cancel in interface IPhase
    • start

      public final void start()
      Specified by:
      start in interface IPhase
    • end

      public final void end()
      Specified by:
      end in interface IPhase
    • advancePhase

      public final void advancePhase()
      end the current phase and advance to the next. same as PhaseFlow.advancePhase().