Script API - v1.19.70
    Preparing search index...

    Class EntityUnderwaterMovementComponentBeta

    Defines the general movement speed underwater of this entity.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    current: number

    Read-only. Returns the current value of movement speed underwater for the entity.

    This property can throw when used.

    typeId: string

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

    value: number

    Value for movement speed underwater as defined through entity components.

    This property can throw when used.

    componentId: "minecraft:underwater_movement" = 'minecraft:underwater_movement'

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

    Methods

    • Beta

      Returns void

      Resets the current movement speed underwater for the entity to the default value implied by the current component state of the entity.

      This function can throw errors.

    • Beta

      Returns void

      Resets the movement speed underwater to the maximum value for the entity, as determined by the set of components that are on the entity.

      This function can throw errors.

    • Beta

      Returns void

      Resets the movement speed underwater to the minimum value as defined by the component state of this entity.

      This function can throw errors.

    • Beta

      Parameters

      • value: number

      Returns boolean

      Sets the current value of movement speed underwater for the entity.

      This function can throw errors.