around

static Collection<ServerPlayerEntityaround(ServerWorld world, Vec3d pos, double radius)

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<ServerPlayerEntityaround(ServerWorld world, Vec3i pos, double radius)

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