Class Phase<T extends IMinigame>
java.lang.Object
de.kentoj.scrow.bukkit.minigame.phase.Phase<T>
- All Implemented Interfaces:
IPhase
- Direct Known Subclasses:
CompositePhase,WaitForMaximumPlayersPhase,WaitForMinimumPlayersPhase
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidend the current phase and advance to the next.voidcancel()final voidend()protected abstract voidonCancel()Called together withonEnd()but only called when the phase was cancelled due to an errorprotected voidonEnd()protected abstract voidonStart()Shall callPhaseFlow.advancePhase()protected voidonTick(int tick) final voidstart()
-
Field Details
-
ctx
-
-
Constructor Details
-
Phase
public Phase()
-
-
Method Details
-
onStart
protected abstract void onStart()Shall callPhaseFlow.advancePhase() -
onCancel
protected abstract void onCancel()Called together withonEnd()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() -
start
public final void start() -
end
public final void end() -
advancePhase
public final void advancePhase()end the current phase and advance to the next. same asPhaseFlow.advancePhase().
-