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, minFields 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 voidpreBuild()This is run before callingPropertyBuilderImpl.buildImpl().Methods inherited from class net.replaceitem.reconfigure.config.property.builder.NumericPropertyBuilderImpl
max, min, rangeMethods inherited from class net.replaceitem.reconfigure.config.property.builder.PropertyBuilderImpl
addValidator, asCustomWidget, build, buildImpl, buildWithoutWidget, defaultValue, getId, postBuild, selfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.replaceitem.reconfigure.api.property.NumericPropertyBuilder
max, min, rangeMethods inherited from interface net.replaceitem.reconfigure.api.property.PropertyBuilder
addValidator, asCustomWidget, buildWithoutWidget, defaultValue
-
Constructor Details
-
IntPropertyBuilderImpl
public IntPropertyBuilderImpl(PropertyBuildContext propertyBuildContext, net.minecraft.util.Identifier id)
-
-
Method Details
-
getTypeAdapter
- Specified by:
getTypeAdapterin classPropertyBuilderImpl<IntPropertyBuilder,Integer>
-
asSlider
Description copied from interface:IntPropertyBuilderFinishes 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:
asSliderin interfaceIntPropertyBuilder- Returns:
- The slider widget builder
-
asColorPicker
Description copied from interface:IntPropertyBuilderFinishes 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:
asColorPickerin interfaceIntPropertyBuilder- Returns:
- The color picker widget builder
-
preBuild
protected void preBuild()Description copied from class:PropertyBuilderImplThis is run before callingPropertyBuilderImpl.buildImpl(). Can be used to fill in missing default values or validate values.- Overrides:
preBuildin classPropertyBuilderImpl<IntPropertyBuilder,Integer>
-