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_330121_, BlockPos p_332460_) abstract PathType
getPathType
(PathfindingContext p_334172_, int p_335319_, int p_333029_, int p_332756_) abstract PathType
getPathTypeOfMob
(PathfindingContext p_335888_, int p_331986_, int p_331764_, int p_335132_, Mob p_329853_) abstract Node
getStart()
abstract Target
getTarget
(double p_336317_, double p_334044_, double p_334139_) protected Target
getTargetNodeAt
(double p_328825_, double p_331532_, double p_333874_) static boolean
isBurningBlock
(BlockState p_329628_) 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_335888_, int p_331986_, int p_331764_, int p_335132_, Mob p_329853_) -
getPathType
public abstract PathType getPathType(PathfindingContext p_334172_, int p_335319_, int p_333029_, int p_332756_) -
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