Class AmphibiousNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.WalkNodeEvaluator
net.minecraft.world.level.pathfinder.AmphibiousNodeEvaluator
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private float
private final boolean
Fields inherited from class net.minecraft.world.level.pathfinder.WalkNodeEvaluator
oldWaterCost, SPACE_BETWEEN_WALL_POSTS
Fields inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, entityDepth, entityHeight, entityWidth, level, mob, nodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
done()
getBlockPathType
(BlockGetter p_164666_, int p_164667_, int p_164668_, int p_164669_) protected double
getFloorLevel
(BlockPos p_164674_) getGoal
(double p_164662_, double p_164663_, double p_164664_) int
getNeighbors
(Node[] p_164676_, Node p_164677_) getStart()
protected boolean
void
prepare
(PathNavigationRegion p_164671_, Mob p_164672_) Methods inherited from class net.minecraft.world.level.pathfinder.WalkNodeEvaluator
checkNeighbourBlocks, evaluateBlockPathType, findAcceptedNode, getBlockPathType, getBlockPathTypeRaw, getBlockPathTypes, getBlockPathTypeStatic, getCachedBlockType, getFloorLevel, isBurningBlock, isDiagonalValid, isNeighborValid
Methods inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, getNode, getNode, setCanFloat, setCanOpenDoors, setCanPassDoors
-
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
-
getGoal
- Overrides:
getGoal
in classWalkNodeEvaluator
-
getNeighbors
- Overrides:
getNeighbors
in classWalkNodeEvaluator
-
getFloorLevel
- Overrides:
getFloorLevel
in classWalkNodeEvaluator
-
isAmphibious
protected boolean isAmphibious()- Overrides:
isAmphibious
in classWalkNodeEvaluator
-
getBlockPathType
public BlockPathTypes getBlockPathType(BlockGetter p_164666_, int p_164667_, int p_164668_, int p_164669_) - Overrides:
getBlockPathType
in classWalkNodeEvaluator