Class JetpackTask

  • All Implemented Interfaces:
    Runnable


    public class JetpackTask
    extends Object
    • Field Detail

      • id

        protected int id
    • Constructor Detail

      • JetpackTask

        public JetpackTask​(Player p,
                           double thrust)
    • Method Detail

      • setID

        public void setID​(int id)
      • executeTask

        public void executeTask​()
      • schedule

        public void schedule​(long delay)
      • scheduleRepeating

        public void scheduleRepeating​(long delay,
                                      long interval)
      • run

        public void run​()
        Specified by:
        run in interface Runnable
      • isValid

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