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
-
public class NumberRangeInput extends DialogInput
-
-
Constructor Summary
Constructors Constructor Description NumberRangeInput(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)floatend()The end position of the slider (rightmost position)NumberRangeInputend(float end)The end position of the slider (rightmost position)booleanequals(Object o)inthashCode()Floatinitial()The initial value of number input, or null to fall back to the middleNumberRangeInputinitial(Float initial)The initial value of number input, or null to fall back to the middleBaseComponentlabel()The label of the sliderNumberRangeInputlabel(BaseComponent label)The label of the sliderStringlabelFormat()NumberRangeInputlabelFormat(String labelFormat)floatstart()The start position of the slider (leftmost position)NumberRangeInputstart(float start)The start position of the slider (leftmost position)Floatstep()The steps in which the input will be increased or decreased, or null if no specific stepsNumberRangeInputstep(Float step)The steps in which the input will be increased or decreased, or null if no specific stepsStringtoString()intwidth()The width of the input (default 200)NumberRangeInputwidth(int width)The width of the input (default 200)-
Methods inherited from class net.md_5.bungee.api.dialog.input.DialogInput
key, type
-
-
-
-
Constructor Detail
-
NumberRangeInput
public NumberRangeInput(String key, BaseComponent label, float start, float end)
-
NumberRangeInput
public NumberRangeInput(String key, BaseComponent label, float start, float end, Float step)
-
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 Detail
-
width
public int width()
The width of the input (default 200)
-
label
public BaseComponent label()
The label of the slider
-
labelFormat
public String 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
public Float step()
The steps in which the input will be increased or decreased, or null if no specific steps
-
initial
public Float initial()
The initial value of number input, or null to fall back to the middle
-
width
public NumberRangeInput width(int width)
The width of the input (default 200)- Returns:
this.
-
label
public NumberRangeInput label(BaseComponent label)
The label of the slider- Returns:
this.
-
labelFormat
public NumberRangeInput labelFormat(String labelFormat)
- Returns:
this.
-
start
public NumberRangeInput start(float start)
The start position of the slider (leftmost position)- Returns:
this.
-
end
public NumberRangeInput end(float end)
The end position of the slider (rightmost position)- Returns:
this.
-
step
public NumberRangeInput step(Float step)
The steps in which the input will be increased or decreased, or null if no specific steps- Returns:
this.
-
initial
public NumberRangeInput initial(Float initial)
The initial value of number input, or null to fall back to the middle- Returns:
this.
-
toString
public String toString()
- Overrides:
toStringin classDialogInput
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDialogInput
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classDialogInput
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDialogInput
-
-