java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.tasks.player.ParachuteTask
All Implemented Interfaces:
Runnable

public class ParachuteTask extends Object
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 Details

    • p

      protected final Player p
  • Constructor Details

    • ParachuteTask

      public ParachuteTask(@Nonnull Player p)
  • 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()
      Specified by:
      run in interface Runnable
    • cancel

      public final void cancel()
      This method cancels this AbstractPlayerTask.
    • isValid

      protected boolean isValid()
      This method checks if this AbstractPlayerTask should be continued or cancelled. It will also cancel this AbstractPlayerTask if it became invalid.
      Returns:
      Whether this AbstractPlayerTask is still valid