@ascentbv/ts-common - v1.0.165
    Preparing search index...

    Class BlockPrecipitationInteractionsComponent

    Represents a how a block interacts with precipitation (such as rain or snow).

    Hierarchy (View Summary)

    Index

    Properties

    block: Block

    Block instance that this component pertains to.

    componentId: "minecraft:precipitation_interactions" = 'minecraft:precipitation_interactions'
    isValid: boolean

    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.

    typeId: string

    Identifier of the component.

    Methods

    • Returns boolean

      Returns true if falling snow will accumulate naturally on the block. Returns false if snow will not accumulate on the block.

      This function can throw errors.

      LocationInUnloadedChunkError

      LocationOutOfWorldBoundariesError

    • Returns boolean

      Returns true if rain will not go through the block. Returns false if rain should go through the block.

      This function can throw errors.

      LocationInUnloadedChunkError

      LocationOutOfWorldBoundariesError