- 致编者:请牢记我们的域名wiki.mcbe-dev.net!
- 致编者:欢迎加入本Wiki的官方交流QQ群或Discord服务器!
- 基岩版1.19.31现已发布!(了解更多)
- Inner Core现已支持Xbox模组联机!(了解更多)
- 如果您是第一次来到本Wiki,欢迎注册一个账户
- 点击顶部的“编辑”或“编辑源代码”按钮即可编辑当前页面
- 请知悉:在不登录时也可以编辑和新建页面,但是您当前的IP地址会记录在编辑历史中
Minecraft基岩版开发Wiki:ICMod函数表/Dimensions.CustomGenerator
来自Minecraft基岩版开发Wiki
此条目的(部分)内容需要翻译。 你可以帮助我们来翻译此条目,但请勿使用机器翻译。 |
Dimensions.CustomGenerator
是一个用来展示纬度中的地形生成器。
Constructors[编辑]
constructor[编辑]
new CustomGenerator(baseType: number): CustomGenerator
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[编辑]
Methods[编辑]
setBuildVanillaSurfaces[编辑]
setBuildVanillaSurfaces(value: boolean): CustomGenerator
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
setGenerateModStructures[编辑]
setGenerateModStructures(value: boolean): CustomGenerator
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
setGenerateVanillaStructures[编辑]
setGenerateVanillaStructures(value: boolean): CustomGenerator
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
setTerrainGenerator[编辑]
setTerrainGenerator(generator: AbstractTerrainGenerator | null): CustomGenerator
Sets terrain generator object used for the landscape generation
Parameters[编辑]
- generator AbstractTerrainGenerator | null
- 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