Class NPCs

  • public class NPCs
    extends Interactables<NPC>
    A class containing methods which are used to retrieve local NPC from the game.
    • Method Detail

      • all

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

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

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

        public static java.util.List<NPC> all​(Filter<NPC> filter)
      • closest

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

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

        public static NPC closest​(Filter<NPC> filter)
      • closest

        public static NPC closest​(Filter<NPC> filter,
                                  Tile toTile,
                                  boolean walkingDistance)
      • getAtIndex

        public static NPC getAtIndex​(int index)
        Gets local NPC at index specified
        index - index of NPC
        NPC at specified index
      • getArray

        public static NPC[] getArray()
      • isIgnoreHealth

        public static boolean isIgnoreHealth()
      • setIgnoreHealth

        public static void setIgnoreHealth​(boolean ignoreHealth)
      • isIncludeNullNames

        public static boolean isIncludeNullNames()
      • setIncludeNullNames

        public static void setIncludeNullNames​(boolean includeNullNames)