Class PathfinderBreakDoor

java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderBreakDoor
All Implemented Interfaces:
Conditional<Difficulty>, PathfinderInfo

public final class PathfinderBreakDoor extends Pathfinder implements Conditional<Difficulty>
Represents a Pathfinder that has a Mob break a door
  • Field Details

    • DEFAULT_DOOR_BREAK_TIME

      public static final int DEFAULT_DOOR_BREAK_TIME
      Default amount of ticks it takes to break a door
      See Also:
  • Constructor Details

    • PathfinderBreakDoor

      public PathfinderBreakDoor(@NotNull @NotNull Mob m, Difficulty... validDifficulties)
      Constructs a PathfinderBreakDoor with the default break time.
      Parameters:
      m - Mob to use
      validDifficulties - Difficulties that this Pathfinder will work on
    • PathfinderBreakDoor

      public PathfinderBreakDoor(@NotNull @NotNull Mob m, int breakTime, Difficulty... validDifficulties) throws IllegalArgumentException
      Constructs a PathfinderBreakDoor.
      Parameters:
      m - Mob to use
      breakTime - How many ticks it takes to break a door
      validDifficulties - Difficulties that this Pathfinder will work on
      Throws:
      IllegalArgumentException - if time is less than or equal to 0
    • PathfinderBreakDoor

      public PathfinderBreakDoor(@NotNull @NotNull Mob m, int breakTime, Predicate<Difficulty> validDiffs) throws IllegalArgumentException
      Constructs a PathfinderBreakDoor with a predicate.
      Parameters:
      m - Mob to use
      breakTime - How many ticks it takes to break a door
      validDiffs - Predicate that determines if the Pathfinder should work on a given difficulty
      Throws:
      IllegalArgumentException - if time is less than or equal to 0
  • Method Details