From 7a42bd208f7c4a22b28cfef250815bcac2457fc5 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 17 Jul 2019 22:04:05 +1000 Subject: [PATCH] Update AsyncWorld.java --- .../fawe/bukkit/wrapper/AsyncWorld.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java index 679484c9b..3211cd3bf 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java @@ -17,6 +17,7 @@ import com.sk89q.worldedit.world.biome.BiomeType; import java.io.File; import java.util.Collection; import java.util.List; +import java.util.Map; import java.util.Set; import java.util.UUID; import java.util.concurrent.CompletableFuture; @@ -1177,6 +1178,31 @@ public class AsyncWorld extends DelegateFaweQueue implements World, HasFaweQueue return parent.getForceLoadedChunks(); } + @Override + public boolean addPluginChunkTicket(int x, int z, @NotNull Plugin plugin) { + return getBukkitWorld().addPluginChunkTicket(x, z, plugin); + } + + @Override + public boolean removePluginChunkTicket(int x, int z, @NotNull Plugin plugin) { + return getBukkitWorld().removePluginChunkTicket(x, z, plugin); + } + + @Override + public void removePluginChunkTickets(@NotNull Plugin plugin) { + getBukkitWorld().removePluginChunkTickets(plugin); + } + + @Override + public @NotNull Collection getPluginChunkTickets(int x, int z) { + return getBukkitWorld().getPluginChunkTickets(x, z); + } + + @Override + public @NotNull Map> getPluginChunkTickets() { + return getBukkitWorld().getPluginChunkTickets(); + } + @Override public int getHighestBlockYAt(int x, int z, com.destroystokyo.paper.HeightmapType heightmap) throws UnsupportedOperationException { return TaskManager.IMP.sync(new Supplier() {