Class SwimNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.SwimNodeEvaluator
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<BlockPathTypes>
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 TypeMethodDescriptionvoid
done()
getBlockPathType
(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_) protected BlockPathTypes
getCachedBlockType
(int p_192968_, int p_192969_, int p_192970_) 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()
protected boolean
isDiagonalNodeValid
(Node p_192964_, Node p_192965_, Node p_192966_) protected boolean
isNodeValid
(Node p_192962_) void
prepare
(PathNavigationRegion p_192959_, Mob p_192960_) Methods inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, getNode, getTargetFromNode, setCanFloat, setCanOpenDoors, setCanPassDoors
-
Field Details
-
allowBreaching
private final boolean allowBreaching -
pathTypesByPosCache
-
-
Constructor Details
-
SwimNodeEvaluator
public SwimNodeEvaluator(boolean p_77457_)
-
-
Method Details
-
done
public void done()- Overrides:
done
in classNodeEvaluator
-
getStart
- Specified by:
getStart
in classNodeEvaluator
-
getGoal
- Specified by:
getGoal
in classNodeEvaluator
-
getNeighbors
- Specified by:
getNeighbors
in classNodeEvaluator
-
isNodeValid
-
isDiagonalNodeValid
-
getNode
- Overrides:
getNode
in classNodeEvaluator
-
getCachedBlockType
-
getBlockPathType
public BlockPathTypes getBlockPathType(BlockGetter p_77467_, int p_77468_, int p_77469_, int p_77470_) - Specified by:
getBlockPathType
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