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
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final it.unimi.dsi.fastutil.longs.Long2ObjectMap<PathType> private static final floatprivate static final floatFields inherited from class WalkNodeEvaluator
SPACE_BETWEEN_WALL_POSTSFields inherited from class NodeEvaluator
canFloat, canOpenDoors, canPassDoors, canWalkOverFences, currentContext, entityDepth, entityHeight, entityWidth, mob, nodes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStartAt(BlockPos pos) voiddone()protected @Nullable NodefindAcceptedNode(int x, int y, int z) protected PathTypegetCachedPathType(int x, int y, int z) intgetNeighbors(Node[] neighbors, Node pos) getPathType(PathfindingContext context, int x, int y, int z) getStart()getTarget(double x, double y, double z) private booleanprivate booleanvoidprepare(PathNavigationRegion level, Mob entity) Methods inherited from class WalkNodeEvaluator
checkNeighbourBlocks, findAcceptedNode, getFloorLevel, getFloorLevel, getPathTypeFromState, getPathTypeOfMob, getPathTypeStatic, getPathTypeStatic, getPathTypeWithinMobBB, getStartNode, isAmphibious, isDiagonalValid, isDiagonalValid, isNeighborValidMethods inherited from class 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:
donein classWalkNodeEvaluator
-
getStart
- Overrides:
getStartin classWalkNodeEvaluator
-
canStartAt
- Overrides:
canStartAtin classWalkNodeEvaluator
-
getTarget
- Overrides:
getTargetin classWalkNodeEvaluator
-
getNeighbors
- Overrides:
getNeighborsin classWalkNodeEvaluator
-
hasMalus
-
isOpen
-
findAcceptedNode
-
getCachedPathType
- Overrides:
getCachedPathTypein classWalkNodeEvaluator
-
getPathType
- Overrides:
getPathTypein classWalkNodeEvaluator
-
iteratePathfindingStartNodeCandidatePositions