Class EntityHealthComponentBeta

Defines the health properties of an entity.

Hierarchy

Constructors

Properties

current: number
typeId: string
value: number
componentId: "minecraft:health" = 'minecraft:health'

Remarks

Identifier of this component. Should always be minecraft:health.

Methods

  • Returns void

    Remarks

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

    Throws

    This function can throw errors.

  • Returns void

    Remarks

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

    Throws

    This function can throw errors.

  • Returns void

    Remarks

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

    Throws

    This function can throw errors.

  • Parameters

    • value: number

    Returns boolean

    Remarks

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

    Throws

    This function can throw errors.