Class BlockWaterContainerComponentBeta

Represents a fluid container block that currently contains water.

Hierarchy

Constructors

Properties

block: Block

Remarks

Block instance that this component pertains to.

fillLevel: number

Remarks

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

typeId: string
componentId: "minecraft:waterContainer" = 'minecraft:waterContainer'

Remarks

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

Methods

  • Parameters

    Returns void

    Remarks

    Adds an item and colors the water based on a dye item type.

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

    Throws

    This function can throw errors.

  • Returns Color

    Color that is used as the base color for sign text.

    Remarks

    Retrieves a custom base color used for the sign text.

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

    Throws

    This function can throw errors.

  • Parameters

    Returns void

    Remarks

    Sets a custom base color used for the sign text.

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

    Throws

    This function can throw errors.