Class ConfigTabImpl
java.lang.Object
net.replaceitem.reconfigure.config.widget.ConfigTabImpl
- All Implemented Interfaces:
ConfigTab,PropertyBuildContext
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConfigTabImpl(ConfigImpl config, String name, net.minecraft.text.Text title) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(PropertyHolder<?> holder) createBooleanProperty(String name) Starts building a boolean property for this config tab.createDoubleProperty(String name) Starts building a double property for this config tab.<T extends Enum<T>>
EnumPropertyBuilderImpl<T> createEnumProperty(String name, Class<T> enumClass) Starts building an enum property for this config tab.<T> EnumPropertyBuilder<T> createEnumProperty(String name, List<T> values) Starts building an enum property for this config tab.createHeadline(String name) Creates a headline in the config tab.createHeadline(net.minecraft.text.Text text) Creates a headline in the config tab with the provided text.createIntegerProperty(String name) Starts building an integer property for this config tab.createListProperty(String name) Starts building a list property for this config tab.createStringProperty(String name) Starts building a string property for this config tab.net.minecraft.text.TextgetTitle()
-
Constructor Details
-
ConfigTabImpl
-
-
Method Details
-
getEntries
-
getTitle
public net.minecraft.text.Text getTitle() -
createHeadline
Description copied from interface:ConfigTabCreates a headline in the config tab. The name is used for the translatable text with keyreconfigure.headline.[namespace].[name].- Specified by:
createHeadlinein interfaceConfigTab- Parameters:
name- The name of the headline- Returns:
Voidin order to be able to invoke this inline in a class field initializer using an assignment to a dummyVoidfield.
-
createHeadline
Description copied from interface:ConfigTabCreates a headline in the config tab with the provided text.- Specified by:
createHeadlinein interfaceConfigTab- Parameters:
text- The text of the headline- Returns:
Voidin order to be able to invoke this inline in a class field initializer using an assignment to a dummyVoidfield.
-
createStringProperty
Description copied from interface:ConfigTabStarts building a string property for this config tab.- Specified by:
createStringPropertyin interfaceConfigTab- Parameters:
name- The name of the property- Returns:
- The builder for chaining
-
createIntegerProperty
Description copied from interface:ConfigTabStarts building an integer property for this config tab.- Specified by:
createIntegerPropertyin interfaceConfigTab- Parameters:
name- The name of the property- Returns:
- The builder for chaining
-
createDoubleProperty
Description copied from interface:ConfigTabStarts building a double property for this config tab.- Specified by:
createDoublePropertyin interfaceConfigTab- Parameters:
name- The name of the property- Returns:
- The builder for chaining
-
createBooleanProperty
Description copied from interface:ConfigTabStarts building a boolean property for this config tab.- Specified by:
createBooleanPropertyin interfaceConfigTab- 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:ConfigTabStarts building an enum property for this config tab.- Specified by:
createEnumPropertyin interfaceConfigTab- Parameters:
name- The name of the propertyenumClass- The enum class of which all enum values will be used for the property- Returns:
- The builder for chaining
-
createEnumProperty
Description copied from interface:ConfigTabStarts building an enum property for this config tab.- Specified by:
createEnumPropertyin interfaceConfigTab- Parameters:
name- The name of the propertyvalues- The values for the enum property. These do not need to be values of an actual enum- Returns:
- The builder for chaining
-
createListProperty
Description copied from interface:ConfigTabStarts building a list property for this config tab.- Specified by:
createListPropertyin interfaceConfigTab- Parameters:
name- The name of the property- Returns:
- The builder for chaining
-
addProperty
- Specified by:
addPropertyin interfacePropertyBuildContext
-