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
-
Constructor Summary
ConstructorsConstructorDescriptionNumberRangeInput(String key, int width, BaseComponent label, String labelFormat, float start, float end, Float step, Float initial) NumberRangeInput(String key, BaseComponent label, float start, float end) NumberRangeInput(String key, BaseComponent label, float start, float end, Float step) NumberRangeInput(String key, BaseComponent label, 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 middleThe initial value of number input, or null to fall back to the middlelabel()The label of the sliderlabel(BaseComponent label) The label of the sliderlabelFormat(String labelFormat) 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 stepsThe steps in which the input will be increased or decreased, or null if no specific stepstoString()intwidth()The width of the input (default 200)width(int width) The width of the input (default 200)Methods inherited from class net.md_5.bungee.api.dialog.input.DialogInput
key, type
-
Constructor Details
-
NumberRangeInput
-
NumberRangeInput
-
NumberRangeInput
public NumberRangeInput(String key, BaseComponent label, float start, float end, Float step, Float initial) -
NumberRangeInput
public NumberRangeInput(String key, int width, BaseComponent label, String labelFormat, float start, float end, Float step, Float initial)
-
-
Method Details
-
width
public int width()The width of the input (default 200) -
label
The label of the slider -
labelFormat
-
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 -
width
The width of the input (default 200)- Returns:
this.
-
label
The label of the slider- Returns:
this.
-
labelFormat
- Returns:
this.
-
start
The start position of the slider (leftmost position)- Returns:
this.
-
end
The end position of the slider (rightmost position)- Returns:
this.
-
step
The steps in which the input will be increased or decreased, or null if no specific steps- Returns:
this.
-
initial
The initial value of number input, or null to fall back to the middle- Returns:
this.
-
toString
- Overrides:
toStringin classDialogInput
-
equals
- Overrides:
equalsin classDialogInput
-
canEqual
- Overrides:
canEqualin classDialogInput
-
hashCode
public int hashCode()- Overrides:
hashCodein classDialogInput
-