Class ProtectionRegenTask

java.lang.Object
com.palmergames.bukkit.towny.tasks.TownyTimerTask
com.palmergames.bukkit.towny.tasks.ProtectionRegenTask
All Implemented Interfaces:
Runnable

public class ProtectionRegenTask extends TownyTimerTask
  • Constructor Details

    • ProtectionRegenTask

      public ProtectionRegenTask(Towny plugin, org.bukkit.block.Block block)
  • Method Details

    • run

      public void run()
    • replaceProtections

      public void replaceProtections()
    • getBlockLocation

      public BlockLocation getBlockLocation()
      Returns:
      the blockLocation
    • getState

      public org.bukkit.block.BlockState getState()
    • getTaskId

      @Deprecated public int getTaskId()
      Deprecated.
      Deprecated as of 0.99.0.6, use getTask() instead.
      Returns:
      the taskId
    • setTaskId

      @Deprecated public void setTaskId(int taskId)
      Deprecated.
      Deprecated as of 0.99.0.6, use setTask(ScheduledTask) instead.
      Parameters:
      taskId - the taskId to set
    • getTask

      public ScheduledTask getTask()
    • setTask

      public void setTask(ScheduledTask task)