Class Players


  • public final class Players
    extends java.lang.Object
    For retrieval, sorting, and analysis of Players
    • Method Detail

      • getAt

        public static Player getAt​(int index)
        Gets the player at the given index in the array (advanced)
      • getLocal

        @Nullable
        public static @Nullable Player getLocal()
        Gets the local player, also known as your character.
      • getLocalPlayerWeight

        public static int getLocalPlayerWeight()
        Gets the weight of the local player as it appears in-game
      • getModelPredicate

        public static java.util.function.Predicate<Player> getModelPredicate​(int... acceptedHashes)
        Gets a Player model hash filter
      • getNamePredicate

        public static java.util.function.Predicate<Player> getNamePredicate​(java.lang.String... acceptedNames)