Class TileSyncTask

java.lang.Object
cn.nukkit.scheduler.Task
cn.nukkit.level.generator.task.TileSyncTask
All Implemented Interfaces:
Runnable

@PowerNukkitXOnly @Since("1.19.21-r2") public class TileSyncTask extends Task
  • Field Details

  • Constructor Details

  • Method Details

    • onRun

      public void onRun(int currentTick)
      Description copied from class: Task
      这个任务被执行时,会调用的过程。
      What will be called when the task is executed.
      Specified by:
      onRun in class Task
      Parameters:
      currentTick - 服务器从开始运行到现在所经过的tick数,20ticks = 1秒,1tick = 0.05秒。
      The elapsed tick count from the server is started. 20ticks = 1second, 1tick = 0.05second.