findClosest

Optional<EntityTypefindClosest()

Executes this query and gets the closest matching entity to our player

Return

the closest matching entity, or an empty optional if none matched