Class SwimNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.SwimNodeEvaluator
-
Field Summary
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
done()
protected Node
findAcceptedNode
(int x, int y, int z) protected PathType
getCachedBlockType
(int x, int y, int z) int
getNeighbors
(Node[] outputArray, Node p_node) getPathType
(PathfindingContext context, int x, int y, int z) getPathTypeOfMob
(PathfindingContext context, int x, int y, int z, Mob mob) getStart()
getTarget
(double x, double y, double z) private static boolean
protected boolean
isNodeValid
(Node node) void
prepare
(PathNavigationRegion level, Mob mob) 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 allowBreaching)
-
-
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
- Specified by:
getPathType
in classNodeEvaluator
-
getPathTypeOfMob
- Specified by:
getPathTypeOfMob
in classNodeEvaluator