Class GoalAvoidBlocks

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

public class GoalAvoidBlocks extends Object implements Goal
  • Constructor Details

    • GoalAvoidBlocks

      public GoalAvoidBlocks(int fromX, int fromY, int fromZ, Block... blocksToAvoid)
  • 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
    • getFromX

      public int getFromX()
    • getFromY

      public int getFromY()
    • getFromZ

      public int getFromZ()
    • getBlocksToAvoid

      public Set<Block> getBlocksToAvoid()
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object