Class SimulationNpcSnapshot


  • public final class SimulationNpcSnapshot
    extends java.lang.Object
    Immutable snapshot of a RuneLite NPC at a single game tick.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimulationNpcSnapshot​(int index, int id, java.lang.String name, @NonNull net.runelite.api.coords.WorldPoint worldPoint, int size, int attackRange, boolean collidable, boolean stopWhenPlayerInLineOfSight)
      Creates a snapshot model for a single NPC.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimulationNpcSnapshot

        public SimulationNpcSnapshot​(int index,
                                     int id,
                                     java.lang.String name,
                                     @NonNull
                                     @NonNull net.runelite.api.coords.WorldPoint worldPoint,
                                     int size,
                                     int attackRange,
                                     boolean collidable,
                                     boolean stopWhenPlayerInLineOfSight)
        Creates a snapshot model for a single NPC.
        Parameters:
        index - RuneLite NPC index for runtime lookup.
        id - RuneLite NPC id.
        name - NPC display name.
        worldPoint - NPC world tile (south-west anchor for multi-tile NPCs).
        size - NPC tile footprint.
        attackRange - NPC attack/line-of-sight range used by simulation.
        collidable - true when movement overlap checks should treat this NPC as blocking.
        stopWhenPlayerInLineOfSight - true when movement should stop once LoS to player is available.