@minecraft/server / ProjectileHitBlockAfterEvent
Class: ProjectileHitBlockAfterEvent ​
Defined in: @minecraft/server/index.d.ts:18693
Contains information related to a projectile hitting a block.
Properties ​
dimension ​
readonlydimension:Dimension
Defined in: @minecraft/server/index.d.ts:18700
Remarks ​
Dimension where this projectile hit took place.
hitVector ​
readonlyhitVector:Vector3
Defined in: @minecraft/server/index.d.ts:18706
Remarks ​
Direction vector of the projectile as it hit a block.
location ​
readonlylocation:Vector3
Defined in: @minecraft/server/index.d.ts:18712
Remarks ​
Location where the projectile hit occurred.
projectile ​
readonlyprojectile:Entity
Defined in: @minecraft/server/index.d.ts:18718
Remarks ​
Entity for the projectile that hit a block.
source? ​
readonlyoptionalsource?:Entity
Defined in: @minecraft/server/index.d.ts:18724
Remarks ​
Optional source entity that fired the projectile.
Methods ​
getBlockHit() ​
getBlockHit():
BlockHitInformation
Defined in: @minecraft/server/index.d.ts:18733
Returns ​
Remarks ​
Contains additional information about the block that was hit by the projectile.
This function can't be called in restricted-execution mode.