EntityProjectileComponent
¶
文档版本:1.21.60.21
EntityProjectileComponent
类,扩展自EntityComponent
。script_api.minecraft/server.entityprojectilecomponent.description
常量¶
componentId
属性¶
airInertia
airInertia
:float
- script_api.minecraft/server.entityprojectilecomponent.airinertia.description
catchFireOnHurt
catchFireOnHurt
:boolean
- script_api.minecraft/server.entityprojectilecomponent.catchfireonhurt.description
critParticlesOnProjectileHurt
critParticlesOnProjectileHurt
:boolean
- script_api.minecraft/server.entityprojectilecomponent.critparticlesonprojectilehurt.description
destroyOnProjectileHurt
destroyOnProjectileHurt
:boolean
- script_api.minecraft/server.entityprojectilecomponent.destroyonprojectilehurt.description
gravity
gravity
:float
- script_api.minecraft/server.entityprojectilecomponent.gravity.description
hitEntitySound
hitEntitySound
:string
|undefined
- script_api.minecraft/server.entityprojectilecomponent.hitentitysound.description
hitGroundSound
hitGroundSound
:string
|undefined
- script_api.minecraft/server.entityprojectilecomponent.hitgroundsound.description
hitParticle
hitParticle
:string
|undefined
- script_api.minecraft/server.entityprojectilecomponent.hitparticle.description
lightningStrikeOnHit
lightningStrikeOnHit
:boolean
- script_api.minecraft/server.entityprojectilecomponent.lightningstrikeonhit.description
liquidInertia
liquidInertia
:float
- script_api.minecraft/server.entityprojectilecomponent.liquidinertia.description
onFireTime
onFireTime
:float
- script_api.minecraft/server.entityprojectilecomponent.onfiretime.description
owner
owner
:Entity
|undefined
- script_api.minecraft/server.entityprojectilecomponent.owner.description
shouldBounceOnHit
shouldBounceOnHit
:boolean
- script_api.minecraft/server.entityprojectilecomponent.shouldbounceonhit.description
stopOnHit
stopOnHit
:boolean
- script_api.minecraft/server.entityprojectilecomponent.stoponhit.description
方法¶
shoot
script_api.minecraft/server.entityprojectilecomponent.shoot.description
velocity
:Vector3
- script_api.minecraft/server.entityprojectilecomponent.shoot.velocity.description
options
?:ProjectileShootOptions
=null
- script_api.minecraft/server.entityprojectilecomponent.shoot.options.description
- 返回值:
void
- script_api.minecraft/server.entityprojectilecomponent.shoot.return