around
static Collection<ServerPlayerEntity> around(ServerWorld world, Vec3d pos, double radius)
Content copied to clipboard
Gets all players around a position in a world.
The distance check is done in the three-dimensional space instead of in the horizontal plane.
Return
the players around the position
Parameters
world
the world
pos
the position
radius
the maximum distance from the position in blocks
static Collection<ServerPlayerEntity> around(ServerWorld world, Vec3i pos, double radius)
Content copied to clipboard
Gets all players around a position in a world.
The distance check is done in the three-dimensional space instead of in the horizontal plane.
Return
the players around the position
Parameters
world
the world
pos
the position (can be a block pos)
radius
the maximum distance from the position in blocks