Protected constructorOptional Readonly blockContains additional information about the block that was hit by the projectile, or undefined if the projectile did not hit a block.
Readonly dimensionDimension where this projectile hit took place.
Optional Readonly entityContains additional information about a block that was hit.
Readonly hitDirection vector of the projectile as it hit a block/entity.
Readonly locationLocation where the projectile hit occurred.
Readonly projectileEntity for the projectile that hit a block/entity.
Readonly sourceOptional source entity that fired the projectile.
Contains information related to a projectile hitting an entity or block.