Implement new World interface methods

This commit is contained in:
MattBDev 2020-02-12 17:46:07 -05:00
parent 0723620722
commit b1c11c9597

View File

@ -4,6 +4,7 @@ import com.boydti.fawe.FaweAPI;
import com.boydti.fawe.object.RunnableVal;
import com.boydti.fawe.util.StringMan;
import com.boydti.fawe.util.TaskManager;
import com.destroystokyo.paper.HeightmapType;
import com.sk89q.worldedit.bukkit.BukkitWorld;
import com.sk89q.worldedit.bukkit.WorldEditPlugin;
import com.sk89q.worldedit.bukkit.adapter.BukkitImplAdapter;
@ -1210,4 +1211,16 @@ public class AsyncWorld extends PassthroughExtent implements World {
boolean force) {
parent.spawnParticle(particle, location, count, offsetX, offsetY, offsetZ, extra, data, force);
}
@Override
public int getHighestBlockYAt(@NotNull Location location, @NotNull HeightmapType heightmap)
throws UnsupportedOperationException {
return parent.getHighestBlockYAt(location, heightmap);
}
@Override
public @NotNull Block getHighestBlockAt(int x, int z, @NotNull HeightmapType heightmap)
throws UnsupportedOperationException {
return parent.getHighestBlockAt(x, z, heightmap);
}
}