Class: ProjectileHitBlockAfterEvent
event blockBeta
包含与抛射物击中方块相关的信息。
Contains information related to a projectile hitting a block.
Properties
dimension
readonlydimension:Dimension
Beta
Remarks
此抛射物撞击发生的维度。
Dimension where this projectile hit took place.
hitVector
readonlyhitVector:Vector3
Beta
Remarks
抛射物击中方块时的方向向量。
Direction vector of the projectile as it hit a block.
location
readonlylocation:Vector3
Beta
Remarks
抛射物撞击发生的位置。
Location where the projectile hit occurred.
projectile
readonlyprojectile:Entity
Beta
Remarks
击中方块的抛射物实体。
Entity for the projectile that hit a block.
source?
readonlyoptionalsource?:Entity
Beta
Remarks
发射抛射物的可选源实体。
Optional source entity that fired the projectile.
Methods
getBlockHit()
getBlockHit():
BlockHitInformation
World Mutation Beta
Returns
Remarks
包含关于抛射物击中的方块的附加信息。
Contains additional information about the block that was hit by the projectile.
