Package net.minecraft.entity.ai.pathing
Class PathNodeNavigator
java.lang.Object
net.minecraft.entity.ai.pathing.PathNodeNavigator
public class PathNodeNavigator extends Object
- Mappings:
Namespace Name official dcvintermediary net/minecraft/class_13named net/minecraft/entity/ai/pathing/PathNodeNavigator
-
Field Summary
Fields Modifier and Type Field Description private PathMinHeapminHeapprivate PathNodeMakerpathNodeMakerprivate intrangeprivate PathNode[]successors -
Constructor Summary
Constructors Constructor Description PathNodeNavigator(PathNodeMaker pathNodeMaker, int range) -
Method Summary
Modifier and Type Method Description private floatcalculateDistances(PathNode node, Set<TargetPathNode> targets)private PathcreatePath(PathNode endNode, BlockPos target, boolean reachesTarget)private PathfindPathToAny(PathNode startNode, Map<TargetPathNode,BlockPos> positions, float followRange, int distance, float rangeMultiplier)PathfindPathToAny(ChunkCache world, MobEntity mob, Set<BlockPos> positions, float followRange, int distance, float rangeMultiplier)
-
Field Details
-
successors
- Mappings:
Namespace Name Mixin selector official aLdcv;a:[Ldcr;intermediary field_60Lnet/minecraft/class_13;field_60:[Lnet/minecraft/class_9;named successorsLnet/minecraft/entity/ai/pathing/PathNodeNavigator;successors:[Lnet/minecraft/entity/ai/pathing/PathNode;
-
range
private final int range- Mappings:
Namespace Name Mixin selector official bLdcv;b:Iintermediary field_18708Lnet/minecraft/class_13;field_18708:Inamed rangeLnet/minecraft/entity/ai/pathing/PathNodeNavigator;range:I
-
pathNodeMaker
- Mappings:
Namespace Name Mixin selector official cLdcv;c:Ldcs;intermediary field_61Lnet/minecraft/class_13;field_61:Lnet/minecraft/class_8;named pathNodeMakerLnet/minecraft/entity/ai/pathing/PathNodeNavigator;pathNodeMaker:Lnet/minecraft/entity/ai/pathing/PathNodeMaker;
-
minHeap
- Mappings:
Namespace Name Mixin selector official dLdcv;d:Ldco;intermediary field_62Lnet/minecraft/class_13;field_62:Lnet/minecraft/class_5;named minHeapLnet/minecraft/entity/ai/pathing/PathNodeNavigator;minHeap:Lnet/minecraft/entity/ai/pathing/PathMinHeap;
-
-
Constructor Details
-
PathNodeNavigator
- Mappings:
Namespace Name Mixin selector official <init>Ldcv;<init>(Ldcs;I)Vintermediary <init>Lnet/minecraft/class_13;<init>(Lnet/minecraft/class_8;I)Vnamed <init>Lnet/minecraft/entity/ai/pathing/PathNodeNavigator;<init>(Lnet/minecraft/entity/ai/pathing/PathNodeMaker;I)V
-
-
Method Details
-
findPathToAny
@Nullable public Path findPathToAny(ChunkCache world, MobEntity mob, Set<BlockPos> positions, float followRange, int distance, float rangeMultiplier)- Mappings:
Namespace Name Mixin selector official aLdcv;a(Lbuh;Larj;Ljava/util/Set;FIF)Ldct;intermediary method_52Lnet/minecraft/class_13;method_52(Lnet/minecraft/class_1950;Lnet/minecraft/class_1308;Ljava/util/Set;FIF)Lnet/minecraft/class_11;named findPathToAnyLnet/minecraft/entity/ai/pathing/PathNodeNavigator;findPathToAny(Lnet/minecraft/world/chunk/ChunkCache;Lnet/minecraft/entity/mob/MobEntity;Ljava/util/Set;FIF)Lnet/minecraft/entity/ai/pathing/Path;
-
findPathToAny
@Nullable private Path findPathToAny(PathNode startNode, Map<TargetPathNode,BlockPos> positions, float followRange, int distance, float rangeMultiplier)- Mappings:
Namespace Name Mixin selector official aLdcv;a(Ldcr;Ljava/util/Map;FIF)Ldct;intermediary method_54Lnet/minecraft/class_13;method_54(Lnet/minecraft/class_9;Ljava/util/Map;FIF)Lnet/minecraft/class_11;named findPathToAnyLnet/minecraft/entity/ai/pathing/PathNodeNavigator;findPathToAny(Lnet/minecraft/entity/ai/pathing/PathNode;Ljava/util/Map;FIF)Lnet/minecraft/entity/ai/pathing/Path;
-
calculateDistances
- Mappings:
Namespace Name Mixin selector official aLdcv;a(Ldcr;Ljava/util/Set;)Fintermediary method_21658Lnet/minecraft/class_13;method_21658(Lnet/minecraft/class_9;Ljava/util/Set;)Fnamed calculateDistancesLnet/minecraft/entity/ai/pathing/PathNodeNavigator;calculateDistances(Lnet/minecraft/entity/ai/pathing/PathNode;Ljava/util/Set;)F
-
createPath
- Mappings:
Namespace Name Mixin selector official aLdcv;a(Ldcr;Lfx;Z)Ldct;intermediary method_55Lnet/minecraft/class_13;method_55(Lnet/minecraft/class_9;Lnet/minecraft/class_2338;Z)Lnet/minecraft/class_11;named createPathLnet/minecraft/entity/ai/pathing/PathNodeNavigator;createPath(Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/util/math/BlockPos;Z)Lnet/minecraft/entity/ai/pathing/Path;
-