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 static final PacketCodec<io.netty.buffer.ByteBuf, PathNode>
DEBUG_STREAM_CODEC
field_1_9395
field_1_9395
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
protected static <N extends PathNode> PacketCodec<io.netty.buffer.ByteBuf, N>
createDebugStreamCodec(com.mojang.datafixers.util.Function3<Integer, Integer, Integer, N> factory)
method_1_9032(com.mojang.datafixers.util.Function3<Integer, Integer, Integer, N> arg0)
method_1_9032(com.mojang.datafixers.util.Function3<Integer, Integer, Integer, N> arg0)
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()
private static PathNode
lambda$createDebugStreamCodec$8(com.mojang.datafixers.util.Function3 arg0, Integer arg1, Integer arg2, Integer arg3, Float arg4, Float arg5, Boolean arg6, PathType arg7, Float arg8)
method_1_9041(com.mojang.datafixers.util.Function3 arg0, Integer arg1, Integer arg2, Integer arg3, Float arg4, Float arg5, Boolean arg6, class_7 arg7, Float arg8)
method_1_9041(com.mojang.datafixers.util.Function3 arg0, Integer arg1, Integer arg2, Integer arg3, Float arg4, Float arg5, Boolean arg6, PathNodeType arg7, Float arg8)
private static Float
lambda$createDebugStreamCodec$7(Node arg0)
method_1_9040(class_9 arg0)
method_1_9040(PathNode arg0)
private static PathNodeType
lambda$createDebugStreamCodec$6(Node arg0)
method_1_9039(class_9 arg0)
method_1_9039(PathNode arg0)
private static Boolean
lambda$createDebugStreamCodec$5(Node arg0)
method_1_9038(class_9 arg0)
method_1_9038(PathNode arg0)
private static Float
lambda$createDebugStreamCodec$4(Node arg0)
method_1_9037(class_9 arg0)
method_1_9037(PathNode arg0)
private static Float
lambda$createDebugStreamCodec$3(Node arg0)
method_1_9036(class_9 arg0)
method_1_9036(PathNode arg0)
private static Integer
lambda$createDebugStreamCodec$2(Node arg0)
method_1_9035(class_9 arg0)
method_1_9035(PathNode arg0)
private static Integer
lambda$createDebugStreamCodec$1(Node arg0)
method_1_9034(class_9 arg0)
method_1_9034(PathNode arg0)
private static Integer
lambda$createDebugStreamCodec$0(Node arg0)
method_1_9033(class_9 arg0)
method_1_9033(PathNode arg0)