Class FrozenClothConfig
java.lang.Object
net.frozenblock.lib.config.clothconfig.FrozenClothConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic me.shedaniel.clothconfig2.api.ConfigCategorycreateSubCategory(@NotNull me.shedaniel.clothconfig2.api.ConfigEntryBuilder entryBuilder, @NotNull me.shedaniel.clothconfig2.api.ConfigCategory parentCategory, @NotNull net.minecraft.network.chat.Component key, boolean expanded, net.minecraft.network.chat.Component tooltip, @NotNull me.shedaniel.clothconfig2.api.AbstractConfigListEntry... entries) Creates a subcategory in the parent config category with the specified key and adds entries to it.static <T extends me.shedaniel.clothconfig2.gui.widget.DynamicEntryListWidget.Entry<?>>
TsyncedEntry(T entry, Class<?> clazz, String identifier, Config<?> configInstance) Creates an entry that will interact with config syncing
-
Method Details
-
createSubCategory
public static me.shedaniel.clothconfig2.api.ConfigCategory createSubCategory(@NotNull @NotNull me.shedaniel.clothconfig2.api.ConfigEntryBuilder entryBuilder, @NotNull @NotNull me.shedaniel.clothconfig2.api.ConfigCategory parentCategory, @NotNull @NotNull net.minecraft.network.chat.Component key, boolean expanded, net.minecraft.network.chat.Component tooltip, @NotNull @NotNull me.shedaniel.clothconfig2.api.AbstractConfigListEntry... entries) Creates a subcategory in the parent config category with the specified key and adds entries to it.- Parameters:
entryBuilder- the ConfigEntryBuilder instanceparentCategory- the parent config categorykey- the key for the subcategoryexpanded- if the subcategory is expanded or nottooltip- the tooltip for the subcategoryentries- the entries to be added to the subcategory- Returns:
- the newly created subcategory
-
syncedEntry
public static <T extends me.shedaniel.clothconfig2.gui.widget.DynamicEntryListWidget.Entry<?>> T syncedEntry(T entry, Class<?> clazz, String identifier, Config<?> configInstance) Creates an entry that will interact with config syncing- Parameters:
entry- The config entry to be usedclazz- The class of the config file being accessedidentifier- The identifier of the field used for the config (UseEntrySyncDatafor this)configInstance- The main instance of the config (SeeFrozenLibConfig.INSTANCEfor an example)- Since:
- 1.5
-