tracking

static Collection<ServerPlayerEntitytracking(ServerWorld world, ChunkPos pos)

Gets all players tracking a chunk in a server world.

Return

the players tracking the chunk

Parameters

world

the server world

pos

the chunk in question

static Collection<ServerPlayerEntitytracking(Entity entity)

Gets all players tracking an entity in a server world.

The returned collection is immutable.

Warning: If the provided entity is a player, it is notguaranteed by the contract that said player is included in theresulting stream.

Return

the players tracking the entity

Parameters

entity

the entity being tracked

Throws

if the entity is not in a server world

static Collection<ServerPlayerEntitytracking(BlockEntity blockEntity)

Gets all players tracking a block entity in a server world.

Return

the players tracking the block position

Parameters

blockEntity

the block entity

Throws

if the block entity is not in a server world

static Collection<ServerPlayerEntitytracking(ServerWorld world, BlockPos pos)

Gets all players tracking a block position in a server world.

Return

the players tracking the block position

Parameters

world

the server world

pos

the block position