PlayerStream

public final class PlayerStream

Helper streams for looking up players on a server.

In general, most of these methods will only function with a ServerWorld instance.

Deprecated

Please use PlayerLookup instead.

Functions

all
Link copied to clipboard
static Stream<ServerPlayerEntity> all(MinecraftServer server)
around
Link copied to clipboard
static Stream<PlayerEntity> around(World world, BlockPos pos, double radius)
static Stream<PlayerEntity> around(World world, Vec3d vector, double radius)
watching
Link copied to clipboard
static Stream<PlayerEntity> watching(BlockEntity entity)
static Stream<PlayerEntity> watching(World world, BlockPos pos)
static Stream<PlayerEntity> watching(World world, ChunkPos pos)
static Stream<PlayerEntity> watching(Entity entity)
Warning: If the provided entity is a PlayerEntity themselves, it is notguaranteed by the contract that said PlayerEntity is included in theresulting stream.
world
Link copied to clipboard
static Stream<PlayerEntity> world(World world)

Sources

jvm source
Link copied to clipboard