- 致编者:请牢记我们的域名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