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 static final PacketCodec<io.netty.buffer.ByteBuf, PathNode>
DEBUG_STREAM_CODEC
DEBUG_STREAM_CODEC
field_1_9395
PACKET_CODEC
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
protected static <N extends PathNode> PacketCodec<io.netty.buffer.ByteBuf, N>
createDebugStreamCodec(com.mojang.datafixers.util.Function3<Integer, Integer, Integer, N> factory)
createDebugStreamCodec(com.mojang.datafixers.util.Function3<Integer, Integer, Integer, N> factory)
method_1_9032(com.mojang.datafixers.util.Function3<Integer, Integer, Integer, N> arg0)
createPacketCodec(com.mojang.datafixers.util.Function3<Integer, Integer, Integer, N> constructor)
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()