Class Players

    • Method Detail

      • all

        public static java.util.List<Player> all()
      • getLocal

        public static Player getLocal()
        Gets your player
        Returns:
        Player as your current logged in player
      • all

        public static java.util.List<Player> all​(java.lang.Integer... ids)
      • all

        public static java.util.List<Player> all​(java.lang.String... names)
      • closest

        public static Player closest​(java.lang.String... names)
      • closest

        public static Player closest​(java.lang.Integer... ids)
      • getArray

        public static Player[] getArray()
        Gets all players
        Returns:
        All cached players
      • referenceExists

        public static boolean referenceExists​(int index)
        Checks to see if the player reference exists at this index
        Parameters:
        index -
        Returns:
        true if not null else false
      • getAtIndex

        public static Player getAtIndex​(int index)
        Gets a player at a specific index
        Parameters:
        index -
        Returns:
        null if player reference not found, otherwise player for given index
      • getComposite

        public static PlayerComposite getComposite​(Player player,
                                                   java.lang.Object playerComposite)