Class GoalStrictDirection

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

public class GoalStrictDirection extends Object implements Goal
Dig a tunnel in a certain direction, but if you have to deviate from the path, go back to where you started
  • Field Details

    • x

      public final int x
    • y

      public final int y
    • z

      public final int z
    • dx

      public final int dx
    • dz

      public final int dz
  • Constructor Details

    • GoalStrictDirection

      public GoalStrictDirection(BlockPos origin, Direction direction)
  • 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