Class Players

java.lang.Object
com.botwithus.bot.api.entities.Players

public final class Players extends Object
Player query facade. Singleton per GameAPI; obtain via api.players().

Players don't carry a per-id type definition (no PlayerType cache like NpcType), so this facade is mostly a query entry point. Display names ride along on the snapshot in future slices once the producer surfaces them; for now EntityQuery.named(String) on players returns nothing — use index/position filters or the predicate form for arbitrary checks.

  • Constructor Details

    • Players

      public Players(GameAPI api)
  • Method Details

    • query

      public Players.Query query()
      Start a fluent query.
    • byServerIndex

      public Player byServerIndex(int serverIndex)
    • all

      public List<Player> all()