maxDistance

QueryType maxDistance(double maxDistance)

Only match entities who are at most the specified distance away from our player

Return

this query

Parameters

maxDistance

the max distance of entities to find

QueryType maxDistance(Positionable source, double maxDistance)

Only match entities who are at most the specified distance away from the specified location

Return

this query

Parameters

source

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

maxDistance

the max distance of entities to find