Package net.minecraft.pathfinding
Class PathPoint
- java.lang.Object
-
- net.minecraft.pathfinding.PathPoint
-
- Direct Known Subclasses:
FlaggedPathPoint
public class PathPoint extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PathPoint(int p_i2135_1_, int p_i2135_2_, int p_i2135_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockPos
asBlockPos()
PathPoint
cloneAndMove(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
equals(java.lang.Object p_equals_1_)
int
hashCode()
boolean
inOpenSet()
java.lang.String
toString()
-
-
-
Field Detail
-
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
public PathPoint cameFrom
-
closed
public boolean closed
-
walkedDistance
public float walkedDistance
-
costMalus
public float costMalus
-
type
public PathNodeType type
-
-
Method Detail
-
cloneAndMove
public PathPoint cloneAndMove(int p_186283_1_, int p_186283_2_, int p_186283_3_)
-
createHash
public static int createHash(int p_75830_0_, int p_75830_1_, int p_75830_2_)
-
distanceTo
public float distanceTo(PathPoint p_75829_1_)
-
distanceToSqr
public float distanceToSqr(PathPoint p_75832_1_)
-
distanceManhattan
public float distanceManhattan(PathPoint p_224757_1_)
-
distanceManhattan
public float distanceManhattan(BlockPos p_224758_1_)
-
asBlockPos
public BlockPos asBlockPos()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
inOpenSet
public boolean inOpenSet()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
createFromStream
public static PathPoint createFromStream(PacketBuffer p_186282_0_)
-
-