mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-27 18:33:51 -07:00
@@ -58,7 +58,7 @@ public abstract class BukkitRunnable implements Runnable {
|
||||
* @see BukkitScheduler#runTaskAsynchronously(Plugin, Runnable)
|
||||
*/
|
||||
@NotNull
|
||||
public synchronized BukkitTask runTaskAsynchronously(@NotNull Plugin plugin) throws IllegalArgumentException, IllegalStateException {
|
||||
public synchronized BukkitTask runTaskAsynchronously(@NotNull Plugin plugin) throws IllegalArgumentException, IllegalStateException {
|
||||
checkNotYetScheduled();
|
||||
return setupTask(Bukkit.getScheduler().runTaskAsynchronously(plugin, (Runnable) this));
|
||||
}
|
||||
@@ -74,7 +74,7 @@ public abstract class BukkitRunnable implements Runnable {
|
||||
* @see BukkitScheduler#runTaskLater(Plugin, Runnable, long)
|
||||
*/
|
||||
@NotNull
|
||||
public synchronized BukkitTask runTaskLater(@NotNull Plugin plugin, long delay) throws IllegalArgumentException, IllegalStateException {
|
||||
public synchronized BukkitTask runTaskLater(@NotNull Plugin plugin, long delay) throws IllegalArgumentException, IllegalStateException {
|
||||
checkNotYetScheduled();
|
||||
return setupTask(Bukkit.getScheduler().runTaskLater(plugin, (Runnable) this, delay));
|
||||
}
|
||||
@@ -94,7 +94,7 @@ public abstract class BukkitRunnable implements Runnable {
|
||||
* @see BukkitScheduler#runTaskLaterAsynchronously(Plugin, Runnable, long)
|
||||
*/
|
||||
@NotNull
|
||||
public synchronized BukkitTask runTaskLaterAsynchronously(@NotNull Plugin plugin, long delay) throws IllegalArgumentException, IllegalStateException {
|
||||
public synchronized BukkitTask runTaskLaterAsynchronously(@NotNull Plugin plugin, long delay) throws IllegalArgumentException, IllegalStateException {
|
||||
checkNotYetScheduled();
|
||||
return setupTask(Bukkit.getScheduler().runTaskLaterAsynchronously(plugin, (Runnable) this, delay));
|
||||
}
|
||||
@@ -112,7 +112,7 @@ public abstract class BukkitRunnable implements Runnable {
|
||||
* @see BukkitScheduler#runTaskTimer(Plugin, Runnable, long, long)
|
||||
*/
|
||||
@NotNull
|
||||
public synchronized BukkitTask runTaskTimer(@NotNull Plugin plugin, long delay, long period) throws IllegalArgumentException, IllegalStateException {
|
||||
public synchronized BukkitTask runTaskTimer(@NotNull Plugin plugin, long delay, long period) throws IllegalArgumentException, IllegalStateException {
|
||||
checkNotYetScheduled();
|
||||
return setupTask(Bukkit.getScheduler().runTaskTimer(plugin, (Runnable) this, delay, period));
|
||||
}
|
||||
@@ -135,7 +135,7 @@ public abstract class BukkitRunnable implements Runnable {
|
||||
* long)
|
||||
*/
|
||||
@NotNull
|
||||
public synchronized BukkitTask runTaskTimerAsynchronously(@NotNull Plugin plugin, long delay, long period) throws IllegalArgumentException, IllegalStateException {
|
||||
public synchronized BukkitTask runTaskTimerAsynchronously(@NotNull Plugin plugin, long delay, long period) throws IllegalArgumentException, IllegalStateException {
|
||||
checkNotYetScheduled();
|
||||
return setupTask(Bukkit.getScheduler().runTaskTimerAsynchronously(plugin, (Runnable) this, delay, period));
|
||||
}
|
||||
|
Reference in New Issue
Block a user