Class PaperNumberRangeInput
java.lang.Object
io.github.projectunified.unidialog.paper.input.PaperDialogInput
io.github.projectunified.unidialog.paper.input.PaperNumberRangeInput
- All Implemented Interfaces:
AdventureNumberRangeInput<PaperNumberRangeInput>
,AdventureSupport
,NumberRangeInput<PaperNumberRangeInput>
public class PaperNumberRangeInput
extends PaperDialogInput
implements AdventureNumberRangeInput<PaperNumberRangeInput>
-
Field Summary
Fields inherited from class io.github.projectunified.unidialog.paper.input.PaperDialogInput
key
Fields inherited from interface io.github.projectunified.unidialog.core.input.NumberRangeInput
DEFAULT_LABEL_FORMAT, DEFAULT_WIDTH
-
Constructor Summary
ConstructorsConstructorDescriptionPaperNumberRangeInput
(String key, Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Modifier and TypeMethodDescriptionend
(float end) Set the end value of the rangeio.papermc.paper.registry.data.dialog.input.DialogInput
Set the initial value of the rangelabel
(net.kyori.adventure.text.Component label) Set the label for the inputlabelFormat
(String labelFormat) Set the format for the labelstart
(float start) Set the start value of the rangeSet the step value for the rangewidth
(int width) Set the width of the inputMethods inherited from class io.github.projectunified.unidialog.paper.input.PaperDialogInput
getComponentDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.unidialog.adventure.input.AdventureNumberRangeInput
label
Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializer
-
Constructor Details
-
PaperNumberRangeInput
-
-
Method Details
-
label
Description copied from interface:AdventureNumberRangeInput
Set the label for the input- Specified by:
label
in interfaceAdventureNumberRangeInput<PaperNumberRangeInput>
- Parameters:
label
- the label text- Returns:
- the current instance for method chaining
-
width
Description copied from interface:NumberRangeInput
Set the width of the input- Specified by:
width
in interfaceNumberRangeInput<PaperNumberRangeInput>
- Parameters:
width
- the width- Returns:
- the current instance for method chaining
-
labelFormat
Description copied from interface:NumberRangeInput
Set the format for the label- Specified by:
labelFormat
in interfaceNumberRangeInput<PaperNumberRangeInput>
- Parameters:
labelFormat
- the format string for the label- Returns:
- the current instance for method chaining
-
start
Description copied from interface:NumberRangeInput
Set the start value of the range- Specified by:
start
in interfaceNumberRangeInput<PaperNumberRangeInput>
- Parameters:
start
- the start value- Returns:
- the current instance for method chaining
-
end
Description copied from interface:NumberRangeInput
Set the end value of the range- Specified by:
end
in interfaceNumberRangeInput<PaperNumberRangeInput>
- Parameters:
end
- the end value- Returns:
- the current instance for method chaining
-
initial
Description copied from interface:NumberRangeInput
Set the initial value of the range- Specified by:
initial
in interfaceNumberRangeInput<PaperNumberRangeInput>
- Parameters:
initial
- the initial value, can be null- Returns:
- the current instance for method chaining
-
step
Description copied from interface:NumberRangeInput
Set the step value for the range- Specified by:
step
in interfaceNumberRangeInput<PaperNumberRangeInput>
- Parameters:
step
- the step value, can be null- Returns:
- the current instance for method chaining
-
getDialogInput
public io.papermc.paper.registry.data.dialog.input.DialogInput getDialogInput()- Specified by:
getDialogInput
in classPaperDialogInput
-