Class Node
java.lang.Object
net.minecraft.world.level.pathfinder.Node
- Direct Known Subclasses:
Target
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasVec3()
cloneAndMove(int p_77290_, int p_77291_, int p_77292_)
static Node
createFromStream(FriendlyByteBuf p_77302_)
static int
createHash(int p_77296_, int p_77297_, int p_77298_)
float
distanceManhattan(BlockPos p_77307_)
float
distanceManhattan(Node p_77305_)
float
distanceTo(BlockPos p_164698_)
float
distanceTo(Node p_77294_)
float
distanceToSqr(BlockPos p_164703_)
float
distanceToSqr(Node p_77300_)
boolean
int
hashCode()
boolean
toString()
void
writeToStream(FriendlyByteBuf p_164700_)
-
Field Details
-
x
public final int x -
y
public final int y -
z
public final int z -
hash
private final int hash -
heapIdx
public int heapIdx -
g
public float g -
h
public float h -
f
public float f -
cameFrom
-
closed
public boolean closed -
walkedDistance
public float walkedDistance -
costMalus
public float costMalus -
type
-
-
Constructor Details
-
Node
public Node(int p_77285_, int p_77286_, int p_77287_)
-
-
Method Details
-
cloneAndMove
-
createHash
public static int createHash(int p_77296_, int p_77297_, int p_77298_) -
distanceTo
-
distanceTo
-
distanceToSqr
-
distanceToSqr
-
distanceManhattan
-
distanceManhattan
-
asBlockPos
-
asVec3
-
equals
-
hashCode
public int hashCode() -
inOpenSet
public boolean inOpenSet() -
toString
-
writeToStream
-
createFromStream
-