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<BlockPathTypes>
private static final float
Fields inherited from class net.minecraft.world.level.pathfinder.WalkNodeEvaluator
oldWaterCost, SPACE_BETWEEN_WALL_POSTS
Fields inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, canWalkOverFences, entityDepth, entityHeight, entityWidth, level, 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_) getBlockPathType
(BlockGetter p_77245_, int p_77246_, int p_77247_, int p_77248_) getBlockPathType
(BlockGetter p_77250_, int p_77251_, int p_77252_, int p_77253_, Mob p_77254_, int p_77255_, int p_77256_, int p_77257_, boolean p_77258_, boolean p_77259_) private BlockPathTypes
getCachedBlockPathType
(int p_164694_, int p_164695_, int p_164696_) getGoal
(double p_77229_, double p_77230_, double p_77231_) int
getNeighbors
(Node[] p_77266_, Node p_77267_) getStart()
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, evaluateBlockPathType, findAcceptedNode, getBlockPathType, getBlockPathTypeRaw, getBlockPathTypes, getBlockPathTypeStatic, getCachedBlockType, getFloorLevel, getFloorLevel, getStartNode, isAmphibious, isBurningBlock, isDiagonalValid, isNeighborValid
Methods inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, canWalkOverFences, getNode, getNode, getTargetFromNode, setCanFloat, setCanOpenDoors, setCanPassDoors, setCanWalkOverFences
-
Field Details
-
pathTypeByPosCache
-
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
-
getGoal
- Overrides:
getGoal
in classWalkNodeEvaluator
-
getNeighbors
- Overrides:
getNeighbors
in classWalkNodeEvaluator
-
hasMalus
-
isOpen
-
findAcceptedNode
-
getCachedBlockPathType
-
getBlockPathType
public BlockPathTypes getBlockPathType(BlockGetter p_77250_, int p_77251_, int p_77252_, int p_77253_, Mob p_77254_, int p_77255_, int p_77256_, int p_77257_, boolean p_77258_, boolean p_77259_) - Overrides:
getBlockPathType
in classWalkNodeEvaluator
-
getBlockPathType
public BlockPathTypes getBlockPathType(BlockGetter p_77245_, int p_77246_, int p_77247_, int p_77248_) - Overrides:
getBlockPathType
in classWalkNodeEvaluator
-
iteratePathfindingStartNodeCandidatePositions