sortedByDistance

QueryType sortedByDistance()

Sorts the entities by their distance to our player, with the closest appearing first

Return

this query

QueryType sortedByDistance(Positionable source)

Sorts the entities by their distance to the specified location, with the closest appearing first

Return

this query

Parameters

source

the position to use as the base for calculating the entities distance from