public final class PlayerStream extends Object
In general, most of these methods will only function with a ServerWorld
instance.
Modifier and Type | Method and Description |
---|---|
static Stream<net.minecraft.server.network.ServerPlayerEntity> |
all(net.minecraft.server.MinecraftServer server) |
static Stream<net.minecraft.entity.player.PlayerEntity> |
around(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
double radius) |
static Stream<net.minecraft.entity.player.PlayerEntity> |
around(net.minecraft.world.World world,
net.minecraft.util.math.Vec3d vector,
double radius) |
static Stream<net.minecraft.entity.player.PlayerEntity> |
watching(net.minecraft.block.entity.BlockEntity entity) |
static Stream<net.minecraft.entity.player.PlayerEntity> |
watching(net.minecraft.entity.Entity entity)
Warning: If the provided entity is a PlayerEntity themselves, it is not
guaranteed by the contract that said PlayerEntity is included in the
resulting stream.
|
static Stream<net.minecraft.entity.player.PlayerEntity> |
watching(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
static Stream<net.minecraft.entity.player.PlayerEntity> |
watching(net.minecraft.world.World world,
net.minecraft.util.math.ChunkPos pos) |
static Stream<net.minecraft.entity.player.PlayerEntity> |
world(net.minecraft.world.World world) |
public static Stream<net.minecraft.server.network.ServerPlayerEntity> all(net.minecraft.server.MinecraftServer server)
public static Stream<net.minecraft.entity.player.PlayerEntity> world(net.minecraft.world.World world)
public static Stream<net.minecraft.entity.player.PlayerEntity> watching(net.minecraft.world.World world, net.minecraft.util.math.ChunkPos pos)
public static Stream<net.minecraft.entity.player.PlayerEntity> watching(net.minecraft.entity.Entity entity)
public static Stream<net.minecraft.entity.player.PlayerEntity> watching(net.minecraft.block.entity.BlockEntity entity)
public static Stream<net.minecraft.entity.player.PlayerEntity> watching(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
public static Stream<net.minecraft.entity.player.PlayerEntity> around(net.minecraft.world.World world, net.minecraft.util.math.Vec3d vector, double radius)
public static Stream<net.minecraft.entity.player.PlayerEntity> around(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, double radius)