tutorial:features
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:features [2019/11/02 01:58] – created draylar | tutorial:features [2020/01/08 12:07] – lightcolour | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Generating Features in your World ===== | + | ===== 在您的世界中生成Feature |
Rocks, trees, ores, and ponds are all examples of Features. They are simple generation additions to the world which generate depending on how they are configured. In this tutorial, we'll look at generating a simple stone spiral feature in our world randomly. | Rocks, trees, ores, and ponds are all examples of Features. They are simple generation additions to the world which generate depending on how they are configured. In this tutorial, we'll look at generating a simple stone spiral feature in our world randomly. | ||
Line 47: | Line 47: | ||
</ | </ | ||
- | ==== Registering a Feature ==== | + | ==== 注册一个Feature ==== |
- | Features can be registered like most other content in the game, and there aren't any special builders or mechanics you'll have to worry about. | + | 可以像注册游戏中的其他大多数内容一样注册Feature,而且您不必担心任何特殊的构建器或机制。 |
<code java> | <code java> | ||
private static final Feature< | private static final Feature< | ||
Line 57: | Line 57: | ||
</ | </ | ||
- | ==== Adding a Feature | + | ==== 向生物群落添加Feature ==== |
- | Biome has a method called | + | 生物群系有一种称为'' |
- | We can iterate over '' | + | 我们可以遍历'' |
<code java> | <code java> | ||
Registry.BIOME.forEach(biome -> biome.addFeature( | Registry.BIOME.forEach(biome -> biome.addFeature( | ||
Line 73: | Line 73: | ||
</ | </ | ||
- | The first argument of ' | + | The first argument of '' |
The second argument of '' | The second argument of '' | ||
Line 79: | Line 79: | ||
The Decorator represents how the world chooses to place your Feature. '' | The Decorator represents how the world chooses to place your Feature. '' | ||
- | === Results | + | === 结果 |
+ | {{https:// |
tutorial/features.txt · Last modified: 2023/12/18 01:19 by solidblock