I'm working on a plugin that, among other things, needs to teleport entities to the highest block at a given location. Right now I'm using the
getHighestBlockYAt method, but I read on the docs that this just loops through all of the blocks at the location until it finds an empty one.
Normally, this would be fine, but entities are getting teleported a bunch by this plugin, so I'd like to make it as lightweight as possible. Is there an easy way to get the highest block at a location without looping through everything?