Class SimulationNpcSnapshot


  • public final class SimulationNpcSnapshot
    extends java.lang.Object
    Immutable NPC position snapshot used as simulation input.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimulationNpcSnapshot​(int index, int id, int size, int packedWorldPoint, java.lang.String name)
      Creates an npc snapshot with packed coordinates.
      SimulationNpcSnapshot​(int index, int id, int size, @NonNull net.runelite.api.coords.WorldPoint worldPoint)
      Creates an npc snapshot.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      net.runelite.api.coords.WorldPoint getWorldPoint()  
      • 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,
                                     int size,
                                     @NonNull
                                     @NonNull net.runelite.api.coords.WorldPoint worldPoint)
        Creates an npc snapshot.
        Parameters:
        index - RuneLite npc index.
        id - RuneLite npc id.
        size - npc size in tiles.
        worldPoint - npc anchor tile.
      • SimulationNpcSnapshot

        public SimulationNpcSnapshot​(int index,
                                     int id,
                                     int size,
                                     int packedWorldPoint,
                                     java.lang.String name)
        Creates an npc snapshot with packed coordinates.
        Parameters:
        index - RuneLite npc index.
        id - RuneLite npc id.
        size - npc size in tiles.
        packedWorldPoint - packed npc world point.
        name - optional npc name.
    • Method Detail

      • getWorldPoint

        public net.runelite.api.coords.WorldPoint getWorldPoint()
        Returns:
        unpacked world point.