Class IgnoredDoor

java.lang.Object
net.storm.api.movement.pathfinder.model.IgnoredDoor

public class IgnoredDoor extends Object
Represents a door or gate that should be ignored by the pathfinder.

IgnoredDoor defines doors that should not be considered as obstacles by the collision system. This is useful for doors that are typically open, quest-locked doors, or doors with special requirements.

Use Cases

  • Doors that are always open in certain game states
  • Quest-locked doors (pathfinder assumes quest complete)
  • Members-only doors
  • Doors requiring specific items or conditions

Blocking Behavior

  • If destination is null, blocks any path TO the source tile
  • If destination is set, blocks only the specific source->destination movement

Usage Example


 IgnoredDoor door = IgnoredDoor.builder()
     .source(new WorldPoint(3100, 3200, 0))
     .destination(new WorldPoint(3100, 3201, 0))
     .requireMembers(true)
     .build();

 // Check if door should be ignored
 if (door.shouldIgnore(isMembers)) {
     // Door is passable
 }
 
See Also:
  • invalid reference
    LocalCollisionMap
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    blocks(net.runelite.api.coords.WorldPoint from, net.runelite.api.coords.WorldPoint to)
    Checks if this ignored door blocks movement between two tiles.
    boolean
    shouldIgnore(boolean isMembers)
    Determines if this door should be ignored (treated as passable).

    Methods inherited from class java.lang.Object

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

    • IgnoredDoor

      public IgnoredDoor()
  • Method Details

    • shouldIgnore

      public boolean shouldIgnore(boolean isMembers)
      Determines if this door should be ignored (treated as passable).
      Parameters:
      isMembers - whether the player is on a members world
      Returns:
      true if the door should be ignored, false if it should block
    • blocks

      public boolean blocks(net.runelite.api.coords.WorldPoint from, net.runelite.api.coords.WorldPoint to)
      Checks if this ignored door blocks movement between two tiles.
      Parameters:
      from - the starting tile
      to - the destination tile
      Returns:
      true if this door blocks the specified movement