Class FlyNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.WalkNodeEvaluator
net.minecraft.world.level.pathfinder.FlyNodeEvaluator
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap
<PathType> private static final float
private static final float
Fields inherited from class net.minecraft.world.level.pathfinder.WalkNodeEvaluator
SPACE_BETWEEN_WALL_POSTS
Fields inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, canWalkOverFences, currentContext, entityDepth, entityHeight, entityWidth, mob, nodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStartAt
(BlockPos p_262645_) void
done()
protected Node
findAcceptedNode
(int p_262970_, int p_263018_, int p_262947_) protected PathType
getCachedPathType
(int p_332812_, int p_330135_, int p_330816_) int
getNeighbors
(Node[] p_77266_, Node p_77267_) getPathType
(PathfindingContext p_333778_, int p_332501_, int p_330191_, int p_335791_) getStart()
getTarget
(double p_328296_, double p_329795_, double p_334015_) private boolean
private boolean
iteratePathfindingStartNodeCandidatePositions
(Mob p_263108_) void
prepare
(PathNavigationRegion p_77261_, Mob p_77262_) Methods inherited from class net.minecraft.world.level.pathfinder.WalkNodeEvaluator
checkNeighbourBlocks, findAcceptedNode, getFloorLevel, getFloorLevel, getPathTypeFromState, getPathTypeOfMob, getPathTypeStatic, getPathTypeStatic, getPathTypeWithinMobBB, getStartNode, isAmphibious, isDiagonalValid, isDiagonalValid, isNeighborValid
Methods inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, canWalkOverFences, getNode, getNode, getPathType, getTargetNodeAt, isBurningBlock, setCanFloat, setCanOpenDoors, setCanPassDoors, setCanWalkOverFences
-
Field Details
-
pathTypeByPosCache
-
SMALL_MOB_SIZE
private static final float SMALL_MOB_SIZE- See Also:
-
SMALL_MOB_INFLATED_START_NODE_BOUNDING_BOX
private static final float SMALL_MOB_INFLATED_START_NODE_BOUNDING_BOX- See Also:
-
MAX_START_NODE_CANDIDATES
private static final int MAX_START_NODE_CANDIDATES- See Also:
-
-
Constructor Details
-
FlyNodeEvaluator
public FlyNodeEvaluator()
-
-
Method Details
-
done
public void done()- Overrides:
done
in classWalkNodeEvaluator
-
getStart
- Overrides:
getStart
in classWalkNodeEvaluator
-
canStartAt
- Overrides:
canStartAt
in classWalkNodeEvaluator
-
getTarget
- Overrides:
getTarget
in classWalkNodeEvaluator
-
getNeighbors
- Overrides:
getNeighbors
in classWalkNodeEvaluator
-
hasMalus
-
isOpen
-
findAcceptedNode
-
getCachedPathType
- Overrides:
getCachedPathType
in classWalkNodeEvaluator
-
getPathType
public PathType getPathType(PathfindingContext p_333778_, int p_332501_, int p_330191_, int p_335791_) - Overrides:
getPathType
in classWalkNodeEvaluator
-
iteratePathfindingStartNodeCandidatePositions