net.minecraft.entity.ai.pathing

public class PathNode

net.minecraft.world.level.pathfinder.Node
net.minecraft.class_9
net.minecraft.entity.ai.pathing.PathNode

Field summary

Modifier and TypeField
public final int
x
field_40
x
public final int
y
field_39
y
public final int
z
field_38
z
private final int
hash
field_44
hashCode
public int
heapIdx
field_37
heapIndex
public float
g
field_36
penalizedPathLength
public float
h
field_34
distanceToNearestTarget
public float
f
field_47
heapWeight
public PathNode
cameFrom
field_35
previous
public boolean
closed
field_42
visited
public float
walkedDistance
field_46
pathLength
public float
costMalus
field_43
penalty
public PathNodeType
type
field_41
type

Constructor summary

ModifierConstructor
public (int x, int y, int z)

Method summary

Modifier and TypeMethod
public PathNode
cloneAndMove(int x, int y, int z)
method_26(int arg0, int arg1, int arg2)
copyWithNewPosition(int x, int y, int z)
public static int
createHash(int x, int y, int z)
method_30(int arg0, int arg1, int arg2)
hash(int x, int y, int z)
public float
distanceTo(Node to)
method_31(class_9 arg0)
getDistance(PathNode node)
public float
distanceToXZ(Node to)
method_44022(class_9 arg0)
getHorizontalDistance(PathNode node)
public float
distanceTo(BlockPos pos)
method_35494(class_2338 arg0)
getDistance(BlockPos pos)
public float
distanceToSqr(Node to)
method_32(class_9 arg0)
getSquaredDistance(PathNode node)
public float
distanceToSqr(BlockPos pos)
method_35497(class_2338 arg0)
getSquaredDistance(BlockPos pos)
public float
distanceManhattan(Node to)
method_21653(class_9 arg0)
getManhattanDistance(PathNode node)
public float
distanceManhattan(BlockPos pos)
method_21654(class_2338 arg0)
getManhattanDistance(BlockPos pos)
public BlockPos
asBlockPos()
method_22879()
getBlockPos()
public Vec3d
asVec3()
method_35496()
getPos()
public boolean
inOpenSet()
method_27()
isInHeap()
public void
writeToStream(FriendlyByteBuf buffer)
method_35495(class_2540 arg0)
write(PacketByteBuf buf)
public static PathNode
createFromStream(FriendlyByteBuf buffer)
method_28(class_2540 arg0)
fromBuf(PacketByteBuf buf)
protected static void
readContents(FriendlyByteBuf buffer, Node node)
method_47935(class_2540 arg0, class_9 arg1)
readFromBuf(PacketByteBuf buf, PathNode target)