Update AsyncWorld.java

Dieser Commit ist enthalten in:
Jesse Boyd 2019-07-17 22:04:05 +10:00
Ursprung 505af853bd
Commit 7a42bd208f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -17,6 +17,7 @@ import com.sk89q.worldedit.world.biome.BiomeType;
import java.io.File; import java.io.File;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
@ -1177,6 +1178,31 @@ public class AsyncWorld extends DelegateFaweQueue implements World, HasFaweQueue
return parent.getForceLoadedChunks(); 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<Plugin> getPluginChunkTickets(int x, int z) {
return getBukkitWorld().getPluginChunkTickets(x, z);
}
@Override
public @NotNull Map<Plugin, Collection<Chunk>> getPluginChunkTickets() {
return getBukkitWorld().getPluginChunkTickets();
}
@Override @Override
public int getHighestBlockYAt(int x, int z, com.destroystokyo.paper.HeightmapType heightmap) throws UnsupportedOperationException { public int getHighestBlockYAt(int x, int z, com.destroystokyo.paper.HeightmapType heightmap) throws UnsupportedOperationException {
return TaskManager.IMP.sync(new Supplier<Integer>() { return TaskManager.IMP.sync(new Supplier<Integer>() {