Class EntityHit
java.lang.Object
org.spongepowered.api.world.volume.EntityHit
The result of an intersection between a ray and an entity.
- 
Constructor Details- 
EntityHitCreates a new entity hit from the entity, the intersection point and the normal.- Parameters:
- entity- The intersected entity
- intersection- The intersection point
- normal- The intersection normal
- distance- The distance from the start to the intersection
 
 
- 
- 
Method Details- 
entityGets the intersected entity.- Returns:
- The intersected entity
 
- 
intersectionGets the intersection point.- Returns:
- The point of intersection
 
- 
normalGets the intersection normal.- Returns:
- The normal of intersection
 
- 
distancepublic double distance()Gets the distance from the start to the intersection.- Returns:
- The distance from the start to the intersection
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-