Class PENumberRangeInput
java.lang.Object
io.github.projectunified.unidialog.packetevents.input.PEDialogInput
io.github.projectunified.unidialog.packetevents.input.PENumberRangeInput
- All Implemented Interfaces:
AdventureNumberRangeInput<PENumberRangeInput>
,AdventureSupport
,NumberRangeInput<PENumberRangeInput>
public class PENumberRangeInput
extends PEDialogInput
implements AdventureNumberRangeInput<PENumberRangeInput>
-
Field Summary
Fields inherited from interface io.github.projectunified.unidialog.core.input.NumberRangeInput
DEFAULT_LABEL_FORMAT, DEFAULT_WIDTH
-
Constructor Summary
ConstructorsConstructorDescriptionPENumberRangeInput
(Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Modifier and TypeMethodDescriptionend
(float end) Set the end value of the rangecom.github.retrooper.packetevents.protocol.dialog.input.InputControl
getInput()
Set the initial value of the rangelabel
(net.kyori.adventure.text.Component 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 inputMethods inherited from class io.github.projectunified.unidialog.packetevents.input.PEDialogInput
getComponentDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.unidialog.adventure.input.AdventureNumberRangeInput
label
Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializer
-
Constructor Details
-
PENumberRangeInput
-
-
Method Details
-
width
Description copied from interface:NumberRangeInput
Set the width of the input- Specified by:
width
in interfaceNumberRangeInput<PENumberRangeInput>
- Parameters:
width
- the width- Returns:
- the current instance for method chaining
-
label
Description copied from interface:AdventureNumberRangeInput
Set the label for the input- Specified by:
label
in interfaceAdventureNumberRangeInput<PENumberRangeInput>
- 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<PENumberRangeInput>
- 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<PENumberRangeInput>
- 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<PENumberRangeInput>
- 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<PENumberRangeInput>
- 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<PENumberRangeInput>
- Parameters:
step
- the step value, can be null- Returns:
- the current instance for method chaining
-
getInput
public com.github.retrooper.packetevents.protocol.dialog.input.InputControl getInput()- Specified by:
getInput
in classPEDialogInput
-