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
<PathType> Fields inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, canWalkOverFences, currentContext, entityDepth, entityHeight, entityWidth, mob, nodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
done()
protected Node
findAcceptedNode
(int p_263032_, int p_263066_, int p_263105_) protected PathType
getCachedBlockType
(int p_192968_, int p_192969_, int p_192970_) int
getNeighbors
(Node[] p_77483_, Node p_77484_) getPathType
(PathfindingContext p_333668_, int p_333001_, int p_328513_, int p_333109_) getPathTypeOfMob
(PathfindingContext p_327815_, int p_334955_, int p_333227_, int p_331057_, Mob p_333533_) getStart()
getTarget
(double p_331212_, double p_329065_, double p_336263_) private static boolean
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, canWalkOverFences, getNode, getNode, getPathType, getTargetNodeAt, isBurningBlock, setCanFloat, setCanOpenDoors, setCanPassDoors, setCanWalkOverFences
-
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
-
getTarget
- Specified by:
getTarget
in classNodeEvaluator
-
getNeighbors
- Specified by:
getNeighbors
in classNodeEvaluator
-
isNodeValid
-
hasMalus
-
findAcceptedNode
-
getCachedBlockType
-
getPathType
public PathType getPathType(PathfindingContext p_333668_, int p_333001_, int p_328513_, int p_333109_) - Specified by:
getPathType
in classNodeEvaluator
-
getPathTypeOfMob
public PathType getPathTypeOfMob(PathfindingContext p_327815_, int p_334955_, int p_333227_, int p_331057_, Mob p_333533_) - Specified by:
getPathTypeOfMob
in classNodeEvaluator