Class FrozenClothConfig

java.lang.Object
net.frozenblock.lib.config.clothconfig.FrozenClothConfig

@Environment(CLIENT) public final class FrozenClothConfig extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static me.shedaniel.clothconfig2.api.ConfigCategory
    createSubCategory(@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<?>>
    T
    syncedEntry(T entry, Class<?> clazz, String identifier, Config<?> configInstance)
    Creates an entry that will interact with config syncing

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 instance
      parentCategory - the parent config category
      key - the key for the subcategory
      expanded - if the subcategory is expanded or not
      tooltip - the tooltip for the subcategory
      entries - 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 used
      clazz - The class of the config file being accessed
      identifier - The identifier of the field used for the config (Use EntrySyncData for this)
      configInstance - The main instance of the config (See FrozenLibConfig.INSTANCE for an example)
      Since:
      1.5