Nota
L-aċċess għal din il-paġna jeħtieġ l-awtorizzazzjoni. Tista’ tipprova tidħol jew tibdel id-direttorji.
L-aċċess għal din il-paġna jeħtieġ l-awtorizzazzjoni. Tista’ tipprova tibdel id-direttorji.
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:
- This function can throw errors.
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:
- This function can throw errors.
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:
- This function can throw errors.
Constants
componentId
static read-only componentId = "minecraft:precipitation_interactions";
Type: string