mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-27 13:15:52 +01:00
parent
a6122cbd24
commit
ff1d1250d1
@ -24,8 +24,8 @@ public class FoliaScheduler implements ProtocolScheduler {
|
|||||||
|
|
||||||
this.runAtFixedRate = Accessors.getMethodAccessor(foliaScheduler.getClass(), "runAtFixedRate", Plugin.class,
|
this.runAtFixedRate = Accessors.getMethodAccessor(foliaScheduler.getClass(), "runAtFixedRate", Plugin.class,
|
||||||
Consumer.class, long.class, long.class);
|
Consumer.class, long.class, long.class);
|
||||||
this.execute = Accessors.getMethodAccessor(foliaScheduler.getClass(), "run", Plugin.class, Runnable.class);
|
this.execute = Accessors.getMethodAccessor(foliaScheduler.getClass(), "run", Plugin.class, Consumer.class);
|
||||||
this.runDelayed = Accessors.getMethodAccessor(foliaScheduler.getClass(), "runDelayed", Plugin.class, Runnable.class, long.class);
|
this.runDelayed = Accessors.getMethodAccessor(foliaScheduler.getClass(), "runDelayed", Plugin.class, Consumer.class, long.class);
|
||||||
|
|
||||||
Class<?> taskClass = MinecraftReflection.getLibraryClass("io.papermc.paper.threadedregions.scheduler.ScheduledTask");
|
Class<?> taskClass = MinecraftReflection.getLibraryClass("io.papermc.paper.threadedregions.scheduler.ScheduledTask");
|
||||||
this.cancel = Accessors.getMethodAccessor(taskClass, "cancel");
|
this.cancel = Accessors.getMethodAccessor(taskClass, "cancel");
|
||||||
|
Loading…
Reference in New Issue
Block a user