Class NPCs


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

      Fields 
      Modifier and Type Field Description
      static NPCs npcsInstance  
    • Constructor Summary

      Constructors 
      Constructor Description
      NPCs()
      Deprecated.
    • Field Detail

      • npcsInstance

        public static NPCs npcsInstance
    • Constructor Detail

      • NPCs

        @Deprecated
        public NPCs()
        Deprecated.
    • Method Detail

      • getNPCs

        @Deprecated
        public static NPCs getNPCs()
        Deprecated.
        Returns the active NPCs instance
        Returns:
        npcs instance
      • 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)
      • getLocalNPC

        public static NPC getLocalNPC​(int index)
        Gets local NPC at index specified
        Parameters:
        index - index of NPC
        Returns:
        NPC at specified index