tracking
static Collection<ServerPlayerEntity> tracking(ServerWorld world, ChunkPos pos)
Content copied to clipboard
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
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
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<ServerPlayerEntity> tracking(ServerWorld world, BlockPos pos)
Content copied to clipboard
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