Skip to content

Add configuration classes for reactor settings and world generation#40

Merged
MathisGredt merged 1 commit intomainfrom
config
Apr 9, 2025
Merged

Add configuration classes for reactor settings and world generation#40
MathisGredt merged 1 commit intomainfrom
config

Conversation

@Giovanniricotta2002
Copy link
Member

@Giovanniricotta2002 Giovanniricotta2002 commented Mar 19, 2025

This pull request introduces a new configuration system for the Create Nuclear mod, adding several configuration classes and ensuring they are registered properly. The changes include the addition of new configuration files, modifications to the main initialization method, and the setup of configuration registration.

Configuration System Enhancements:

  • Added CNConfigs class to manage and register configuration files, including event handling for loading and reloading configurations.
  • Created CNCCommon class to define common configuration settings, including nested configurations for world generation, rods, and explosions.
  • Introduced CExplose class to manage explosion-related settings, including size, type, and duration of reactor explosions.
  • Added CRods class to configure rod-related settings, such as uranium and graphite rod lifespans and maximum reactor heat.
  • Implemented CWorldGen class to control world generation settings, with an option to disable world generation.

Main Initialization Changes:

  • Updated CreateNuclear.java to import CNConfigs and register configurations during the mod initialization process. [1] [2]

@MathisGredt MathisGredt merged commit 90a8284 into main Apr 9, 2025
@Giovanniricotta2002 Giovanniricotta2002 deleted the config branch May 24, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants