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 p_77347_, Mob p_77348_)
    • done

      public void done()
    • getNode

      protected Node getNode(BlockPos p_77350_)
    • getNode

      protected Node getNode(int p_77325_, int p_77326_, int p_77327_)
    • getStart

      public abstract Node getStart()
    • getTarget

      public abstract Target getTarget(double p_326792_, double p_326849_, double p_326903_)
    • getTargetNodeAt

      protected Target getTargetNodeAt(double p_326819_, double p_326953_, double p_326931_)
    • getNeighbors

      public abstract int getNeighbors(Node[] p_77353_, Node p_77354_)
    • getPathTypeOfMob

      public abstract PathType getPathTypeOfMob(PathfindingContext p_330720_, int p_326783_, int p_326930_, int p_326884_, Mob p_326798_)
    • getPathType

      public abstract PathType getPathType(PathfindingContext p_330531_, int p_331795_, int p_332013_, int p_331675_)
    • getPathType

      public PathType getPathType(Mob p_331317_, BlockPos p_331263_)
    • setCanPassDoors

      public void setCanPassDoors(boolean p_77352_)
    • setCanOpenDoors

      public void setCanOpenDoors(boolean p_77356_)
    • setCanFloat

      public void setCanFloat(boolean p_77359_)
    • setCanWalkOverFences

      public void setCanWalkOverFences(boolean p_255862_)
    • canPassDoors

      public boolean canPassDoors()
    • canOpenDoors

      public boolean canOpenDoors()
    • canFloat

      public boolean canFloat()
    • canWalkOverFences

      public boolean canWalkOverFences()
    • isBurningBlock

      public static boolean isBurningBlock(BlockState p_326838_)