How get highest block at location


#1

How get highest block at location? sponge does not contain “world.getHighestBlockAt (location.getBlockX (), location.getBlockZ ()). getY ()” as in bukkit


#2

Last I checked, you would just iterate down the blocks at the x,z coords until you reach the first solid block


#3

Could do

World world;
world.getHighestYAt(x, z);