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 int
protected int
protected int
protected PathNavigationRegion
protected Mob
protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<Node>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canFloat()
boolean
boolean
void
done()
abstract BlockPathTypes
getBlockPathType
(BlockGetter p_77333_, int p_77334_, int p_77335_, int p_77336_) abstract BlockPathTypes
getBlockPathType
(BlockGetter p_77337_, int p_77338_, int p_77339_, int p_77340_, Mob p_77341_, int p_77342_, int p_77343_, int p_77344_, boolean p_77345_, boolean p_77346_) abstract Target
getGoal
(double p_77322_, double p_77323_, double p_77324_) abstract int
getNeighbors
(Node[] p_77353_, Node p_77354_) protected Node
getNode
(int p_77325_, int p_77326_, int p_77327_) protected Node
abstract Node
getStart()
protected Target
getTargetFromNode
(Node p_230616_) void
prepare
(PathNavigationRegion p_77347_, Mob p_77348_) void
setCanFloat
(boolean p_77359_) void
setCanOpenDoors
(boolean p_77356_) void
setCanPassDoors
(boolean p_77352_)
-
Field Details
-
level
-
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
-
-
Constructor Details
-
NodeEvaluator
public NodeEvaluator()
-
-
Method Details
-
done
public void done() -
getNode
-
getNode
-
getStart
-
getGoal
-
getTargetFromNode
-
getNeighbors
-
getBlockPathType
public abstract BlockPathTypes getBlockPathType(BlockGetter p_77337_, int p_77338_, int p_77339_, int p_77340_, Mob p_77341_, int p_77342_, int p_77343_, int p_77344_, boolean p_77345_, boolean p_77346_) -
getBlockPathType
public abstract BlockPathTypes getBlockPathType(BlockGetter p_77333_, int p_77334_, int p_77335_, int p_77336_) -
setCanPassDoors
public void setCanPassDoors(boolean p_77352_) -
setCanOpenDoors
public void setCanOpenDoors(boolean p_77356_) -
setCanFloat
public void setCanFloat(boolean p_77359_) -
canPassDoors
public boolean canPassDoors() -
canOpenDoors
public boolean canOpenDoors() -
canFloat
public boolean canFloat()