Class LodestoneConfig
java.lang.Object
team.lodestar.lodestone.systems.config.LodestoneConfig
- Direct Known Subclasses:
ClientConfig
A config system allowing for static initialization of config values.
Value holders are stored in a hashmap, with the key being a pair represented by a configType String and the path of the value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final recordstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConcurrentHashMap<com.mojang.datafixers.util.Pair<String, LodestoneConfig.ConfigPath>, ArrayList<LodestoneConfig.ConfigValueHolder>> -
Constructor Summary
ConstructorsConstructorDescriptionLodestoneConfig(String modId, String configType, net.neoforged.neoforge.common.ModConfigSpec.Builder builder) -
Method Summary
-
Field Details
-
VALUE_HOLDERS
public static final ConcurrentHashMap<com.mojang.datafixers.util.Pair<String,LodestoneConfig.ConfigPath>, VALUE_HOLDERSArrayList<LodestoneConfig.ConfigValueHolder>>
-
-
Constructor Details
-
LodestoneConfig
public LodestoneConfig(String modId, String configType, net.neoforged.neoforge.common.ModConfigSpec.Builder builder) - Parameters:
modId- - Your mod id.configType- - a unique identifier for your config to be used as key to your config values. For example: "common/trinkets/".builder- - a forge config builder instance.
-