Class Path

java.lang.Object
net.minecraft.entity.ai.pathing.Path

public class Path
extends Object
Mappings:
Namespace Name
official dct
intermediary net/minecraft/class_11
named net/minecraft/entity/ai/pathing/Path
  • Field Details

    • nodes

      private final List<PathNode> nodes
      Mappings:
      Namespace Name Mixin selector
      official a Ldct;a:Ljava/util/List;
      intermediary field_52 Lnet/minecraft/class_11;field_52:Ljava/util/List;
      named nodes Lnet/minecraft/entity/ai/pathing/Path;nodes:Ljava/util/List;
    • field_57

      private PathNode[] field_57
      Mappings:
      Namespace Name Mixin selector
      official b Ldct;b:[Ldcr;
      intermediary field_57 Lnet/minecraft/class_11;field_57:[Lnet/minecraft/class_9;
      named field_57 Lnet/minecraft/entity/ai/pathing/Path;field_57:[Lnet/minecraft/entity/ai/pathing/PathNode;
    • field_55

      private PathNode[] field_55
      Mappings:
      Namespace Name Mixin selector
      official c Ldct;c:[Ldcr;
      intermediary field_55 Lnet/minecraft/class_11;field_55:[Lnet/minecraft/class_9;
      named field_55 Lnet/minecraft/entity/ai/pathing/Path;field_55:[Lnet/minecraft/entity/ai/pathing/PathNode;
    • field_20300

      @Environment(CLIENT) private Set<TargetPathNode> field_20300
      Mappings:
      Namespace Name Mixin selector
      official d Ldct;d:Ljava/util/Set;
      intermediary field_20300 Lnet/minecraft/class_11;field_20300:Ljava/util/Set;
      named field_20300 Lnet/minecraft/entity/ai/pathing/Path;field_20300:Ljava/util/Set;
    • currentNodeIndex

      private int currentNodeIndex
      Mappings:
      Namespace Name Mixin selector
      official e Ldct;e:I
      intermediary field_54 Lnet/minecraft/class_11;field_54:I
      named currentNodeIndex Lnet/minecraft/entity/ai/pathing/Path;currentNodeIndex:I
    • target

      private final BlockPos target
      Mappings:
      Namespace Name Mixin selector
      official f Ldct;f:Lfx;
      intermediary field_20301 Lnet/minecraft/class_11;field_20301:Lnet/minecraft/class_2338;
      named target Lnet/minecraft/entity/ai/pathing/Path;target:Lnet/minecraft/util/math/BlockPos;
    • manhattanDistanceFromTarget

      private final float manhattanDistanceFromTarget
      Mappings:
      Namespace Name Mixin selector
      official g Ldct;g:F
      intermediary field_20302 Lnet/minecraft/class_11;field_20302:F
      named manhattanDistanceFromTarget Lnet/minecraft/entity/ai/pathing/Path;manhattanDistanceFromTarget:F
    • reachesTarget

      private final boolean reachesTarget
      Mappings:
      Namespace Name Mixin selector
      official h Ldct;h:Z
      intermediary field_20303 Lnet/minecraft/class_11;field_20303:Z
      named reachesTarget Lnet/minecraft/entity/ai/pathing/Path;reachesTarget:Z
  • Constructor Details

    • Path

      public Path​(List<PathNode> nodes, BlockPos target, boolean reachesTarget)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldct;<init>(Ljava/util/List;Lfx;Z)V
      intermediary <init> Lnet/minecraft/class_11;<init>(Ljava/util/List;Lnet/minecraft/class_2338;Z)V
      named <init> Lnet/minecraft/entity/ai/pathing/Path;<init>(Ljava/util/List;Lnet/minecraft/util/math/BlockPos;Z)V
  • Method Details

    • next

      public void next()
      Mappings:
      Namespace Name Mixin selector
      official a Ldct;a()V
      intermediary method_44 Lnet/minecraft/class_11;method_44()V
      named next Lnet/minecraft/entity/ai/pathing/Path;next()V
    • method_30849

      public boolean method_30849()
      Mappings:
      Namespace Name Mixin selector
      official b Ldct;b()Z
      intermediary method_30849 Lnet/minecraft/class_11;method_30849()Z
      named method_30849 Lnet/minecraft/entity/ai/pathing/Path;method_30849()Z
    • isFinished

      public boolean isFinished()
      Mappings:
      Namespace Name Mixin selector
      official c Ldct;c()Z
      intermediary method_46 Lnet/minecraft/class_11;method_46()Z
      named isFinished Lnet/minecraft/entity/ai/pathing/Path;isFinished()Z
    • getEnd

      @Nullable public PathNode getEnd()
      Mappings:
      Namespace Name Mixin selector
      official d Ldct;d()Ldcr;
      intermediary method_45 Lnet/minecraft/class_11;method_45()Lnet/minecraft/class_9;
      named getEnd Lnet/minecraft/entity/ai/pathing/Path;getEnd()Lnet/minecraft/entity/ai/pathing/PathNode;
    • getNode

      public PathNode getNode​(int index)
      Mappings:
      Namespace Name Mixin selector
      official a Ldct;a(I)Ldcr;
      intermediary method_40 Lnet/minecraft/class_11;method_40(I)Lnet/minecraft/class_9;
      named getNode Lnet/minecraft/entity/ai/pathing/Path;getNode(I)Lnet/minecraft/entity/ai/pathing/PathNode;
    • setLength

      public void setLength​(int length)
      Mappings:
      Namespace Name Mixin selector
      official b Ldct;b(I)V
      intermediary method_36 Lnet/minecraft/class_11;method_36(I)V
      named setLength Lnet/minecraft/entity/ai/pathing/Path;setLength(I)V
    • setNode

      public void setNode​(int index, PathNode node)
      Mappings:
      Namespace Name Mixin selector
      official a Ldct;a(ILdcr;)V
      intermediary method_33 Lnet/minecraft/class_11;method_33(ILnet/minecraft/class_9;)V
      named setNode Lnet/minecraft/entity/ai/pathing/Path;setNode(ILnet/minecraft/entity/ai/pathing/PathNode;)V
    • getLength

      public int getLength()
      Mappings:
      Namespace Name Mixin selector
      official e Ldct;e()I
      intermediary method_38 Lnet/minecraft/class_11;method_38()I
      named getLength Lnet/minecraft/entity/ai/pathing/Path;getLength()I
    • getCurrentNodeIndex

      public int getCurrentNodeIndex()
      Mappings:
      Namespace Name Mixin selector
      official f Ldct;f()I
      intermediary method_39 Lnet/minecraft/class_11;method_39()I
      named getCurrentNodeIndex Lnet/minecraft/entity/ai/pathing/Path;getCurrentNodeIndex()I
    • setCurrentNodeIndex

      public void setCurrentNodeIndex​(int index)
      Mappings:
      Namespace Name Mixin selector
      official c Ldct;c(I)V
      intermediary method_42 Lnet/minecraft/class_11;method_42(I)V
      named setCurrentNodeIndex Lnet/minecraft/entity/ai/pathing/Path;setCurrentNodeIndex(I)V
    • getNodePosition

      public Vec3d getNodePosition​(Entity entity, int index)
      Mappings:
      Namespace Name Mixin selector
      official a Ldct;a(Laqv;I)Ldiu;
      intermediary method_47 Lnet/minecraft/class_11;method_47(Lnet/minecraft/class_1297;I)Lnet/minecraft/class_243;
      named getNodePosition Lnet/minecraft/entity/ai/pathing/Path;getNodePosition(Lnet/minecraft/entity/Entity;I)Lnet/minecraft/util/math/Vec3d;
    • method_31031

      public BlockPos method_31031​(int int2)
      Mappings:
      Namespace Name Mixin selector
      official d Ldct;d(I)Lfx;
      intermediary method_31031 Lnet/minecraft/class_11;method_31031(I)Lnet/minecraft/class_2338;
      named method_31031 Lnet/minecraft/entity/ai/pathing/Path;method_31031(I)Lnet/minecraft/util/math/BlockPos;
    • getNodePosition

      public Vec3d getNodePosition​(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Ldct;a(Laqv;)Ldiu;
      intermediary method_49 Lnet/minecraft/class_11;method_49(Lnet/minecraft/class_1297;)Lnet/minecraft/class_243;
      named getNodePosition Lnet/minecraft/entity/ai/pathing/Path;getNodePosition(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Vec3d;
    • method_31032

      public BlockPos method_31032()
      Mappings:
      Namespace Name Mixin selector
      official g Ldct;g()Lfx;
      intermediary method_31032 Lnet/minecraft/class_11;method_31032()Lnet/minecraft/class_2338;
      named method_31032 Lnet/minecraft/entity/ai/pathing/Path;method_31032()Lnet/minecraft/util/math/BlockPos;
    • method_29301

      public PathNode method_29301()
      Mappings:
      Namespace Name Mixin selector
      official h Ldct;h()Ldcr;
      intermediary method_29301 Lnet/minecraft/class_11;method_29301()Lnet/minecraft/class_9;
      named method_29301 Lnet/minecraft/entity/ai/pathing/Path;method_29301()Lnet/minecraft/entity/ai/pathing/PathNode;
    • method_30850

      @Nullable public PathNode method_30850()
      Mappings:
      Namespace Name Mixin selector
      official i Ldct;i()Ldcr;
      intermediary method_30850 Lnet/minecraft/class_11;method_30850()Lnet/minecraft/class_9;
      named method_30850 Lnet/minecraft/entity/ai/pathing/Path;method_30850()Lnet/minecraft/entity/ai/pathing/PathNode;
    • equalsPath

      public boolean equalsPath​(@Nullable Path path)
      Mappings:
      Namespace Name Mixin selector
      official a Ldct;a(Ldct;)Z
      intermediary method_41 Lnet/minecraft/class_11;method_41(Lnet/minecraft/class_11;)Z
      named equalsPath Lnet/minecraft/entity/ai/pathing/Path;equalsPath(Lnet/minecraft/entity/ai/pathing/Path;)Z
    • reachesTarget

      public boolean reachesTarget()
      Mappings:
      Namespace Name Mixin selector
      official j Ldct;j()Z
      intermediary method_21655 Lnet/minecraft/class_11;method_21655()Z
      named reachesTarget Lnet/minecraft/entity/ai/pathing/Path;reachesTarget()Z
    • method_22880

      @Environment(CLIENT) public PathNode[] method_22880()
      Mappings:
      Namespace Name Mixin selector
      official k Ldct;k()[Ldcr;
      intermediary method_22880 Lnet/minecraft/class_11;method_22880()[Lnet/minecraft/class_9;
      named method_22880 Lnet/minecraft/entity/ai/pathing/Path;method_22880()[Lnet/minecraft/entity/ai/pathing/PathNode;
    • method_22881

      @Environment(CLIENT) public PathNode[] method_22881()
      Mappings:
      Namespace Name Mixin selector
      official l Ldct;l()[Ldcr;
      intermediary method_22881 Lnet/minecraft/class_11;method_22881()[Lnet/minecraft/class_9;
      named method_22881 Lnet/minecraft/entity/ai/pathing/Path;method_22881()[Lnet/minecraft/entity/ai/pathing/PathNode;
    • fromBuffer

      @Environment(CLIENT) public static Path fromBuffer​(PacketByteBuf buffer)
      Mappings:
      Namespace Name Mixin selector
      official b Ldct;b(Lnw;)Ldct;
      intermediary method_34 Lnet/minecraft/class_11;method_34(Lnet/minecraft/class_2540;)Lnet/minecraft/class_11;
      named fromBuffer Lnet/minecraft/entity/ai/pathing/Path;fromBuffer(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/entity/ai/pathing/Path;
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Ldct;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_11;toString()Ljava/lang/String;
      named toString Lnet/minecraft/entity/ai/pathing/Path;toString()Ljava/lang/String;
    • getTarget

      public BlockPos getTarget()
      Mappings:
      Namespace Name Mixin selector
      official m Ldct;m()Lfx;
      intermediary method_48 Lnet/minecraft/class_11;method_48()Lnet/minecraft/class_2338;
      named getTarget Lnet/minecraft/entity/ai/pathing/Path;getTarget()Lnet/minecraft/util/math/BlockPos;
    • getManhattanDistanceFromTarget

      public float getManhattanDistanceFromTarget()
      Mappings:
      Namespace Name Mixin selector
      official n Ldct;n()F
      intermediary method_21656 Lnet/minecraft/class_11;method_21656()F
      named getManhattanDistanceFromTarget Lnet/minecraft/entity/ai/pathing/Path;getManhattanDistanceFromTarget()F