Class SpigotNumberRangeInput
java.lang.Object
io.github.projectunified.unidialog.spigot.input.SpigotDialogInput
io.github.projectunified.unidialog.spigot.input.SpigotNumberRangeInput
- All Implemented Interfaces:
NumberRangeInput<SpigotNumberRangeInput>
public class SpigotNumberRangeInput
extends SpigotDialogInput
implements NumberRangeInput<SpigotNumberRangeInput>
-
Field Summary
Fields inherited from class io.github.projectunified.unidialog.spigot.input.SpigotDialogInput
key
Fields inherited from interface io.github.projectunified.unidialog.core.input.NumberRangeInput
DEFAULT_LABEL_FORMAT, DEFAULT_WIDTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionend
(float end) Set the end value of the rangenet.md_5.bungee.api.dialog.input.DialogInput
Set the initial value of the rangeSet the label for the inputlabel
(net.md_5.bungee.api.chat.BaseComponent label) Set the label for the inputlabelFormat
(String labelFormat) Set the format for the labelstart
(float start) Set the start value of the rangeSet the step value for the rangewidth
(int width) Set the width of the input
-
Constructor Details
-
SpigotNumberRangeInput
-
-
Method Details
-
width
Description copied from interface:NumberRangeInput
Set the width of the input- Specified by:
width
in interfaceNumberRangeInput<SpigotNumberRangeInput>
- Parameters:
width
- the width- Returns:
- the current instance for method chaining
-
label
Set the label for the input- Parameters:
label
- the label text- Returns:
- the current instance for method chaining
-
label
Description copied from interface:NumberRangeInput
Set the label for the input- Specified by:
label
in interfaceNumberRangeInput<SpigotNumberRangeInput>
- Parameters:
label
- the label text- Returns:
- the current instance for method chaining
-
labelFormat
Description copied from interface:NumberRangeInput
Set the format for the label- Specified by:
labelFormat
in interfaceNumberRangeInput<SpigotNumberRangeInput>
- Parameters:
labelFormat
- the format string for the label- Returns:
- the current instance for method chaining
-
start
Description copied from interface:NumberRangeInput
Set the start value of the range- Specified by:
start
in interfaceNumberRangeInput<SpigotNumberRangeInput>
- Parameters:
start
- the start value- Returns:
- the current instance for method chaining
-
end
Description copied from interface:NumberRangeInput
Set the end value of the range- Specified by:
end
in interfaceNumberRangeInput<SpigotNumberRangeInput>
- Parameters:
end
- the end value- Returns:
- the current instance for method chaining
-
initial
Description copied from interface:NumberRangeInput
Set the initial value of the range- Specified by:
initial
in interfaceNumberRangeInput<SpigotNumberRangeInput>
- Parameters:
initial
- the initial value, can be null- Returns:
- the current instance for method chaining
-
step
Description copied from interface:NumberRangeInput
Set the step value for the range- Specified by:
step
in interfaceNumberRangeInput<SpigotNumberRangeInput>
- Parameters:
step
- the step value, can be null- Returns:
- the current instance for method chaining
-
getDialogInput
public net.md_5.bungee.api.dialog.input.DialogInput getDialogInput()- Specified by:
getDialogInput
in classSpigotDialogInput
-