public class ProtectionRegenTask extends TownyTimerTask
Constructor and Description |
---|
ProtectionRegenTask(Towny plugin,
org.bukkit.block.Block block,
boolean update) |
Modifier and Type | Method and Description |
---|---|
BlockLocation |
getBlockLocation() |
org.bukkit.block.BlockState |
getState() |
int |
getTaskId() |
void |
replaceProtections() |
void |
run() |
void |
setTaskId(int taskId) |
public ProtectionRegenTask(Towny plugin, org.bukkit.block.Block block, boolean update)
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public void replaceProtections()
public BlockLocation getBlockLocation()
public org.bukkit.block.BlockState getState()
public int getTaskId()
public void setTaskId(int taskId)
taskId
- the taskId to set