Class ProtectionRegenTask
java.lang.Object
com.palmergames.bukkit.towny.tasks.TownyTimerTask
com.palmergames.bukkit.towny.tasks.ProtectionRegenTask
- All Implemented Interfaces:
Runnable
-
Field Summary
Fields inherited from class com.palmergames.bukkit.towny.tasks.TownyTimerTask
plugin, universe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.BlockState
getState()
getTask()
int
Deprecated.void
void
run()
void
setTask
(ScheduledTask task) void
setTaskId
(int taskId) Deprecated.Deprecated as of 0.99.0.6, usesetTask(ScheduledTask)
instead.
-
Constructor Details
-
ProtectionRegenTask
-
-
Method Details
-
run
public void run() -
replaceProtections
public void replaceProtections() -
getBlockLocation
- Returns:
- the blockLocation
-
getState
public org.bukkit.block.BlockState getState() -
getTaskId
Deprecated.Deprecated as of 0.99.0.6, usegetTask()
instead.- Returns:
- the taskId
-
setTaskId
Deprecated.Deprecated as of 0.99.0.6, usesetTask(ScheduledTask)
instead.- Parameters:
taskId
- the taskId to set
-
getTask
-
setTask
-
getTask()
instead.