Interface NumberRangeDialogInput
- All Superinterfaces:
DialogInput
A number range dialog input.
Created via DialogInput.numberRange(String, int, Component, String, float, float, Float, Float)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for creating instances ofNumberRangeDialogInput. -
Method Summary
Modifier and TypeMethodDescriptionfloatend()The end of the range.initial()The initial value of the input, or null if not set.net.kyori.adventure.text.Componentlabel()The label for the input.The format for the label, which can be a translation key or a format string.floatstart()The start of the range.step()The step size for the input, or null if not set.@org.jetbrains.annotations.Range(from=1L, to=1024L) intwidth()The width of the input.Methods inherited from interface io.papermc.paper.registry.data.dialog.input.DialogInput
key
-
Method Details
-
width
@Contract(pure=true) @org.jetbrains.annotations.Range(from=1L, to=1024L) int width()The width of the input.- Returns:
- the width
-
label
@Contract(pure=true) net.kyori.adventure.text.Component label()The label for the input.- Returns:
- the label component
-
labelFormat
The format for the label, which can be a translation key or a format string.Example:
"%s: %s"or"options.generic_value"- Returns:
- the label format
-
start
@Contract(pure=true) float start()The start of the range.- Returns:
- the start value
-
end
@Contract(pure=true) float end()The end of the range.- Returns:
- the end value
-
initial
The initial value of the input, or null if not set.- Returns:
- the initial value, or null
-
step
The step size for the input, or null if not set.- Returns:
- the step size, or null
-