Package draylar.omegaconfig
Class OmegaConfig
java.lang.Object
draylar.omegaconfig.OmegaConfig
- All Implemented Interfaces:
net.fabricmc.api.ModInitializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.util.Identifierstatic final com.google.gson.Gsonstatic final org.apache.logging.log4j.Loggerstatic final com.google.gson.Gson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanconfigExists(Config config) static PathgetConfigPath(Config config) voidstatic <T extends Config>
Tstatic <T extends Config>
voidwriteConfig(Class<T> configClass, T instance)
-
Field Details
-
GSON
public static final com.google.gson.Gson GSON -
CONFIG_SYNC_PACKET
public static final net.minecraft.util.Identifier CONFIG_SYNC_PACKET -
SYNC_ONLY_GSON
public static final com.google.gson.Gson SYNC_ONLY_GSON -
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER
-
-
Constructor Details
-
OmegaConfig
public OmegaConfig()
-
-
Method Details
-
onInitialize
public void onInitialize()- Specified by:
onInitializein interfacenet.fabricmc.api.ModInitializer
-
register
-
writeConfig
-
flatten
-
getConfigPath
-
configExists
-
getRegisteredConfigurations
-