net.minecraft.entity.ai.pathing

public class LandPathNodeMaker

extends PathNodeMaker

net.minecraft.world.level.pathfinder.WalkNodeEvaluator
net.minecraft.class_14
net.minecraft.entity.ai.pathing.LandPathNodeMaker

Field summary

Modifier and TypeField
public static final double
SPACE_BETWEEN_WALL_POSTS
field_31809
Y_OFFSET
private static final double
DEFAULT_MOB_JUMP_HEIGHT
field_40928
MIN_STEP_HEIGHT
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<PathNodeType>
pathTypesByPosCacheByMob
field_49156
nodeTypes
private final it.unimi.dsi.fastutil.objects.Object2BooleanMap<Box>
collisionCache
field_25191
collidedBoxes
private final PathNode[]
reusableNeighbors
field_49157
successors

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public void
prepare(PathNavigationRegion level, Mob entity)
method_12(class_1950 arg0, class_1308 arg1)
init(ChunkCache arg0, MobEntity arg1)
public void
done()
method_19()
clear()
public PathNode
getStart()
method_21()
getStart()
protected PathNode
getStartNode(BlockPos pos)
method_43415(class_2338 arg0)
getStart(BlockPos pos)
protected boolean
canStartAt(BlockPos pos)
method_47893(class_2338 arg0)
canPathThrough(BlockPos pos)
public TargetPathNode
getTarget(double x, double y, double z)
method_16(double arg0, double arg1, double arg2)
getNode(double arg0, double arg1, double arg2)
public int
getNeighbors(Node[] neighbors, Node pos)
method_18(class_9[] arg0, class_9 arg1)
getSuccessors(PathNode[] arg0, PathNode arg1)
protected boolean
isNeighborValid(Node neighbor, Node current)
method_20536(class_9 arg0, class_9 arg1)
isValidAdjacentSuccessor(PathNode node, PathNode successor)
protected boolean
isDiagonalValid(Node pos, Node ew, Node ns)
method_29579(class_9 arg0, class_9 arg1, class_9 arg2)
isValidDiagonalSuccessor(PathNode xNode, PathNode zNode, PathNode xDiagNode)
protected boolean
isDiagonalValid(Node diagonal)
method_57089(class_9 arg0)
isValidDiagonalSuccessor(PathNode node)
private static boolean
doesBlockHavePartialCollision(PathType type)
method_43414(class_7 arg0)
isBlocked(PathNodeType nodeType)
private boolean
canReachWithoutCollision(Node posTo)
method_29578(class_9 arg0)
isBlocked(PathNode node)
protected double
getFloorLevel(BlockPos pos)
method_37003(class_2338 arg0)
getFeetY(BlockPos pos)
public static double
getFloorLevel(BlockGetter level, BlockPos pos)
method_60(class_1922 arg0, class_2338 arg1)
getFeetY(BlockView world, BlockPos pos)
protected boolean
isAmphibious()
method_37004()
isAmphibious()
protected PathNode
findAcceptedNode(int x, int y, int z, int jumpSize, double nodeHeight, Direction travelDirection, PathType blockPathTypeCurrent)
method_62(int arg0, int arg1, int arg2, int arg3, double arg4, class_2350 arg5, class_7 arg6)
getPathNode(int x, int y, int z, int maxYStep, double lastFeetY, Direction direction, PathNodeType nodeType)
private double
getMobJumpHeight()
method_46739()
getStepHeight()
private PathNode
getNodeAndUpdateCostToMax(int x, int y, int z, PathType pathType, float cost)
method_43569(int arg0, int arg1, int arg2, class_7 arg3, float arg4)
getNodeWith(int x, int y, int z, PathNodeType type, float penalty)
private PathNode
getBlockedNode(int x, int y, int z)
method_43570(int arg0, int arg1, int arg2)
getBlockedNode(int x, int y, int z)
private PathNode
getClosedNode(int x, int y, int z, PathType pathType)
method_57088(int arg0, int arg1, int arg2, class_7 arg3)
getNodeWith(int x, int y, int z, PathNodeType type)
private PathNode
tryJumpOn(int x, int y, int z, int jumpSize, double nodeHeight, Direction travelDirection, PathType blockPathTypeCurrent, BlockPos$MutableBlockPos reusablePos)
method_57085(int arg0, int arg1, int arg2, int arg3, double arg4, class_2350 arg5, class_7 arg6, class_2338$class_2339 arg7)
getJumpOnTopNode(int x, int y, int z, int maxYStep, double lastFeetY, Direction direction, PathNodeType nodeType, BlockPos$Mutable mutablePos)
private PathNode
tryFindFirstNonWaterBelow(int x, int y, int z, Node best)
method_57087(int arg0, int arg1, int arg2, class_9 arg3)
getNonWaterNodeBelow(int x, int y, int z, PathNode node)
private PathNode
tryFindFirstGroundNodeBelow(int x, int y, int z)
method_57091(int arg0, int arg1, int arg2)
getOpenNode(int x, int y, int z)
private boolean
hasCollisions(AABB aabb)
method_29304(class_238 arg0)
checkBoxCollision(Box box)
protected PathNodeType
getCachedPathType(int x, int y, int z)
method_31932(int arg0, int arg1, int arg2)
getNodeType(int x, int y, int z)
public PathNodeType
getPathTypeOfMob(PathfindingContext context, int x, int y, int z, Mob mob)
method_25(class_9316 arg0, int arg1, int arg2, int arg3, class_1308 arg4)
getNodeType(PathContext arg0, int arg1, int arg2, int arg3, MobEntity arg4)
public Set<PathNodeType>
getPathTypeWithinMobBB(PathfindingContext context, int x, int y, int z)
method_57090(class_9316 arg0, int arg1, int arg2, int arg3)
getCollidingNodeTypes(PathContext context, int x, int y, int z)
public PathNodeType
getPathType(PathfindingContext context, int x, int y, int z)
method_17(class_9316 arg0, int arg1, int arg2, int arg3)
getDefaultNodeType(PathContext arg0, int arg1, int arg2, int arg3)
public static PathNodeType
getPathTypeStatic(Mob mob, BlockPos pos)
method_57625(class_1308 arg0, class_2338 arg1)
getLandNodeType(MobEntity entity, BlockPos pos)
public static PathNodeType
getPathTypeStatic(PathfindingContext context, BlockPos$MutableBlockPos pos)
method_23476(class_9316 arg0, class_2338$class_2339 arg1)
getLandNodeType(PathContext context, BlockPos$Mutable pos)
public static PathNodeType
checkNeighbourBlocks(PathfindingContext context, int x, int y, int z, PathType blockPathType)
method_59(class_9316 arg0, int arg1, int arg2, int arg3, class_7 arg4)
getNodeTypeFromNeighbors(PathContext context, int x, int y, int z, PathNodeType fallback)
protected static PathNodeType
getPathTypeFromState(BlockGetter level, BlockPos pos)
method_58(class_1922 arg0, class_2338 arg1)
getCommonNodeType(BlockView world, BlockPos pos)
private PathNodeType
lambda$getCachedPathType$0(int arg0, int arg1, int arg2, long arg3)
method_57086(int arg0, int arg1, int arg2, long arg3)
method_57086(int arg0, int arg1, int arg2, long arg3)
private boolean
lambda$hasCollisions$0(AABB arg0, Object arg1)
method_29305(class_238 arg0, Object arg1)
method_29305(Box arg0, Object box2)