Posted February 26, 20214 yr Hello, this is probably simple but I can't find any documentation on it. How does one get the values from their mod's config file?
February 26, 20214 yr Just store the config values in static fields and access the values when needed.
February 26, 20214 yr Author How do I get access to the config instance though? Since now you register your config via "ModLoadingContext.get().registerConfig"
February 26, 20214 yr Author I know how to setup it up, I am just not understanding how to call on it from another class and read the values.
February 26, 20214 yr 17 hours ago, poopoodice said: static fields Store the variables in static fields, or create an instance of that config class and store in a static field.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.