Class PathfinderOpenDoor

java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderOpenDoor
All Implemented Interfaces:
PathfinderInfo

public final class PathfinderOpenDoor extends Pathfinder
Represents a Pathfinder for an entity to open a door
  • Constructor Details

    • PathfinderOpenDoor

      public PathfinderOpenDoor(@NotNull @NotNull Mob m)
      Constructs a PathfinderOpenDoor that allows closing doors.
      Parameters:
      m - Mob to use
    • PathfinderOpenDoor

      public PathfinderOpenDoor(@NotNull @NotNull Mob m, boolean close)
      Constructs a PathfinderOpenDoor.
      Parameters:
      m - Mob to use
      close - Whether this entity should close the door
  • Method Details

    • getFlags

      Description copied from class: Pathfinder

      Fetches an Array of Flags that this Pathfinder has.

      Specified by:
      getFlags in class Pathfinder
      Returns:
      Array of Pathfinder Flags
    • mustClose

      public boolean mustClose()
      Whether this entity should close the door.
      Returns:
      true if close, else false
    • setMustClose

      public void setMustClose(boolean close)
      Sets whether this entity should close the door.
      Parameters:
      close - true if close, else false
    • getInternalName

      public String getInternalName()
      Description copied from interface: PathfinderInfo
      Returns the NMS Internal Name.
      Returns:
      Internal Name