Package net.minecraft.pathfinding
Class WalkNodeProcessor
java.lang.Object
net.minecraft.pathfinding.NodeProcessor
net.minecraft.pathfinding.WalkNodeProcessor
- Direct Known Subclasses:
FlyingNodeProcessor
,RavagerEntity.Processor
,WalkAndSwimNodeProcessor
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2BooleanMap<AxisAlignedBB>
protected float
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<PathNodeType>
Fields inherited from class net.minecraft.pathfinding.NodeProcessor
canFloat, canOpenDoors, canPassDoors, entityDepth, entityHeight, entityWidth, level, mob, nodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canReachWithoutCollision
(PathPoint p_237234_1_) static PathNodeType
checkNeighbourBlocks
(IBlockReader p_237232_0_, BlockPos.Mutable p_237232_1_, PathNodeType p_237232_2_) 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 PathNodeType
getBlockPathType
(MobEntity p_186329_1_, BlockPos p_186329_2_) getBlockPathType
(IBlockReader p_186330_1_, int p_186330_2_, int p_186330_3_, int p_186330_4_) getBlockPathType
(IBlockReader p_186319_1_, int p_186319_2_, int p_186319_3_, int p_186319_4_, MobEntity p_186319_5_, int p_186319_6_, int p_186319_7_, int p_186319_8_, boolean p_186319_9_, boolean p_186319_10_) protected static PathNodeType
getBlockPathTypeRaw
(IBlockReader p_237238_0_, BlockPos p_237238_1_) getBlockPathTypes
(IBlockReader p_193577_1_, int p_193577_2_, int p_193577_3_, int p_193577_4_, int p_193577_5_, int p_193577_6_, int p_193577_7_, boolean p_193577_8_, boolean p_193577_9_, EnumSet<PathNodeType> p_193577_10_, PathNodeType p_193577_11_, BlockPos p_193577_12_) static PathNodeType
getBlockPathTypeStatic
(IBlockReader p_237231_0_, BlockPos.Mutable p_237231_1_) private PathNodeType
getCachedBlockType
(MobEntity p_237230_1_, int p_237230_2_, int p_237230_3_, int p_237230_4_) static double
getFloorLevel
(IBlockReader p_197682_0_, BlockPos p_197682_1_) getGoal
(double p_224768_1_, double p_224768_3_, double p_224768_5_) private PathPoint
getLandNode
(int p_186332_1_, int p_186332_2_, int p_186332_3_, int p_186332_4_, double p_186332_5_, Direction p_186332_7_, PathNodeType p_186332_8_) int
getNeighbors
(PathPoint[] p_222859_1_, PathPoint p_222859_2_) getStart()
private boolean
hasCollisions
(AxisAlignedBB p_237236_1_) private boolean
hasPositiveMalus
(BlockPos p_237239_1_) private static boolean
isBurningBlock
(BlockState p_237233_0_) private boolean
isDiagonalValid
(PathPoint p_222860_1_, PathPoint p_222860_2_, PathPoint p_222860_3_, PathPoint p_222860_4_) private boolean
isNeighborValid
(PathPoint p_237235_1_, PathPoint p_237235_2_) void
Methods inherited from class net.minecraft.pathfinding.NodeProcessor
canFloat, canOpenDoors, canPassDoors, getNode, getNode, setCanFloat, setCanOpenDoors, setCanPassDoors
-
Field Details
-
oldWaterCost
protected float oldWaterCost -
pathTypesByPosCache
-
collisionCache
-
-
Constructor Details
-
WalkNodeProcessor
public WalkNodeProcessor()
-
-
Method Details
-
prepare
- Overrides:
prepare
in classNodeProcessor
-
done
public void done()- Overrides:
done
in classNodeProcessor
-
getStart
- Specified by:
getStart
in classNodeProcessor
-
hasPositiveMalus
-
getGoal
- Specified by:
getGoal
in classNodeProcessor
-
getNeighbors
- Specified by:
getNeighbors
in classNodeProcessor
-
isNeighborValid
-
isDiagonalValid
-
canReachWithoutCollision
-
getFloorLevel
-
getLandNode
@Nullable private PathPoint getLandNode(int p_186332_1_, int p_186332_2_, int p_186332_3_, int p_186332_4_, double p_186332_5_, Direction p_186332_7_, PathNodeType p_186332_8_) -
hasCollisions
-
getBlockPathType
public PathNodeType getBlockPathType(IBlockReader p_186319_1_, int p_186319_2_, int p_186319_3_, int p_186319_4_, MobEntity p_186319_5_, int p_186319_6_, int p_186319_7_, int p_186319_8_, boolean p_186319_9_, boolean p_186319_10_) - Specified by:
getBlockPathType
in classNodeProcessor
-
getBlockPathTypes
public PathNodeType getBlockPathTypes(IBlockReader p_193577_1_, int p_193577_2_, int p_193577_3_, int p_193577_4_, int p_193577_5_, int p_193577_6_, int p_193577_7_, boolean p_193577_8_, boolean p_193577_9_, EnumSet<PathNodeType> p_193577_10_, PathNodeType p_193577_11_, BlockPos p_193577_12_) -
evaluateBlockPathType
protected PathNodeType evaluateBlockPathType(IBlockReader p_215744_1_, boolean p_215744_2_, boolean p_215744_3_, BlockPos p_215744_4_, PathNodeType p_215744_5_) -
getBlockPathType
-
getCachedBlockType
private PathNodeType getCachedBlockType(MobEntity p_237230_1_, int p_237230_2_, int p_237230_3_, int p_237230_4_) -
getBlockPathType
public PathNodeType getBlockPathType(IBlockReader p_186330_1_, int p_186330_2_, int p_186330_3_, int p_186330_4_) - Specified by:
getBlockPathType
in classNodeProcessor
-
getBlockPathTypeStatic
public static PathNodeType getBlockPathTypeStatic(IBlockReader p_237231_0_, BlockPos.Mutable p_237231_1_) -
checkNeighbourBlocks
public static PathNodeType checkNeighbourBlocks(IBlockReader p_237232_0_, BlockPos.Mutable p_237232_1_, PathNodeType p_237232_2_) -
getBlockPathTypeRaw
-
isBurningBlock
-