Class GoalGetToBlock

java.lang.Object
com.zenith.feature.pathfinder.goals.GoalGetToBlock
All Implemented Interfaces:
Goal, PosGoal

public class GoalGetToBlock extends Object implements Goal, PosGoal
Don't get into the block, but get directly adjacent to it. Useful for chests.
  • Field Details

    • x

      public final int x
    • y

      public final int y
    • z

      public final int z
  • Constructor Details

    • GoalGetToBlock

      public GoalGetToBlock(BlockPos pos)
  • 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
    • equals

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

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

      public BlockPos getGoalPos()
      Specified by:
      getGoalPos in interface PosGoal