Class NodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
- Direct Known Subclasses:
SwimNodeEvaluator,WalkNodeEvaluator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected PathfindingContextprotected intprotected intprotected intprotected Mobprotected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<Node> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanFloat()booleanbooleanbooleanvoiddone()abstract intgetNeighbors(Node[] p_77353_, Node p_77354_) protected NodegetNode(int p_77325_, int p_77326_, int p_77327_) protected NodegetPathType(Mob p_331317_, BlockPos p_331263_) abstract PathTypegetPathType(PathfindingContext p_330531_, int p_331795_, int p_332013_, int p_331675_) abstract PathTypegetPathTypeOfMob(PathfindingContext p_330720_, int p_326783_, int p_326930_, int p_326884_, Mob p_326798_) abstract NodegetStart()abstract TargetgetTarget(double p_326792_, double p_326849_, double p_326903_) protected TargetgetTargetNodeAt(double p_326819_, double p_326953_, double p_326931_) static booleanisBurningBlock(BlockState p_326838_) voidprepare(PathNavigationRegion p_77347_, Mob p_77348_) voidsetCanFloat(boolean p_77359_) voidsetCanOpenDoors(boolean p_77356_) voidsetCanPassDoors(boolean p_77352_) voidsetCanWalkOverFences(boolean p_255862_)
-
Field Details
-
currentContext
-
mob
-
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
-
done
public void done() -
getNode
-
getNode
-
getStart
-
getTarget
-
getTargetNodeAt
-
getNeighbors
-
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
-
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