gimpansor_worldgen_1.16.2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
gimpansor_worldgen_1.16.2 [2020/08/29 19:56] – gimpansor | gimpansor_worldgen_1.16.2 [2020/08/30 00:29] – gimpansor | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Biomes have become immutable data classes | * Biomes have become immutable data classes | ||
- | * Instead of using Biome objects, you now have to use RegistryKey< | + | * Instead of using Biome objects, you now have to use '' |
* This means that any custom data you previously attached to your Biome subclass can no longer be attached directly to Biome objects, since Vanilla will serialize and deserialize Biome objects to copy them using their codecs, you could in theory attach custom data by extending the Codec, but this would mean this data would be attached to **every** Biome. | * This means that any custom data you previously attached to your Biome subclass can no longer be attached directly to Biome objects, since Vanilla will serialize and deserialize Biome objects to copy them using their codecs, you could in theory attach custom data by extending the Codec, but this would mean this data would be attached to **every** Biome. | ||
- | * What you can do instead is maintain an IdentityHashMap< | + | * What you can do instead is maintain an '' |
- | * The key of a biome must be obtained via the DynamicRegistryManager of the current world, ClientWorld and ServerWorld offer a convenience method for this called '' | + | * The key of a biome must be obtained via the '' |
* '' | * '' | ||
* Parent Biomes are gone and now hardcoded in '' | * Parent Biomes are gone and now hardcoded in '' | ||
+ | |||
+ | ===== Worldgen Registered Objects ===== | ||
+ | |||
+ | The following diagram shows various objects that participate in defining world generation, and where they are registered/ | ||
+ | |||
+ | The general rule of thumb is that '' | ||
+ | |||
+ | As an example: | ||
+ | |||
+ | * Vanilla registers an instance of the class '' | ||
+ | * Vanilla then registers 21 configured features in '' | ||
+ | |||
+ | For use in an actual world, all data objects from '' | ||
+ | |||
+ | {{: | ||
+ | |||
gimpansor_worldgen_1.16.2.txt · Last modified: 2020/08/30 10:19 by gimpansor