Dimensions.CustomGenerator
Index
Constructors
constructor
Creates a new Dimensions.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
Methods
removeModGenerationBaseDimension
Disables mods generation in current generator.
Returns CustomGenerator
Reference to itself to be used in sequential calls.
setBuildVanillaSurfaces
Specifies whether to use vanilla biome surface cover blocks (grass, sand, podzol, etc.).
Parameters
value: boolean
if
true, vanilla surface will be generated
Returns CustomGenerator
Reference to itself to be used in sequential calls.
setGenerateCaves
- since: 2.3.1b115
Determines whether the generator should generate underground and/or underwater caves as part of its result. Wworks only with the "overworld"1" and "flat" base types.
Parameters
caves: boolean
generate caves (until 2.4.0b123-2 inverted)
optionalunderwaterCaves: boolean
generate large caves and canyons
Returns CustomDimension
setGenerateModStructures
Specifies whether to use mod's generation callbacks.
Parameters
value: boolean
if
true, mod generation will be used
Returns CustomGenerator
Reference to itself to be used in sequential calls.
setGenerateVanillaStructures
Specifies whether to generate minecraft vanilla structures.
Parameters
value: boolean
if
true, vanilla structures will be generated
Returns CustomGenerator
Reference to itself to be used in sequential calls.
setModGenerationBaseDimension
Specifies which of the generation Callbacks to call,
-1to call no mods generation,0to call overworld generation callback,1for nether,2for end generation callbacks.Parameters
id: number
generation callback to call
Returns CustomGenerator
Reference to itself to be used in sequential calls.
setTerrainGenerator
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.
Class representing landscape generator used for the dimension.