Class PlayerStream

java.lang.Object
net.fabricmc.fabric.api.server.PlayerStream

@Deprecated public final class PlayerStream extends Object
Deprecated.
Please use PlayerLookup instead.
Helper streams for looking up players on a server.

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

  • Method Summary

    Modifier and Type
    Method
    Description
    static Stream<net.minecraft.server.network.ServerPlayerEntity>
    all​(net.minecraft.server.MinecraftServer server)
    Deprecated.
     
    static Stream<net.minecraft.entity.player.PlayerEntity>
    around​(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, double radius)
    Deprecated.
     
    static Stream<net.minecraft.entity.player.PlayerEntity>
    around​(net.minecraft.world.World world, net.minecraft.util.math.Vec3d vector, double radius)
    Deprecated.
     
    static Stream<net.minecraft.entity.player.PlayerEntity>
    watching​(net.minecraft.block.entity.BlockEntity entity)
    Deprecated.
     
    static Stream<net.minecraft.entity.player.PlayerEntity>
    watching​(net.minecraft.entity.Entity entity)
    Deprecated.
    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)
    Deprecated.
     
    static Stream<net.minecraft.entity.player.PlayerEntity>
    watching​(net.minecraft.world.World world, net.minecraft.util.math.ChunkPos pos)
    Deprecated.
     
    static Stream<net.minecraft.entity.player.PlayerEntity>
    world​(net.minecraft.world.World world)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • all

      public static Stream<net.minecraft.server.network.ServerPlayerEntity> all(net.minecraft.server.MinecraftServer server)
      Deprecated.
    • world

      public static Stream<net.minecraft.entity.player.PlayerEntity> world(net.minecraft.world.World world)
      Deprecated.
    • watching

      public static Stream<net.minecraft.entity.player.PlayerEntity> watching(net.minecraft.world.World world, net.minecraft.util.math.ChunkPos pos)
      Deprecated.
    • watching

      public static Stream<net.minecraft.entity.player.PlayerEntity> watching(net.minecraft.entity.Entity entity)
      Deprecated.
      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.
    • watching

      public static Stream<net.minecraft.entity.player.PlayerEntity> watching(net.minecraft.block.entity.BlockEntity entity)
      Deprecated.
    • watching

      public static Stream<net.minecraft.entity.player.PlayerEntity> watching(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
      Deprecated.
    • around

      public static Stream<net.minecraft.entity.player.PlayerEntity> around(net.minecraft.world.World world, net.minecraft.util.math.Vec3d vector, double radius)
      Deprecated.
    • around

      public static Stream<net.minecraft.entity.player.PlayerEntity> around(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, double radius)
      Deprecated.