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 interface
A builder for creating instances ofNumberRangeDialogInput
. -
Method Summary
Modifier and TypeMethodDescriptionfloat
end()
The end of the range.initial()
The initial value of the input, or null if not set.label()
The label for the input.The format for the label, which can be a translation key or a format string.float
start()
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) int
width()
The width of the input.Methods inherited from interface io.papermc.paper.registry.data.dialog.input.DialogInput
key
-
Method Details
-
width
The width of the input.- Returns:
- the width
-
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
The start of the range.- Returns:
- the start value
-
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
-