Class WalkNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.WalkNodeEvaluator
- Direct Known Subclasses:
- AmphibiousNodeEvaluator,- FlyNodeEvaluator
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2BooleanMap<AABB>private static final doubleprivate final it.unimi.dsi.fastutil.longs.Long2ObjectMap<BlockPathTypes>static final doubleFields inherited from class net.minecraft.world.level.pathfinder.NodeEvaluatorcanFloat, canOpenDoors, canPassDoors, canWalkOverFences, entityDepth, entityHeight, entityWidth, level, mob, nodes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate booleancanReachWithoutCollision(Node p_77625_) protected booleancanStartAt(BlockPos p_262596_) static BlockPathTypescheckNeighbourBlocks(BlockGetter p_77608_, BlockPos.MutableBlockPos p_77609_, BlockPathTypes p_77610_) private static booleandoesBlockHavePartialCollision(BlockPathTypes p_230626_) voiddone()protected BlockPathTypesevaluateBlockPathType(BlockGetter p_265305_, BlockPos p_265350_, BlockPathTypes p_265551_) protected NodefindAcceptedNode(int p_164726_, int p_164727_, int p_164728_, int p_164729_, double p_164730_, Direction p_164731_, BlockPathTypes p_164732_) private NodegetBlockedNode(int p_230628_, int p_230629_, int p_230630_) protected BlockPathTypesgetBlockPathType(Mob p_77573_, BlockPos p_77574_) getBlockPathType(BlockGetter p_77576_, int p_77577_, int p_77578_, int p_77579_) getBlockPathType(BlockGetter p_265141_, int p_265661_, int p_265757_, int p_265716_, Mob p_265398_) protected static BlockPathTypesgetBlockPathTypeRaw(BlockGetter p_77644_, BlockPos p_77645_) getBlockPathTypes(BlockGetter p_265227_, int p_265066_, int p_265537_, int p_265771_, EnumSet<BlockPathTypes> p_265263_, BlockPathTypes p_265458_, BlockPos p_265515_) static BlockPathTypesgetBlockPathTypeStatic(BlockGetter p_77605_, BlockPos.MutableBlockPos p_77606_) protected BlockPathTypesgetCachedBlockType(Mob p_77568_, int p_77569_, int p_77570_, int p_77571_) protected doublegetFloorLevel(BlockPos p_164733_) static doublegetFloorLevel(BlockGetter p_77612_, BlockPos p_77613_) getGoal(double p_77550_, double p_77551_, double p_77552_) private doubleintgetNeighbors(Node[] p_77640_, Node p_77641_) private NodegetNodeAndUpdateCostToMax(int p_230620_, int p_230621_, int p_230622_, BlockPathTypes p_230623_, float p_230624_) getStart()protected NodegetStartNode(BlockPos p_230632_) private booleanhasCollisions(AABB p_77635_) protected booleanstatic booleanisBurningBlock(BlockState p_77623_) protected booleanisDiagonalValid(Node p_77630_, Node p_77631_, Node p_77632_, Node p_77633_) protected booleanisNeighborValid(Node p_77627_, Node p_77628_) voidprepare(PathNavigationRegion p_77620_, Mob p_77621_) Methods inherited from class net.minecraft.world.level.pathfinder.NodeEvaluatorcanFloat, canOpenDoors, canPassDoors, canWalkOverFences, getNode, getNode, getTargetFromNode, setCanFloat, setCanOpenDoors, setCanPassDoors, setCanWalkOverFences
- 
Field Details- 
SPACE_BETWEEN_WALL_POSTSpublic static final double SPACE_BETWEEN_WALL_POSTS- See Also:
 
- 
DEFAULT_MOB_JUMP_HEIGHTprivate static final double DEFAULT_MOB_JUMP_HEIGHT- See Also:
 
- 
pathTypesByPosCache
- 
collisionCache
 
- 
- 
Constructor Details- 
WalkNodeEvaluatorpublic WalkNodeEvaluator()
 
- 
- 
Method Details
- 
donepublic void done()- Overrides:
- donein class- NodeEvaluator
 
- 
getStart- Specified by:
- getStartin class- NodeEvaluator
 
- 
getStartNode
- 
canStartAt
- 
getGoal- Specified by:
- getGoalin class- NodeEvaluator
 
- 
getNeighbors- Specified by:
- getNeighborsin class- NodeEvaluator
 
- 
isNeighborValid
- 
isDiagonalValid
- 
doesBlockHavePartialCollision
- 
canReachWithoutCollision
- 
getFloorLevel
- 
getFloorLevel
- 
isAmphibiousprotected boolean isAmphibious()
- 
findAcceptedNode@Nullable protected Node findAcceptedNode(int p_164726_, int p_164727_, int p_164728_, int p_164729_, double p_164730_, Direction p_164731_, BlockPathTypes p_164732_) 
- 
getMobJumpHeightprivate double getMobJumpHeight()
- 
getNodeAndUpdateCostToMaxprivate Node getNodeAndUpdateCostToMax(int p_230620_, int p_230621_, int p_230622_, BlockPathTypes p_230623_, float p_230624_) 
- 
getBlockedNode
- 
hasCollisions
- 
getBlockPathTypepublic BlockPathTypes getBlockPathType(BlockGetter p_265141_, int p_265661_, int p_265757_, int p_265716_, Mob p_265398_) - Specified by:
- getBlockPathTypein class- NodeEvaluator
 
- 
getBlockPathTypespublic BlockPathTypes getBlockPathTypes(BlockGetter p_265227_, int p_265066_, int p_265537_, int p_265771_, EnumSet<BlockPathTypes> p_265263_, BlockPathTypes p_265458_, BlockPos p_265515_) 
- 
evaluateBlockPathTypeprotected BlockPathTypes evaluateBlockPathType(BlockGetter p_265305_, BlockPos p_265350_, BlockPathTypes p_265551_) 
- 
getBlockPathType
- 
getCachedBlockType
- 
getBlockPathTypepublic BlockPathTypes getBlockPathType(BlockGetter p_77576_, int p_77577_, int p_77578_, int p_77579_) - Specified by:
- getBlockPathTypein class- NodeEvaluator
 
- 
getBlockPathTypeStaticpublic static BlockPathTypes getBlockPathTypeStatic(BlockGetter p_77605_, BlockPos.MutableBlockPos p_77606_) 
- 
checkNeighbourBlockspublic static BlockPathTypes checkNeighbourBlocks(BlockGetter p_77608_, BlockPos.MutableBlockPos p_77609_, BlockPathTypes p_77610_) 
- 
getBlockPathTypeRaw
- 
isBurningBlock