Editja

BlockPrecipitationInteractionsComponent Class

Extends

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

Methods

accumulatesSnow

accumulatesSnow(): boolean

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

Returns boolean

Notes:

isSnowLoggable

isSnowLoggable(): boolean

Returns true if this block can have snow within it, like a flower submerged in snow. Returns false if this block cannot have snow within it.

Returns boolean

Caution

This function is still in pre-release. Its signature may change or it may be removed in future releases.

Notes:

obstructsRain

obstructsRain(): boolean

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

Returns boolean

Notes:

Constants

componentId

static read-only componentId = "minecraft:precipitation_interactions";

Type: string