Class BlockActorSpawnTask

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

@PowerNukkitXOnly @Since("1.19.21-r2") public class BlockActorSpawnTask extends Task
  • Constructor Details

    • BlockActorSpawnTask

      public BlockActorSpawnTask(Level level, CompoundTag nbt)
  • 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.