Class SwimNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.SwimNodeEvaluator
-
Field Summary
Fields inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, entityDepth, entityHeight, entityWidth, level, mob, nodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockPathType(BlockGetter p_77467_, int p_77468_, int p_77469_, int p_77470_)
getBlockPathType(BlockGetter p_77472_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_, int p_77477_, int p_77478_, int p_77479_, boolean p_77480_, boolean p_77481_)
getGoal(double p_77459_, double p_77460_, double p_77461_)
int
getNeighbors(Node[] p_77483_, Node p_77484_)
protected Node
getNode(int p_77463_, int p_77464_, int p_77465_)
getStart()
private Node
getWaterNode(int p_77487_, int p_77488_, int p_77489_)
private BlockPathTypes
isFree(int p_77491_, int p_77492_, int p_77493_)
Methods inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, done, getNode, prepare, setCanFloat, setCanOpenDoors, setCanPassDoors
-
Field Details
-
allowBreaching
private final boolean allowBreaching
-
-
Constructor Details
-
SwimNodeEvaluator
public SwimNodeEvaluator(boolean p_77457_)
-
-
Method Details
-
getStart
- Specified by:
getStart
in classNodeEvaluator
-
getGoal
- Specified by:
getGoal
in classNodeEvaluator
-
getNeighbors
- Specified by:
getNeighbors
in classNodeEvaluator
-
getBlockPathType
public BlockPathTypes getBlockPathType(BlockGetter p_77472_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_, int p_77477_, int p_77478_, int p_77479_, boolean p_77480_, boolean p_77481_)- Specified by:
getBlockPathType
in classNodeEvaluator
-
getBlockPathType
public BlockPathTypes getBlockPathType(BlockGetter p_77467_, int p_77468_, int p_77469_, int p_77470_)- Specified by:
getBlockPathType
in classNodeEvaluator
-
getWaterNode
-
getNode
- Overrides:
getNode
in classNodeEvaluator
-
isFree
-