世界生成
孤梦注:该文档从wudji的世界生成篇借鉴而来,后续孤梦有空可能会重写
WorldgenEvents
事件组可于世界相关修改,其包含WorldgenEvents.add
和WorldgenEvents.remove
两个事件
方法 | 描述 |
---|---|
addLake(Consumer 湖) | 在世界生成中添加湖 |
addOre(Consumer 矿石) | 在世界生成中添加湖 |
getAnchors() | 获取高度锚( |
addSpawn(BiomeFilter 群系过滤器, MobCategory 生成类型, 字符串 怪物) | 添加怪物生成 |
addSpawn(MobCategory 生成类型, 字符串 怪物) | 添加怪物生成 |
addSpawn(Consumer 属性) | 添加怪物生成 |
addFeatureJson(BiomeFilter 群系过滤器, JsonObject 结构) | 添加结构 |
addFeatureJson(BiomeFilter 群系过滤器, ResourceLocation ID, JsonObject 结构) | 添加结构 |
WorldgenEvents.remove
方法 | 描述 |
---|---|
removeSpawns(Consumer 移除生成) | 移除怪物生成 |
removeAllFeatures(BiomeFilter 群系过滤器) | 移除所有符合条件的结构 |
printSpawns(MobCategory 生成类型) | 打印所有符合条件的怪物生成 |
printFeatures(DecorationGenerationStep 生成阶段) | 打印所有符合条件的结构 |
printSpawns() | 打印所有怪物生成 |
removeFeatureById(BiomeFilter 群系过滤器, DecorationGenerationStep 生成阶段, ResourceLocation[] 结构ID) | 根据ID移除结构 |
printFiltered(DecorationGenerationStep 生成阶段) | 打印符合条件的被过滤的结构 |
printFiltered(DecorationGenerationStep 生成阶段, BiomeFilter 群系过滤器) | 打印符合条件的被过滤的结构 |
printFeaturesForType(DecorationGenerationStep 生成阶段, BiomeFilter 群系过滤器, 布尔值 是否待移除后) | 打印指定类型的结构 |
removeAllFeatures() | 移除所有结构 |
removeAllFeatures(BiomeFilter 群系过滤器, DecorationGenerationStep 生成阶段) | 移除所有符合条件的结构 |
removeAllSpawns() | 移除所有怪物生成 |
removeFeatureById(DecorationGenerationStep 生成阶段, ResourceLocation[] 结构ID) | 根据ID移除结构 |
removeOres(Consumer 移除生成) | 移除所有符合条件的矿石 |
printFeatures() | 打印所有结构 |
printFeatures(DecorationGenerationStep 生成阶段, BiomeFilter 群系过滤器) | 打印所有符合条件的结构 |
最后更新于