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<ServerPlayerEntityall(MinecraftServer server)
around
Link copied to clipboard
static Stream<PlayerEntityaround(World world, BlockPos pos, double radius)
static Stream<PlayerEntityaround(World world, Vec3d vector, double radius)
watching
Link copied to clipboard
static Stream<PlayerEntitywatching(BlockEntity entity)
static Stream<PlayerEntitywatching(World world, BlockPos pos)
static Stream<PlayerEntitywatching(World world, ChunkPos pos)
static Stream<PlayerEntitywatching(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<PlayerEntityworld(World world)

Sources

jvm source
Link copied to clipboard