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_330490_, int p_326812_, int p_326835_, int p_326945_) getPathTypeOfMob
(PathfindingContext p_330584_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_) getStart()
getTarget
(double p_326917_, double p_326806_, double p_326896_) 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_330490_, int p_326812_, int p_326835_, int p_326945_) - Specified by:
getPathType
in classNodeEvaluator
-
getPathTypeOfMob
public PathType getPathTypeOfMob(PathfindingContext p_330584_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_) - Specified by:
getPathTypeOfMob
in classNodeEvaluator