Class ConfigTabImpl

java.lang.Object
net.replaceitem.reconfigure.config.widget.ConfigTabImpl
All Implemented Interfaces:
ConfigTab, PropertyBuildContext

public class ConfigTabImpl extends Object implements ConfigTab, PropertyBuildContext
  • Constructor Details

    • ConfigTabImpl

      protected ConfigTabImpl(ConfigImpl config, String name, net.minecraft.text.Text title)
  • Method Details

    • getEntries

      public List<ConfigTabImpl.TabItem> getEntries()
    • getTitle

      public net.minecraft.text.Text getTitle()
    • createHeadline

      public Void createHeadline(String name)
      Description copied from interface: ConfigTab
      Creates a headline in the config tab. The name is used for the translatable text with key reconfigure.headline.[namespace].[name].
      Specified by:
      createHeadline in interface ConfigTab
      Parameters:
      name - The name of the headline
      Returns:
      Void in order to be able to invoke this inline in a class field initializer using an assignment to a dummy Void field.
    • createHeadline

      public Void createHeadline(net.minecraft.text.Text text)
      Description copied from interface: ConfigTab
      Creates a headline in the config tab with the provided text.
      Specified by:
      createHeadline in interface ConfigTab
      Parameters:
      text - The text of the headline
      Returns:
      Void in order to be able to invoke this inline in a class field initializer using an assignment to a dummy Void field.
    • createStringProperty

      public StringPropertyBuilder createStringProperty(String name)
      Description copied from interface: ConfigTab
      Starts building a string property for this config tab.
      Specified by:
      createStringProperty in interface ConfigTab
      Parameters:
      name - The name of the property
      Returns:
      The builder for chaining
    • createIntegerProperty

      public IntPropertyBuilderImpl createIntegerProperty(String name)
      Description copied from interface: ConfigTab
      Starts building an integer property for this config tab.
      Specified by:
      createIntegerProperty in interface ConfigTab
      Parameters:
      name - The name of the property
      Returns:
      The builder for chaining
    • createDoubleProperty

      public DoublePropertyBuilderImpl createDoubleProperty(String name)
      Description copied from interface: ConfigTab
      Starts building a double property for this config tab.
      Specified by:
      createDoubleProperty in interface ConfigTab
      Parameters:
      name - The name of the property
      Returns:
      The builder for chaining
    • createBooleanProperty

      public BooleanPropertyBuilder createBooleanProperty(String name)
      Description copied from interface: ConfigTab
      Starts building a boolean property for this config tab.
      Specified by:
      createBooleanProperty in interface ConfigTab
      Parameters:
      name - The name of the property
      Returns:
      The builder for chaining
    • createEnumProperty

      public <T extends Enum<T>> EnumPropertyBuilderImpl<T> createEnumProperty(String name, Class<T> enumClass)
      Description copied from interface: ConfigTab
      Starts building an enum property for this config tab.
      Specified by:
      createEnumProperty in interface ConfigTab
      Parameters:
      name - The name of the property
      enumClass - The enum class of which all enum values will be used for the property
      Returns:
      The builder for chaining
    • createEnumProperty

      public <T> EnumPropertyBuilder<T> createEnumProperty(String name, List<T> values)
      Description copied from interface: ConfigTab
      Starts building an enum property for this config tab.
      Specified by:
      createEnumProperty in interface ConfigTab
      Parameters:
      name - The name of the property
      values - The values for the enum property. These do not need to be values of an actual enum
      Returns:
      The builder for chaining
    • createListProperty

      public ListPropertyBuilderImpl createListProperty(String name)
      Description copied from interface: ConfigTab
      Starts building a list property for this config tab.
      Specified by:
      createListProperty in interface ConfigTab
      Parameters:
      name - The name of the property
      Returns:
      The builder for chaining
    • addProperty

      public void addProperty(PropertyHolder<?> holder)
      Specified by:
      addProperty in interface PropertyBuildContext