Class MagnetTask
- java.lang.Object
-
- io.github.thebusybiscuit.slimefun4.implementation.tasks.MagnetTask
-
-
Constructor Summary
Constructors Constructor Description MagnetTask(Player p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeTask()
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
-
MagnetTask
public MagnetTask(Player p)
-
-
Method Detail
-
executeTask
public void executeTask()
-
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
-
setID
public void setID(int id)
-
schedule
public void schedule(long delay)
-
scheduleRepeating
public void scheduleRepeating(long delay, long interval)
-
-