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
tutorial:world_presets [2023/02/03 21:34] – Link is no longer available fxtutorial: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>
tutorial/world_presets.txt · Last modified: 2025/11/21 13:59 by 40.77.167.2