Cloth Config
  • Introduction to Cloth Config
  • Frequently Asked Questions
  • Setup Cloth Config
    • Setup with Fabric
    • Setup with Forge
  • Using Cloth Config
    • Creating a Config Screen
    • Saving the Config
    • Creating a Config Category
    • Creating a Config Option
    • Building the Config Screen
  • Advanced
    • Creating a Dropdown Menu
    • ModMenu Integration
  • Auto Config
    • Introduction to Auto Config 1u
    • Setup with Gradle
    • Creating a Config Class
    • Registering the Config
    • Reading the Config
    • Generating a Cloth Config Screen
    • Annotations
    • Post-Validation
    • Partitioning the Config
    • Custom Gui Handlers
Powered by GitBook
On this page
  1. Auto Config

Reading the Config

PreviousRegistering the ConfigNextGenerating a Cloth Config Screen

Last updated 5 years ago

Was this helpful?

CtrlK

Was this helpful?

Do the following wherever you want to use your config. This must be called after registration.

ModConfig config = AutoConfig.getConfigHolder(ModConfig.class).getConfig();