Class JetpackTask
- java.lang.Object
-
- io.github.thebusybiscuit.slimefun4.implementation.tasks.JetpackTask
-
-
Constructor Summary
Constructors Constructor Description JetpackTask(Player p, double thrust)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeTask()
protected boolean
isValid()
This method checks if thisSlimefunTask
should be continued or cancelled.void
run()
void
schedule(long delay)
void
scheduleRepeating(long delay, long interval)
void
setID(int id)
-
-
-
Field Detail
-
id
protected int id
-
p
protected Player p
-
-
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)
-
isValid
protected boolean isValid()
This method checks if thisSlimefunTask
should be continued or cancelled. It will also cancel thisSlimefunTask
if it became invalid.- Returns:
- Whether this
SlimefunTask
is still valid
-
-