public static class EntityUniverse.EntityHit extends Object
Constructor and Description |
---|
EntityHit(Entity entity,
com.flowpowered.math.vector.Vector3d intersection,
com.flowpowered.math.vector.Vector3d normal,
double distance)
Creates a new entity hit from the entity, the intersection point and
the normal.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
double |
getDistance()
Gets the distance from the start to the intersection.
|
Entity |
getEntity()
Gets the intersected entity.
|
com.flowpowered.math.vector.Vector3d |
getIntersection()
Gets the intersection point.
|
com.flowpowered.math.vector.Vector3d |
getNormal()
Gets the intersection normal.
|
int |
hashCode() |
String |
toString() |
public EntityHit(Entity entity, com.flowpowered.math.vector.Vector3d intersection, com.flowpowered.math.vector.Vector3d normal, double distance)
entity
- The intersected entityintersection
- The intersection pointnormal
- The intersection normaldistance
- The distance from the start to the intersectionpublic Entity getEntity()
public com.flowpowered.math.vector.Vector3d getIntersection()
public com.flowpowered.math.vector.Vector3d getNormal()
public double getDistance()