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 x, int y, int z) protected PathTypegetCachedBlockType(int x, int y, int z) intgetNeighbors(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 booleanprotected booleanisNodeValid(Node node) voidprepare(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:
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