net.minecraft.entity.ai.pathing

public class PathNode

net.minecraft.world.level.pathfinder.Node
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
x
field_40
x
public final int
y
y
field_39
y
public final int
z
z
field_38
z
private final int
hash
hash
field_44
hashCode
public int
heapIdx
heapIdx
field_37
heapIndex
public float
g
g
field_36
penalizedPathLength
public float
h
h
field_34
distanceToNearestTarget
public float
f
f
field_47
heapWeight
public PathNode
cameFrom
cameFrom
field_35
previous
public boolean
closed
closed
field_42
visited
public float
walkedDistance
walkedDistance
field_46
pathLength
public float
costMalus
costMalus
field_43
penalty
public PathNodeType
type
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)
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)
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)
distanceTo(Node to)
method_31(class_9 arg0)
getDistance(PathNode node)
public float
distanceToXZ(Node to)
distanceToXZ(Node to)
method_44022(class_9 arg0)
getHorizontalDistance(PathNode node)
public float
distanceTo(BlockPos pos)
distanceTo(BlockPos pos)
method_35494(class_2338 arg0)
getDistance(BlockPos pos)
public float
distanceToSqr(Node to)
distanceToSqr(Node to)
method_32(class_9 arg0)
getSquaredDistance(PathNode node)
public float
distanceToSqr(BlockPos pos)
distanceToSqr(BlockPos pos)
method_35497(class_2338 arg0)
getSquaredDistance(BlockPos pos)
public float
distanceManhattan(Node to)
distanceManhattan(Node to)
method_21653(class_9 arg0)
getManhattanDistance(PathNode node)
public float
distanceManhattan(BlockPos pos)
distanceManhattan(BlockPos pos)
method_21654(class_2338 arg0)
getManhattanDistance(BlockPos pos)
public BlockPos
asBlockPos()
asBlockPos()
method_22879()
getBlockPos()
public Vec3d
asVec3()
asVec3()
method_35496()
getPos()
public boolean
inOpenSet()
inOpenSet()
method_27()
isInHeap()
public void
writeToStream(FriendlyByteBuf buffer)
writeToStream(FriendlyByteBuf buffer)
method_35495(class_2540 arg0)
write(PacketByteBuf buf)
public static PathNode
createFromStream(FriendlyByteBuf buffer)
createFromStream(FriendlyByteBuf buffer)
method_28(class_2540 arg0)
fromBuf(PacketByteBuf buf)
protected static void
readContents(FriendlyByteBuf buffer, Node node)
readContents(FriendlyByteBuf buffer, Node node)
method_47935(class_2540 arg0, class_9 arg1)
readFromBuf(PacketByteBuf buf, PathNode target)