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
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2BooleanMap<AxisAlignedBB>protected floatprivate 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancanReachWithoutCollision(PathPoint p_237234_1_) static PathNodeTypecheckNeighbourBlocks(IBlockReader p_237232_0_, BlockPos.Mutable p_237232_1_, PathNodeType p_237232_2_) voiddone()protected PathNodeTypeevaluateBlockPathType(IBlockReader p_215744_1_, boolean p_215744_2_, boolean p_215744_3_, BlockPos p_215744_4_, PathNodeType p_215744_5_) private PathNodeTypegetBlockPathType(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 PathNodeTypegetBlockPathTypeRaw(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 PathNodeTypegetBlockPathTypeStatic(IBlockReader p_237231_0_, BlockPos.Mutable p_237231_1_) private PathNodeTypegetCachedBlockType(MobEntity p_237230_1_, int p_237230_2_, int p_237230_3_, int p_237230_4_) static doublegetFloorLevel(IBlockReader p_197682_0_, BlockPos p_197682_1_) getGoal(double p_224768_1_, double p_224768_3_, double p_224768_5_) private PathPointgetLandNode(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_) intgetNeighbors(PathPoint[] p_222859_1_, PathPoint p_222859_2_) getStart()private booleanhasCollisions(AxisAlignedBB p_237236_1_) private booleanhasPositiveMalus(BlockPos p_237239_1_) private static booleanisBurningBlock(BlockState p_237233_0_) private booleanisDiagonalValid(PathPoint p_222860_1_, PathPoint p_222860_2_, PathPoint p_222860_3_, PathPoint p_222860_4_) private booleanisNeighborValid(PathPoint p_237235_1_, PathPoint p_237235_2_) voidMethods 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:
preparein classNodeProcessor
-
done
public void done()- Overrides:
donein classNodeProcessor
-
getStart
- Specified by:
getStartin classNodeProcessor
-
hasPositiveMalus
-
getGoal
- Specified by:
getGoalin classNodeProcessor
-
getNeighbors
- Specified by:
getNeighborsin 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:
getBlockPathTypein 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:
getBlockPathTypein 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
-