Class RayTraceResult
java.lang.Object
org.bukkit.util.RayTraceResult
The hit result of a ray trace.
Only the hit position is guaranteed to always be available. The availability of the other attributes depends on what got hit and on the context in which the ray trace was performed.
-
Constructor Summary
ConstructorsConstructorDescriptionRayTraceResult(@NotNull Vector hitPosition) Creates a RayTraceResult.RayTraceResult(@NotNull Vector hitPosition, @Nullable BlockFace hitBlockFace) Creates a RayTraceResult.RayTraceResult(@NotNull Vector hitPosition, @Nullable Block hitBlock, @Nullable BlockFace hitBlockFace) Creates a RayTraceResult.RayTraceResult(@NotNull Vector hitPosition, @Nullable Entity hitEntity) Creates a RayTraceResult.RayTraceResult(@NotNull Vector hitPosition, @Nullable Entity hitEntity, @Nullable BlockFace hitBlockFace) Creates a RayTraceResult. -
Method Summary
-
Constructor Details
-
RayTraceResult
-
RayTraceResult
-
RayTraceResult
-
RayTraceResult
-
RayTraceResult
-
-
Method Details
-
getHitPosition
-
getHitBlock
-
getHitBlockFace
-
getHitEntity
-
hashCode
-
equals
-
toString
-