类 PathNode
- java.lang.Object
-
- net.minecraft.entity.ai.pathing.PathNode
-
- 直接已知子类:
TargetPathNode
public class PathNode extends Object
- Mappings:
Namespace Name official dfyintermediary net/minecraft/class_9named net/minecraft/entity/ai/pathing/PathNode
-
-
字段概要
字段 修饰符和类型 字段 说明 floatdistanceToNearestTargetprivate inthashCodeintheapIndexfloatheapWeightfloatpathLengthfloatpenalizedPathLengthfloatpenaltyPathNodepreviousPathNodeTypetypebooleanvisitedintxintyintz
-
构造器概要
构造器 构造器 说明 PathNode(int x, int y, int z)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 PathNodecopyWithNewPosition(int x, int y, int z)booleanequals(Object o)floatgetDistance(PathNode node)floatgetDistance(BlockPos pos)floatgetManhattanDistance(PathNode node)floatgetManhattanDistance(BlockPos pos)BlockPosgetPos()floatgetSquaredDistance(PathNode node)floatgetSquaredDistance(BlockPos pos)Vec3dgetVec3d()static inthash(int x, int y, int z)inthashCode()booleanisInHeap()static PathNodereadBuf(PacketByteBuf buf)StringtoString()voidwriteBuf(PacketByteBuf buf)
-
-
-
字段详细资料
-
x
public final int x
- Mappings:
Namespace Name Mixin selector official aLdfy;a:Iintermediary field_40Lnet/minecraft/class_9;field_40:Inamed xLnet/minecraft/entity/ai/pathing/PathNode;x:I
-
y
public final int y
- Mappings:
Namespace Name Mixin selector official bLdfy;b:Iintermediary field_39Lnet/minecraft/class_9;field_39:Inamed yLnet/minecraft/entity/ai/pathing/PathNode;y:I
-
z
public final int z
- Mappings:
Namespace Name Mixin selector official cLdfy;c:Iintermediary field_38Lnet/minecraft/class_9;field_38:Inamed zLnet/minecraft/entity/ai/pathing/PathNode;z:I
-
hashCode
private final int hashCode
- Mappings:
Namespace Name Mixin selector official mLdfy;m:Iintermediary field_44Lnet/minecraft/class_9;field_44:Inamed hashCodeLnet/minecraft/entity/ai/pathing/PathNode;hashCode:I
-
heapIndex
public int heapIndex
- Mappings:
Namespace Name Mixin selector official dLdfy;d:Iintermediary field_37Lnet/minecraft/class_9;field_37:Inamed heapIndexLnet/minecraft/entity/ai/pathing/PathNode;heapIndex:I
-
penalizedPathLength
public float penalizedPathLength
- Mappings:
Namespace Name Mixin selector official eLdfy;e:Fintermediary field_36Lnet/minecraft/class_9;field_36:Fnamed penalizedPathLengthLnet/minecraft/entity/ai/pathing/PathNode;penalizedPathLength:F
-
distanceToNearestTarget
public float distanceToNearestTarget
- Mappings:
Namespace Name Mixin selector official fLdfy;f:Fintermediary field_34Lnet/minecraft/class_9;field_34:Fnamed distanceToNearestTargetLnet/minecraft/entity/ai/pathing/PathNode;distanceToNearestTarget:F
-
heapWeight
public float heapWeight
- Mappings:
Namespace Name Mixin selector official gLdfy;g:Fintermediary field_47Lnet/minecraft/class_9;field_47:Fnamed heapWeightLnet/minecraft/entity/ai/pathing/PathNode;heapWeight:F
-
previous
public PathNode previous
- Mappings:
Namespace Name Mixin selector official hLdfy;h:Ldfy;intermediary field_35Lnet/minecraft/class_9;field_35:Lnet/minecraft/class_9;named previousLnet/minecraft/entity/ai/pathing/PathNode;previous:Lnet/minecraft/entity/ai/pathing/PathNode;
-
visited
public boolean visited
- Mappings:
Namespace Name Mixin selector official iLdfy;i:Zintermediary field_42Lnet/minecraft/class_9;field_42:Znamed visitedLnet/minecraft/entity/ai/pathing/PathNode;visited:Z
-
pathLength
public float pathLength
- Mappings:
Namespace Name Mixin selector official jLdfy;j:Fintermediary field_46Lnet/minecraft/class_9;field_46:Fnamed pathLengthLnet/minecraft/entity/ai/pathing/PathNode;pathLength:F
-
penalty
public float penalty
- Mappings:
Namespace Name Mixin selector official kLdfy;k:Fintermediary field_43Lnet/minecraft/class_9;field_43:Fnamed penaltyLnet/minecraft/entity/ai/pathing/PathNode;penalty:F
-
type
public PathNodeType type
- Mappings:
Namespace Name Mixin selector official lLdfy;l:Ldfw;intermediary field_41Lnet/minecraft/class_9;field_41:Lnet/minecraft/class_7;named typeLnet/minecraft/entity/ai/pathing/PathNode;type:Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
-
方法详细资料
-
copyWithNewPosition
public PathNode copyWithNewPosition(int x, int y, int z)
- Mappings:
Namespace Name Mixin selector official aLdfy;a(III)Ldfy;intermediary method_26Lnet/minecraft/class_9;method_26(III)Lnet/minecraft/class_9;named copyWithNewPositionLnet/minecraft/entity/ai/pathing/PathNode;copyWithNewPosition(III)Lnet/minecraft/entity/ai/pathing/PathNode;
-
hash
public static int hash(int x, int y, int z)- Mappings:
Namespace Name Mixin selector official bLdfy;b(III)Iintermediary method_30Lnet/minecraft/class_9;method_30(III)Inamed hashLnet/minecraft/entity/ai/pathing/PathNode;hash(III)I
-
getDistance
public float getDistance(PathNode node)
- Mappings:
Namespace Name Mixin selector official aLdfy;a(Ldfy;)Fintermediary method_31Lnet/minecraft/class_9;method_31(Lnet/minecraft/class_9;)Fnamed getDistanceLnet/minecraft/entity/ai/pathing/PathNode;getDistance(Lnet/minecraft/entity/ai/pathing/PathNode;)F
-
getDistance
public float getDistance(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLdfy;a(Lgb;)Fintermediary method_35494Lnet/minecraft/class_9;method_35494(Lnet/minecraft/class_2338;)Fnamed getDistanceLnet/minecraft/entity/ai/pathing/PathNode;getDistance(Lnet/minecraft/util/math/BlockPos;)F
-
getSquaredDistance
public float getSquaredDistance(PathNode node)
- Mappings:
Namespace Name Mixin selector official bLdfy;b(Ldfy;)Fintermediary method_32Lnet/minecraft/class_9;method_32(Lnet/minecraft/class_9;)Fnamed getSquaredDistanceLnet/minecraft/entity/ai/pathing/PathNode;getSquaredDistance(Lnet/minecraft/entity/ai/pathing/PathNode;)F
-
getSquaredDistance
public float getSquaredDistance(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official bLdfy;b(Lgb;)Fintermediary method_35497Lnet/minecraft/class_9;method_35497(Lnet/minecraft/class_2338;)Fnamed getSquaredDistanceLnet/minecraft/entity/ai/pathing/PathNode;getSquaredDistance(Lnet/minecraft/util/math/BlockPos;)F
-
getManhattanDistance
public float getManhattanDistance(PathNode node)
- Mappings:
Namespace Name Mixin selector official cLdfy;c(Ldfy;)Fintermediary method_21653Lnet/minecraft/class_9;method_21653(Lnet/minecraft/class_9;)Fnamed getManhattanDistanceLnet/minecraft/entity/ai/pathing/PathNode;getManhattanDistance(Lnet/minecraft/entity/ai/pathing/PathNode;)F
-
getManhattanDistance
public float getManhattanDistance(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official cLdfy;c(Lgb;)Fintermediary method_21654Lnet/minecraft/class_9;method_21654(Lnet/minecraft/class_2338;)Fnamed getManhattanDistanceLnet/minecraft/entity/ai/pathing/PathNode;getManhattanDistance(Lnet/minecraft/util/math/BlockPos;)F
-
getPos
public BlockPos getPos()
- Mappings:
Namespace Name Mixin selector official aLdfy;a()Lgb;intermediary method_22879Lnet/minecraft/class_9;method_22879()Lnet/minecraft/class_2338;named getPosLnet/minecraft/entity/ai/pathing/PathNode;getPos()Lnet/minecraft/util/math/BlockPos;
-
getVec3d
public Vec3d getVec3d()
- Mappings:
Namespace Name Mixin selector official bLdfy;b()Ldma;intermediary method_35496Lnet/minecraft/class_9;method_35496()Lnet/minecraft/class_243;named getVec3dLnet/minecraft/entity/ai/pathing/PathNode;getVec3d()Lnet/minecraft/util/math/Vec3d;
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
isInHeap
public boolean isInHeap()
- Mappings:
Namespace Name Mixin selector official cLdfy;c()Zintermediary method_27Lnet/minecraft/class_9;method_27()Znamed isInHeapLnet/minecraft/entity/ai/pathing/PathNode;isInHeap()Z
-
toString
public String toString()
-
writeBuf
public void writeBuf(PacketByteBuf buf)
- Mappings:
Namespace Name Mixin selector official aLdfy;a(Lob;)Vintermediary method_35495Lnet/minecraft/class_9;method_35495(Lnet/minecraft/class_2540;)Vnamed writeBufLnet/minecraft/entity/ai/pathing/PathNode;writeBuf(Lnet/minecraft/network/PacketByteBuf;)V
-
readBuf
public static PathNode readBuf(PacketByteBuf buf)
- Mappings:
Namespace Name Mixin selector official bLdfy;b(Lob;)Ldfy;intermediary method_28Lnet/minecraft/class_9;method_28(Lnet/minecraft/class_2540;)Lnet/minecraft/class_9;named readBufLnet/minecraft/entity/ai/pathing/PathNode;readBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/entity/ai/pathing/PathNode;
-
-