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 p_263032_, int p_263066_, int p_263105_) protected PathTypegetCachedBlockType(int p_192968_, int p_192969_, int p_192970_) intgetNeighbors(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 booleanprotected booleanisNodeValid(Node p_192962_) voidprepare(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:
donein classNodeEvaluator
-
getStart
- Specified by:
getStartin classNodeEvaluator
-
getTarget
- Specified by:
getTargetin classNodeEvaluator
-
getNeighbors
- Specified by:
getNeighborsin classNodeEvaluator
-
isNodeValid
-
hasMalus
-
findAcceptedNode
-
getCachedBlockType
-
getPathType
public PathType getPathType(PathfindingContext p_330490_, int p_326812_, int p_326835_, int p_326945_) - Specified by:
getPathTypein classNodeEvaluator
-
getPathTypeOfMob
public PathType getPathTypeOfMob(PathfindingContext p_330584_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_) - Specified by:
getPathTypeOfMobin classNodeEvaluator