Class NeighborStrategies

java.lang.Object
de.bsommerfeld.pathetic.api.pathing.NeighborStrategies

public final class NeighborStrategies extends Object
This class serves as a util class in order to access Pathetic's predefined INeighborStrategys.

To create your own please see the INeighborStrategy interface linked above.

This util class consists of two implementations:

VERTICAL_AND_HORIZONTAL which consists of adjacent nodes (up, down, left, right, forward, backward)

DIAGONAL_3D which consists of all 26 surrounding nodes in a 3x3x3 cube.

  • Field Details

    • VERTICAL_AND_HORIZONTAL

      public static final INeighborStrategy VERTICAL_AND_HORIZONTAL
      Just checks adjacent nodes (up, down, left, right, forward, back).
    • DIAGONAL_3D

      public static final INeighborStrategy DIAGONAL_3D
      Checks all 26 surrounding nodes in a 3x3x3 cube.