Package net.minecraft.pathfinding
Class PathPoint
java.lang.Object
net.minecraft.pathfinding.PathPoint
- Direct Known Subclasses:
FlaggedPathPoint
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncloneAndMove
(int p_186283_1_, int p_186283_2_, int p_186283_3_) static PathPoint
createFromStream
(PacketBuffer p_186282_0_) static int
createHash
(int p_75830_0_, int p_75830_1_, int p_75830_2_) float
distanceManhattan
(PathPoint p_224757_1_) float
distanceManhattan
(BlockPos p_224758_1_) float
distanceTo
(PathPoint p_75829_1_) float
distanceToSqr
(PathPoint p_75832_1_) boolean
int
hashCode()
boolean
toString()
-
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
-
PathPoint
public PathPoint(int p_i2135_1_, int p_i2135_2_, int p_i2135_3_)
-
-
Method Details
-
cloneAndMove
-
createHash
public static int createHash(int p_75830_0_, int p_75830_1_, int p_75830_2_) -
distanceTo
-
distanceToSqr
-
distanceManhattan
-
distanceManhattan
-
asBlockPos
-
equals
-
hashCode
public int hashCode() -
inOpenSet
public boolean inOpenSet() -
toString
-
createFromStream
-