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