Class TCDCommonsConfig
java.lang.Object
com.thecsdev.common.config.JsonConfig
com.thecsdev.commonmc.api.config.ModConfig
com.thecsdev.commonmc.TCDCommonsConfig
TCDCommons's primary ModConfig.-
Field Summary
FieldsFields inherited from class JsonConfig
configFile, GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidsetUpdateItemGroupsOnJoin(boolean value) Sets the value ofupdateItemGroupsOnJoin().final booleanWhether to update item groups (creative mode tabs) when joining a world.Methods inherited from class JsonConfig
getConfigFile, getDeserializableProperties, getProperties, getPropertyNames, getSerializableProperties, loadFromFile, loadFromJson, onLoad, onSave, saveToFile, saveToJson, saveToJson, setConfigFile
-
Field Details
-
FLAG_DEV_ENV
public static boolean FLAG_DEV_ENV
-
-
Constructor Details
-
TCDCommonsConfig
public TCDCommonsConfig()
-
-
Method Details
-
updateItemGroupsOnJoin
public final boolean updateItemGroupsOnJoin()Whether to update item groups (creative mode tabs) when joining a world. This optimization feature aims to move the lag spike that occurs when opening an inventory screen - to the loading screen. -
setUpdateItemGroupsOnJoin
public final void setUpdateItemGroupsOnJoin(boolean value) Sets the value ofupdateItemGroupsOnJoin().- Parameters:
value- The new value.
-