Class ChunkResourceRecalcTask

java.lang.Object
org.bukkit.scheduler.BukkitRunnable
net.chen.legacyLand.resource.pricing.ChunkResourceRecalcTask
All Implemented Interfaces:
Runnable

public class ChunkResourceRecalcTask extends org.bukkit.scheduler.BukkitRunnable
资源区块衰减定时任务(P2)。

由 LegacyLand 在启动时以 recalc-interval-ticks 周期调度(默认 1200 ticks = 60 秒)。 仅负责把 ChunkResourceManager.accumulateDecrement(String, int, int, double) 累积的待 flush 数据落库 + 触发耗竭事件,单次破坏不会立即引起 DB 写。

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
     

    Methods inherited from class org.bukkit.scheduler.BukkitRunnable

    cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChunkResourceRecalcTask

      public ChunkResourceRecalcTask()
  • Method Details

    • run

      public void run()