Class AmphibiousNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.WalkNodeEvaluator
net.minecraft.world.level.pathfinder.AmphibiousNodeEvaluator
- Direct Known Subclasses:
Frog.FrogNodeEvaluator
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private float
private final boolean
Fields inherited from class net.minecraft.world.level.pathfinder.WalkNodeEvaluator
SPACE_BETWEEN_WALL_POSTS
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()
int
getNeighbors
(Node[] p_164676_, Node p_164677_) getPathType
(PathfindingContext p_336213_, int p_329171_, int p_336028_, int p_327966_) getStart()
getTarget
(double p_330100_, double p_334194_, double p_330998_) protected boolean
private boolean
isVerticalNeighborValid
(Node p_230611_, Node p_230612_) void
prepare
(PathNavigationRegion p_164671_, Mob p_164672_) Methods inherited from class net.minecraft.world.level.pathfinder.WalkNodeEvaluator
canStartAt, checkNeighbourBlocks, findAcceptedNode, getCachedPathType, getFloorLevel, getFloorLevel, getPathTypeFromState, getPathTypeOfMob, getPathTypeStatic, getPathTypeStatic, getPathTypeWithinMobBB, getStartNode, isDiagonalValid, isDiagonalValid, isNeighborValid
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
-
prefersShallowSwimming
private final boolean prefersShallowSwimming -
oldWalkableCost
private float oldWalkableCost -
oldWaterBorderCost
private float oldWaterBorderCost
-
-
Constructor Details
-
AmphibiousNodeEvaluator
public AmphibiousNodeEvaluator(boolean p_164659_)
-
-
Method Details
-
done
public void done()- Overrides:
done
in classWalkNodeEvaluator
-
getStart
- Overrides:
getStart
in classWalkNodeEvaluator
-
getTarget
- Overrides:
getTarget
in classWalkNodeEvaluator
-
getNeighbors
- Overrides:
getNeighbors
in classWalkNodeEvaluator
-
isVerticalNeighborValid
-
isAmphibious
protected boolean isAmphibious()- Overrides:
isAmphibious
in classWalkNodeEvaluator
-
getPathType
public PathType getPathType(PathfindingContext p_336213_, int p_329171_, int p_336028_, int p_327966_) - Overrides:
getPathType
in classWalkNodeEvaluator