Package net.minecraft.util.math
Class RayTraceResult
- java.lang.Object
-
- net.minecraft.util.math.RayTraceResult
-
- Direct Known Subclasses:
BlockRayTraceResult
,EntityRayTraceResult
public abstract class RayTraceResult extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RayTraceResult.Type
-
Constructor Summary
Constructors Modifier Constructor Description protected
RayTraceResult(Vector3d p_i51183_1_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description double
distanceTo(Entity p_237486_1_)
Vector3d
getLocation()
abstract RayTraceResult.Type
getType()
-
-
-
Field Detail
-
location
protected final Vector3d location
-
subHit
public int subHit
Used to determine what sub-segment is hit
-
hitInfo
public java.lang.Object hitInfo
Used to add extra hit info
-
-
Constructor Detail
-
RayTraceResult
protected RayTraceResult(Vector3d p_i51183_1_)
-
-
Method Detail
-
distanceTo
public double distanceTo(Entity p_237486_1_)
-
getType
public abstract RayTraceResult.Type getType()
-
getLocation
public Vector3d getLocation()
-
-