Class SwimNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.SwimNodeEvaluator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate 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 TypeMethodDescriptionvoiddone()protected NodefindAcceptedNode(int pX, int pY, int pZ) protected PathTypegetCachedBlockType(int pX, int pY, int pZ) intgetNeighbors(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 booleanprotected booleanisNodeValid(Node pNode) voidprepare(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:
donein classNodeEvaluator
-
getStart
- Specified by:
getStartin classNodeEvaluator
-
getTarget
- Specified by:
getTargetin classNodeEvaluator
-
getNeighbors
- Specified by:
getNeighborsin classNodeEvaluator
-
isNodeValid
-
hasMalus
-
findAcceptedNode
-
getCachedBlockType
-
getPathType
- Specified by:
getPathTypein classNodeEvaluator
-
getPathTypeOfMob
- Specified by:
getPathTypeOfMobin classNodeEvaluator