Class NodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
- Direct Known Subclasses:
SwimNodeEvaluator,WalkNodeEvaluator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected intprotected intprotected intprotected PathNavigationRegionprotected Mobprotected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<Node> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanFloat()booleanbooleanvoiddone()abstract BlockPathTypesgetBlockPathType(BlockGetter p_77333_, int p_77334_, int p_77335_, int p_77336_) abstract BlockPathTypesgetBlockPathType(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 TargetgetGoal(double p_77322_, double p_77323_, double p_77324_) abstract intgetNeighbors(Node[] p_77353_, Node p_77354_) protected NodegetNode(int p_77325_, int p_77326_, int p_77327_) protected Nodeabstract NodegetStart()voidprepare(PathNavigationRegion p_77347_, Mob p_77348_) voidsetCanFloat(boolean p_77359_) voidsetCanOpenDoors(boolean p_77356_) voidsetCanPassDoors(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
-
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()