User Tools

Site Tools


tutorial:world_presets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:world_presets [2023/01/11 06:36] miirtutorial:world_presets [2025/11/21 13:59] (current) – ↷ Links adapted because of a move operation 40.77.167.2
Line 8: Line 8:
 A world preset requires a ''ChunkGenerator''. You can [[tutorial:chunkgenerator|create your own]]((99% of the time, this is not necessary-- see the chunk generator page for more details)), but here, we will modify the ''FlatChunkGenerator'' to create a void world. A world preset requires a ''ChunkGenerator''. You can [[tutorial:chunkgenerator|create your own]]((99% of the time, this is not necessary-- see the chunk generator page for more details)), but here, we will modify the ''FlatChunkGenerator'' to create a void world.
  
-In order to implement a preset, we first need access to the ''WorldPresets$Registrar'' inner class. For that, we can use a simple [[tutorial:accesswideners|access widener]]. This could be done without an access widener, but it is much simpler to use one in this case. Your access widener should look like this:+In order to implement a preset, we first need access to the ''WorldPresets$Registrar'' inner class. For that, we can use a simple [[tutorial:accesswidening|access widener]]. This could be done without an access widener, but it is much simpler to use one in this case. Your access widener should look like this:
  
 <code> <code>
Line 70: Line 70:
  
 And you're done! And you're done!
- 
-For more information, the code used in this example can be found [[https://github.com/itsmiir/wiki-example/blob/1.19/src/main/java/com/miir/example/mixin/worldgen/worldpreset/WorldPresetMixin.java|on Github]]. 
tutorial/world_presets.1673418999.txt.gz · Last modified: 2023/01/11 06:36 by miir