Class ConfigTabImpl
java.lang.Object
net.replaceitem.reconfigure.config.widget.ConfigTabImpl
- All Implemented Interfaces:
ConfigTab
,PropertyBuildContext
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ConfigTabImpl
(ConfigImpl config, String name, net.minecraft.text.Text title) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(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.Text
getTitle()
-
Constructor Details
-
ConfigTabImpl
-
-
Method Details
-
getEntries
-
getTitle
public net.minecraft.text.Text getTitle() -
createHeadline
Description copied from interface:ConfigTab
Creates a headline in the config tab. The name is used for the translatable text with keyreconfigure.headline.[namespace].[name]
.- Specified by:
createHeadline
in interfaceConfigTab
- 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 dummyVoid
field.
-
createHeadline
Description copied from interface:ConfigTab
Creates a headline in the config tab with the provided text.- Specified by:
createHeadline
in interfaceConfigTab
- 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 dummyVoid
field.
-
createStringProperty
Description copied from interface:ConfigTab
Starts building a string property for this config tab.- Specified by:
createStringProperty
in interfaceConfigTab
- Parameters:
name
- The name of the property- Returns:
- The builder for chaining
-
createIntegerProperty
Description copied from interface:ConfigTab
Starts building an integer property for this config tab.- Specified by:
createIntegerProperty
in interfaceConfigTab
- Parameters:
name
- The name of the property- Returns:
- The builder for chaining
-
createDoubleProperty
Description copied from interface:ConfigTab
Starts building a double property for this config tab.- Specified by:
createDoubleProperty
in interfaceConfigTab
- Parameters:
name
- The name of the property- Returns:
- The builder for chaining
-
createBooleanProperty
Description copied from interface:ConfigTab
Starts building a boolean property for this config tab.- Specified by:
createBooleanProperty
in 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:ConfigTab
Starts building an enum property for this config tab.- Specified by:
createEnumProperty
in 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:ConfigTab
Starts building an enum property for this config tab.- Specified by:
createEnumProperty
in 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:ConfigTab
Starts building a list property for this config tab.- Specified by:
createListProperty
in interfaceConfigTab
- Parameters:
name
- The name of the property- Returns:
- The builder for chaining
-
addProperty
- Specified by:
addProperty
in interfacePropertyBuildContext
-