Package net.md_5.bungee.api.dialog.input
Class NumberRangeInput
java.lang.Object
net.md_5.bungee.api.dialog.input.DialogInput
net.md_5.bungee.api.dialog.input.NumberRangeInput
Represents a number slider input.
-
Constructor Summary
ConstructorsConstructorDescriptionNumberRangeInput(@NonNull String key, @NonNull BaseComponent label, float start, float end) NumberRangeInput(@NonNull String key, @NonNull BaseComponent label, float start, float end, Float step) NumberRangeInput(@NonNull String key, @NonNull BaseComponent label, float start, float end, Float step, Float initial) NumberRangeInput(@NonNull String key, Integer width, @NonNull BaseComponent label, String labelFormat, float start, float end, Float step, Float initial) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanfloatend()The end position of the slider (rightmost position).end(float end) The end position of the slider (rightmost position).booleaninthashCode()initial()The initial value of number input, or null to fall back to the middle.@NonNull BaseComponentlabel()The label of the slider.label(@NonNull BaseComponent label) The label of the slider.A translate key used to display the label value (default: options.generic_value).labelFormat(String labelFormat) A translate key used to display the label value (default: options.generic_value).floatstart()The start position of the slider (leftmost position).start(float start) The start position of the slider (leftmost position).step()The steps in which the input will be increased or decreased, or null if no specific steps.toString()width()The width of the input (default: 200, minimum: 1, maximum: 1024).Methods inherited from class net.md_5.bungee.api.dialog.input.DialogInput
key, type
-
Constructor Details
-
NumberRangeInput
public NumberRangeInput(@NonNull @NonNull String key, @NonNull @NonNull BaseComponent label, float start, float end) -
NumberRangeInput
public NumberRangeInput(@NonNull @NonNull String key, @NonNull @NonNull BaseComponent label, float start, float end, Float step) -
NumberRangeInput
public NumberRangeInput(@NonNull @NonNull String key, @NonNull @NonNull BaseComponent label, float start, float end, Float step, Float initial) -
NumberRangeInput
-
-
Method Details
-
width
-
step
-
initial
-
width
The width of the input (default: 200, minimum: 1, maximum: 1024). -
label
The label of the slider. -
labelFormat
A translate key used to display the label value (default: options.generic_value). -
start
public float start()The start position of the slider (leftmost position). -
end
public float end()The end position of the slider (rightmost position). -
step
The steps in which the input will be increased or decreased, or null if no specific steps. -
initial
The initial value of number input, or null to fall back to the middle. -
label
The label of the slider.- Returns:
this.
-
labelFormat
A translate key used to display the label value (default: options.generic_value).- Returns:
this.
-
start
The start position of the slider (leftmost position).- Returns:
this.
-
end
The end position of the slider (rightmost position).- Returns:
this.
-
toString
- Overrides:
toStringin classDialogInput
-
equals
- Overrides:
equalsin classDialogInput
-
canEqual
- Overrides:
canEqualin classDialogInput
-
hashCode
public int hashCode()- Overrides:
hashCodein classDialogInput
-