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 pX, int pY, int pZ) protected PathType
getCachedBlockType
(int pX, int pY, int pZ) int
getNeighbors
(Node[] pOutputArray, Node pNode) getPathType
(PathfindingContext pContext, int pX, int pY, int pZ) getPathTypeOfMob
(PathfindingContext pContext, int pX, int pY, int pZ, Mob pMob) getStart()
getTarget
(double pX, double pY, double pZ) private static boolean
protected boolean
isNodeValid
(Node pNode) void
prepare
(PathNavigationRegion pLevel, Mob pMob) 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 pAllowBreaching)
-
-
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