BeardlessBrady Posted February 26, 2021 Posted February 26, 2021 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? Quote
poopoodice Posted February 26, 2021 Posted February 26, 2021 Just store the config values in static fields and access the values when needed. Quote
BeardlessBrady Posted February 26, 2021 Author Posted February 26, 2021 How do I get access to the config instance though? Since now you register your config via "ModLoadingContext.get().registerConfig" Quote
BeardlessBrady Posted February 26, 2021 Author Posted February 26, 2021 I know how to setup it up, I am just not understanding how to call on it from another class and read the values. Quote
poopoodice Posted February 26, 2021 Posted February 26, 2021 On 2/26/2021 at 2:31 AM, poopoodice said: static fields Expand Store the variables in static fields, or create an instance of that config class and store in a static field. Quote
BeardlessBrady Posted February 26, 2021 Author Posted February 26, 2021 Thanks, I finally got it through my thick skull Quote
Recommended Posts
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.