Class BlockWaterContainerComponentBeta

Represents a fluid container block that currently contains water.

Hierarchy

Constructors

Properties

block: Block
fillLevel: number
typeId: string
componentId: "minecraft:waterContainer" = 'minecraft:waterContainer'

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.

    Throws

    This function can throw errors.

  • Returns Color

  • Parameters

    Returns void