Class GoalRunAway

java.lang.Object
com.zenith.feature.pathfinder.goals.GoalRunAway
All Implemented Interfaces:
Goal

public class GoalRunAway extends Object implements Goal
Useful for automated combat (retreating specifically)
  • Constructor Details

    • GoalRunAway

      public GoalRunAway(double distance, BlockPos... from)
    • GoalRunAway

      public GoalRunAway(double distance, Integer maintainY, BlockPos... from)
  • Method Details

    • isInGoal

      public boolean isInGoal(int x, int y, int z)
      Specified by:
      isInGoal in interface Goal
    • heuristic

      public double heuristic(int x, int y, int z)
      Specified by:
      heuristic in interface Goal
    • heuristic

      public double heuristic()
      Specified by:
      heuristic in interface Goal
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object