Class ParachuteTask
java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.tasks.player.ParachuteTask
- All Implemented Interfaces:
Runnable
The
ParachuteTask adds the entire functionality of the Parachute.
It continously sets the velocity of the Player to make them fall slowly.
Perhaps it can be changed to use the slow falling effect at some point.- Author:
- TheBusyBiscuit
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcancel()This method cancels thisAbstractPlayerTask.protected voidprotected booleanisValid()This method checks if thisAbstractPlayerTaskshould be continued or cancelled.final voidrun()voidschedule(long delay) voidscheduleRepeating(long delay, long interval)
-
Field Details
-
p
-
-
Constructor Details
-
ParachuteTask
-
-
Method Details
-
executeTask
protected void executeTask() -
schedule
public void schedule(long delay) -
scheduleRepeating
public void scheduleRepeating(long delay, long interval) -
run
public final void run() -
cancel
public final void cancel()This method cancels thisAbstractPlayerTask. -
isValid
protected boolean isValid()This method checks if thisAbstractPlayerTaskshould be continued or cancelled. It will also cancel thisAbstractPlayerTaskif it became invalid.- Returns:
- Whether this
AbstractPlayerTaskis still valid
-