Package net.minecraft.pathfinding
Class WalkAndSwimNodeProcessor
- java.lang.Object
-
- net.minecraft.pathfinding.NodeProcessor
-
- net.minecraft.pathfinding.WalkNodeProcessor
-
- net.minecraft.pathfinding.WalkAndSwimNodeProcessor
-
public class WalkAndSwimNodeProcessor extends WalkNodeProcessor
-
-
Field Summary
Fields Modifier and Type Field Description private float
oldWalkableCost
private float
oldWaterBorderCost
-
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
Constructors Constructor Description WalkAndSwimNodeProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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_)
PathNodeType
getBlockPathType(IBlockReader p_186330_1_, int p_186330_2_, int p_186330_3_, int p_186330_4_)
FlaggedPathPoint
getGoal(double p_224768_1_, double p_224768_3_, double p_224768_5_)
int
getNeighbors(PathPoint[] p_222859_1_, PathPoint p_222859_2_)
PathPoint
getStart()
private double
inWaterDependentPosHeight(BlockPos p_203246_1_)
void
prepare(Region p_225578_1_, MobEntity p_225578_2_)
-
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
-
-
-
-
Method Detail
-
prepare
public void prepare(Region p_225578_1_, MobEntity p_225578_2_)
- Overrides:
prepare
in classWalkNodeProcessor
-
done
public void done()
- Overrides:
done
in classWalkNodeProcessor
-
getStart
public PathPoint getStart()
- Overrides:
getStart
in classWalkNodeProcessor
-
getGoal
public FlaggedPathPoint getGoal(double p_224768_1_, double p_224768_3_, double p_224768_5_)
- Overrides:
getGoal
in classWalkNodeProcessor
-
getNeighbors
public int getNeighbors(PathPoint[] p_222859_1_, PathPoint p_222859_2_)
- Overrides:
getNeighbors
in classWalkNodeProcessor
-
inWaterDependentPosHeight
private double inWaterDependentPosHeight(BlockPos p_203246_1_)
-
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
-
-