Class NodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
- Direct Known Subclasses:
SwimNodeEvaluator
,WalkNodeEvaluator
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected boolean
protected PathfindingContext
protected int
protected int
protected int
protected Mob
protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<Node> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canFloat()
boolean
boolean
boolean
void
done()
abstract int
getNeighbors
(Node[] p_77353_, Node p_77354_) protected Node
getNode
(int p_77325_, int p_77326_, int p_77327_) protected Node
getPathType
(Mob p_331317_, BlockPos p_331263_) abstract PathType
getPathType
(PathfindingContext p_330531_, int p_331795_, int p_332013_, int p_331675_) abstract PathType
getPathTypeOfMob
(PathfindingContext p_330720_, int p_326783_, int p_326930_, int p_326884_, Mob p_326798_) abstract Node
getStart()
abstract Target
getTarget
(double p_326792_, double p_326849_, double p_326903_) protected Target
getTargetNodeAt
(double p_326819_, double p_326953_, double p_326931_) static boolean
isBurningBlock
(BlockState p_326838_) void
prepare
(PathNavigationRegion p_77347_, Mob p_77348_) void
setCanFloat
(boolean p_77359_) void
setCanOpenDoors
(boolean p_77356_) void
setCanPassDoors
(boolean p_77352_) void
setCanWalkOverFences
(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