Class NodeEvaluator

java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
Direct Known Subclasses:
SwimNodeEvaluator, WalkNodeEvaluator

public abstract class NodeEvaluator extends Object
  • Field Details

    • currentContext

      protected PathfindingContext currentContext
    • mob

      protected Mob mob
    • nodes

      protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<Node> nodes
    • entityWidth

      protected int entityWidth
    • entityHeight

      protected int entityHeight
    • entityDepth

      protected int entityDepth
    • canPassDoors

      protected boolean canPassDoors
    • canOpenDoors

      protected boolean canOpenDoors
    • canFloat

      protected boolean canFloat
    • canWalkOverFences

      protected boolean canWalkOverFences
  • Constructor Details

    • NodeEvaluator

      public NodeEvaluator()
  • Method Details

    • prepare

      public void prepare(PathNavigationRegion pLevel, Mob pMob)
    • done

      public void done()
    • getNode

      protected Node getNode(BlockPos pPos)
    • getNode

      protected Node getNode(int pX, int pY, int pZ)
      Returns a mapped point or creates and adds one
    • getStart

      public abstract Node getStart()
    • getTarget

      public abstract Target getTarget(double pX, double pY, double pZ)
    • getTargetNodeAt

      protected Target getTargetNodeAt(double pX, double pY, double pZ)
    • getNeighbors

      public abstract int getNeighbors(Node[] pOutputArray, Node pNode)
    • getPathTypeOfMob

      public abstract PathType getPathTypeOfMob(PathfindingContext pContext, int pX, int pY, int pZ, Mob pMob)
    • getPathType

      public abstract PathType getPathType(PathfindingContext pContext, int pX, int pY, int pZ)
    • getPathType

      public PathType getPathType(Mob pMob, BlockPos pPos)
    • setCanPassDoors

      public void setCanPassDoors(boolean pCanEnterDoors)
    • setCanOpenDoors

      public void setCanOpenDoors(boolean pCanOpenDoors)
    • setCanFloat

      public void setCanFloat(boolean pCanFloat)
    • setCanWalkOverFences

      public void setCanWalkOverFences(boolean pCanWalkOverFences)
    • canPassDoors

      public boolean canPassDoors()
    • canOpenDoors

      public boolean canOpenDoors()
    • canFloat

      public boolean canFloat()
    • canWalkOverFences

      public boolean canWalkOverFences()
    • isBurningBlock

      public static boolean isBurningBlock(BlockState pState)