Options
All
  • Public
  • Public/Protected
  • All
Menu

Class representing landscape generator used for the dimension

Hierarchy

  • CustomGenerator

Index

Constructors

  • Creates a new CustomGenerator instance using specified base type

    Parameters

    • baseType: number

      base generator type constant, can be from 0 to 4. 0 and 1 represent overworld generator, 2 represents flat world generator, 3 represents nether generator and 4 represents end generator

    Returns CustomGenerator

  • Creates a new CustomGenerator instance using specified base type

    Parameters

    • baseType: string

      base generator type constant, can be one of the following: "overworld", "overworld1", "flat", "nether", "end"

    Returns CustomGenerator

Methods

  • Specifies whether to use vanilla biome surface cover blocks (grass, sand, podzol, etc.)

    Parameters

    • value: boolean

      if true, vanilla surface will be generated, default value is false

    Returns CustomGenerator

    reference to itself to be used in sequential calls

  • Specifies whether to use mod's generation callbacks

    Parameters

    • value: boolean

      if true, mod generation will be used, default value is true

    Returns CustomGenerator

    reference to itself to be used in sequential calls

  • Specifies whether to generate minecraft vanilla structures

    Parameters

    • value: boolean

      if true, vanilla structures will be generated, default value is false

    Returns CustomGenerator

    reference to itself to be used in sequential calls

  • Specifies which of the generation Callbacks to call, -1 to call no mods generation, 0 to call overworld generation callback, 1 for nether, 2 for end generation callbacks

    Parameters

    • id: number

      generation callback to call

    Returns CustomGenerator

  • Sets terrain generator object used for the landscape generation

    Parameters

    • generator: AbstractTerrainGenerator

      terrain generator to be used with current landscape generator or removes terrain generator, if the value is null

    Returns CustomGenerator

    reference to itself to be used in sequential calls

Generated using TypeDoc