Package net.minecraft.pathfinding
Class WalkAndSwimNodeProcessor
java.lang.Object
net.minecraft.pathfinding.NodeProcessor
net.minecraft.pathfinding.WalkNodeProcessor
net.minecraft.pathfinding.WalkAndSwimNodeProcessor
-
Field Summary
Fields inherited from class net.minecraft.pathfinding.WalkNodeProcessor
oldWaterCost
Fields inherited from class net.minecraft.pathfinding.NodeProcessor
canFloat, canOpenDoors, canPassDoors, entityDepth, entityHeight, entityWidth, level, mob, nodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
done()
protected PathNodeType
evaluateBlockPathType
(IBlockReader p_215744_1_, boolean p_215744_2_, boolean p_215744_3_, BlockPos p_215744_4_, PathNodeType p_215744_5_) private PathPoint
getAcceptedNode
(int p_203245_1_, int p_203245_2_, int p_203245_3_, int p_203245_4_, double p_203245_5_) getBlockPathType
(IBlockReader p_186330_1_, int p_186330_2_, int p_186330_3_, int p_186330_4_) getGoal
(double p_224768_1_, double p_224768_3_, double p_224768_5_) int
getNeighbors
(PathPoint[] p_222859_1_, PathPoint p_222859_2_) getStart()
private double
inWaterDependentPosHeight
(BlockPos p_203246_1_) void
Methods inherited from class net.minecraft.pathfinding.WalkNodeProcessor
checkNeighbourBlocks, getBlockPathType, getBlockPathTypeRaw, getBlockPathTypes, getBlockPathTypeStatic, getFloorLevel
Methods inherited from class net.minecraft.pathfinding.NodeProcessor
canFloat, canOpenDoors, canPassDoors, getNode, getNode, setCanFloat, setCanOpenDoors, setCanPassDoors
-
Field Details
-
oldWalkableCost
private float oldWalkableCost -
oldWaterBorderCost
private float oldWaterBorderCost
-
-
Constructor Details
-
WalkAndSwimNodeProcessor
public WalkAndSwimNodeProcessor()
-
-
Method Details
-
prepare
- Overrides:
prepare
in classWalkNodeProcessor
-
done
public void done()- Overrides:
done
in classWalkNodeProcessor
-
getStart
- Overrides:
getStart
in classWalkNodeProcessor
-
getGoal
- Overrides:
getGoal
in classWalkNodeProcessor
-
getNeighbors
- Overrides:
getNeighbors
in classWalkNodeProcessor
-
inWaterDependentPosHeight
-
getAcceptedNode
@Nullable private PathPoint getAcceptedNode(int p_203245_1_, int p_203245_2_, int p_203245_3_, int p_203245_4_, double p_203245_5_) -
evaluateBlockPathType
protected PathNodeType evaluateBlockPathType(IBlockReader p_215744_1_, boolean p_215744_2_, boolean p_215744_3_, BlockPos p_215744_4_, PathNodeType p_215744_5_) - Overrides:
evaluateBlockPathType
in classWalkNodeProcessor
-
getBlockPathType
public PathNodeType getBlockPathType(IBlockReader p_186330_1_, int p_186330_2_, int p_186330_3_, int p_186330_4_) - Overrides:
getBlockPathType
in classWalkNodeProcessor
-