接口的使用
org.bukkit.scheduler.BukkitTask
-
org.bukkit.scheduler中BukkitTask的使用
修饰符和类型方法说明让Bukkit任务调度器在下一个tick运行任务.返回下一个tick服务器将运行的任务.BukkitScheduler.runTask
(Plugin plugin, BukkitRunnable task) 已过时。BukkitRunnable.runTaskAsynchronously
(Plugin plugin) 在Bukkit任务调度器异步运行这个任务.BukkitScheduler.runTaskAsynchronously
(Plugin plugin, Runnable task) 异步任务不应访问Bukkit里的任何API.应着重保证异步任务的线程安全.BukkitScheduler.runTaskAsynchronously
(Plugin plugin, BukkitRunnable task) BukkitRunnable.runTaskLater
(Plugin plugin, long delay) 在指定tick后执行该任务.BukkitScheduler.runTaskLater
(Plugin plugin, Runnable task, long delay) 返回指定tick过后运行的任务(即延迟执行).BukkitScheduler.runTaskLater
(Plugin plugin, BukkitRunnable task, long delay) BukkitRunnable.runTaskLaterAsynchronously
(Plugin plugin, long delay) 让Bukkit任务调度器在指定的tick后异步执行这个任务.BukkitScheduler.runTaskLaterAsynchronously
(Plugin plugin, Runnable task, long delay) 异步任务不应访问Bukkit里的任何API.应着重保证异步任务的线程安全.BukkitScheduler.runTaskLaterAsynchronously
(Plugin plugin, BukkitRunnable task, long delay) BukkitRunnable.runTaskTimer
(Plugin plugin, long delay, long period) 在指定时间后开始以指定的间隔不断执行任务.BukkitScheduler.runTaskTimer
(Plugin plugin, Runnable task, long delay, long period) 返回一个任务.此任务将在指定tick数值后运行.任务将重复运行直至取消.BukkitScheduler.runTaskTimer
(Plugin plugin, BukkitRunnable task, long delay, long period) BukkitRunnable.runTaskTimerAsynchronously
(Plugin plugin, long delay, long period) 让Bukkit任务调度器在指定的tick后开始异步的以指定的间隔不断执行任务.BukkitScheduler.runTaskTimerAsynchronously
(Plugin plugin, Runnable task, long delay, long period) 异步任务不应访问Bukkit里的任何API.应着重保证异步任务的线程安全.BukkitScheduler.runTaskTimerAsynchronously
(Plugin plugin, BukkitRunnable task, long delay, long period)
BukkitRunnable.runTask(Plugin)