From 8d60c0197b0ed80469283474bbc3777026a50082 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 17 Jul 2019 22:09:48 +1000 Subject: [PATCH] Update AsyncChunk.java --- .../boydti/fawe/bukkit/wrapper/AsyncChunk.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncChunk.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncChunk.java index 69da4e4b5..f92a0db3c 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncChunk.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncChunk.java @@ -11,8 +11,11 @@ import org.bukkit.ChunkSnapshot; import org.bukkit.World; import org.bukkit.block.BlockState; import org.bukkit.entity.Entity; +import org.bukkit.plugin.Plugin; import org.jetbrains.annotations.NotNull; +import java.util.Collection; + public class AsyncChunk implements Chunk { private final AsyncWorld world; @@ -178,4 +181,19 @@ public class AsyncChunk implements Chunk { public void setForceLoaded(boolean arg0) { world.getChunkAt(x, z).setForceLoaded(arg0); } + + @Override + public boolean addPluginChunkTicket(final Plugin plugin) { + return world.addPluginChunkTicket(this.getX(), this.getZ(), plugin); + } + + @Override + public boolean removePluginChunkTicket(final Plugin plugin) { + return world.removePluginChunkTicket(this.getX(), this.getZ(), plugin); + } + + @Override + public Collection getPluginChunkTickets() { + return world.getPluginChunkTickets(this.getX(), this.getZ()); + } }