Class EntityProjectileComponentBeta

Hierarchy

Constructors

Properties

airInertia: number

Remarks

This property can't be edited in read-only mode.

catchFireOnHurt: boolean

Remarks

This property can't be edited in read-only mode.

critParticlesOnProjectileHurt: boolean

Remarks

This property can't be edited in read-only mode.

destroyOnProjectileHurt: boolean

Remarks

This property can't be edited in read-only mode.

entity?: Entity

Remarks

The entity that owns this component. The entity will be undefined if it has been removed.

gravity: number

Remarks

This property can't be edited in read-only mode.

hitEntitySound?: string

Remarks

This property can't be edited in read-only mode.

hitGroundSound?: string

Remarks

This property can't be edited in read-only mode.

hitParticle?: string

Remarks

This property can't be edited in read-only mode.

lightningStrikeOnHit: boolean

Remarks

This property can't be edited in read-only mode.

liquidInertia: number

Remarks

This property can't be edited in read-only mode.

onFireTime: number

Remarks

This property can't be edited in read-only mode.

owner?: Entity

Remarks

This property can't be edited in read-only mode.

shouldBounceOnHit: boolean

Remarks

This property can't be edited in read-only mode.

stopOnHit: boolean

Remarks

This property can't be edited in read-only mode.

typeId: string

Remarks

Identifier of the component.

componentId: "minecraft:projectile" = 'minecraft:projectile'

Methods

  • Returns boolean

    Whether the component is valid.

    Remarks

    Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.

  • Parameters

    Returns void

    Remarks

    This function can't be called in read-only mode.

    Throws

    This function can throw errors.