SerenityJS
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    • Create a new biome type.

      Parameters

      • identifier: string

        The identifier of the biome type.

      • networkId: number

        The network ID of the biome type.

      • Optionaltags: string[]

        The optional tags associated with the biome type.

      Returns BiomeType

    Properties

    canPrecipitate: boolean = true

    Whether the biome type can experience rain or snow.

    depth: number = 0

    The depth of the biome type, affects terrain generation.

    downfall: number = 0.4

    The amount of precipitation in the biome type. [0.0 - 1.0] If the biome temperature is below 0.15, it will snow instead of rain.

    identifier: string

    The identifier of the biome type. (e.g., "minecraft:plains")

    networkId: number

    The network ID of the biome type.

    scale: number = 0

    The scale of the biome type, affects terrain generation.

    snowFoilage: number = 0

    How frozen leaves appear in the biome. [0.0 - 1.0]

    temperature: number = 0

    The temperature of the biome type. [0.0 - 1.0]

    waterColor: Color = ...

    The color of the water in the biome type (ARGB format).

    types: Map<number, BiomeType> = ...

    A collective registry of all biome types.

    Methods

    • Check if the biome type has a specific tag.

      Parameters

      • tag: string

        The tag to check for.

      Returns boolean

      True if the biome type has the tag, false otherwise.