Class IntPropertyBuilderImpl
java.lang.Object
net.replaceitem.reconfigure.config.property.builder.PropertyBuilderImpl<IntPropertyBuilder,Integer>
net.replaceitem.reconfigure.config.property.builder.NumericPropertyBuilderImpl<IntPropertyBuilder,Integer>
net.replaceitem.reconfigure.config.property.builder.IntPropertyBuilderImpl
- All Implemented Interfaces:
IntPropertyBuilder
,NumericPropertyBuilder<IntPropertyBuilder,
,Integer> PropertyBuilder<IntPropertyBuilder,
Integer>
public class IntPropertyBuilderImpl
extends NumericPropertyBuilderImpl<IntPropertyBuilder,Integer>
implements IntPropertyBuilder
-
Field Summary
Fields inherited from class net.replaceitem.reconfigure.config.property.builder.NumericPropertyBuilderImpl
max, min
Fields inherited from class net.replaceitem.reconfigure.config.property.builder.PropertyBuilderImpl
defaultValue, id, propertyBuildContext, validators
-
Constructor Summary
ConstructorsConstructorDescriptionIntPropertyBuilderImpl
(PropertyBuildContext propertyBuildContext, net.minecraft.util.Identifier id) -
Method Summary
Modifier and TypeMethodDescriptionFinishes building the integer property and starts building a color picker widget for it.asSlider()
Finishes building the integer property and starts building a slider widget for it.protected TypeAdapter
<Integer, Intermediary.IntermediaryInteger> protected void
preBuild()
This is run before callingPropertyBuilderImpl.buildImpl()
.Methods inherited from class net.replaceitem.reconfigure.config.property.builder.NumericPropertyBuilderImpl
max, min, range
Methods inherited from class net.replaceitem.reconfigure.config.property.builder.PropertyBuilderImpl
addValidator, asCustomWidget, build, buildImpl, defaultValue, getId, postBuild, self
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.replaceitem.reconfigure.api.property.NumericPropertyBuilder
max, min, range
Methods inherited from interface net.replaceitem.reconfigure.api.property.PropertyBuilder
addValidator, asCustomWidget, defaultValue
-
Constructor Details
-
IntPropertyBuilderImpl
public IntPropertyBuilderImpl(PropertyBuildContext propertyBuildContext, net.minecraft.util.Identifier id)
-
-
Method Details
-
getTypeAdapter
- Specified by:
getTypeAdapter
in classPropertyBuilderImpl<IntPropertyBuilder,
Integer>
-
asSlider
Description copied from interface:IntPropertyBuilder
Finishes building the integer property and starts building a slider widget for it. The returned widget builder can then be used to configure the widget. To finish building the widget, useWidgetBuilder.build()
which will return the created property.- Specified by:
asSlider
in interfaceIntPropertyBuilder
- Returns:
- The slider widget builder
-
asColorPicker
Description copied from interface:IntPropertyBuilder
Finishes building the integer property and starts building a color picker widget for it. The returned widget builder can then be used to configure the widget. To finish building the widget, useWidgetBuilder.build()
which will return the created property.- Specified by:
asColorPicker
in interfaceIntPropertyBuilder
- Returns:
- The color picker widget builder
-
preBuild
protected void preBuild()Description copied from class:PropertyBuilderImpl
This is run before callingPropertyBuilderImpl.buildImpl()
. Can be used to fill in missing default values or validate values.- Overrides:
preBuild
in classPropertyBuilderImpl<IntPropertyBuilder,
Integer>
-