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.InputControlgetInput()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
getComponentDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.unidialog.adventure.input.AdventureNumberRangeInput
labelMethods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializer
-
Constructor Details
-
PENumberRangeInput
-
-
Method Details
-
width
Description copied from interface:NumberRangeInputSet the width of the input- Specified by:
widthin interfaceNumberRangeInput<PENumberRangeInput>- Parameters:
width- the width- Returns:
- the current instance for method chaining
-
label
Description copied from interface:AdventureNumberRangeInputSet the label for the input- Specified by:
labelin interfaceAdventureNumberRangeInput<PENumberRangeInput>- Parameters:
label- the label text- Returns:
- the current instance for method chaining
-
labelFormat
Description copied from interface:NumberRangeInputSet the format for the label- Specified by:
labelFormatin interfaceNumberRangeInput<PENumberRangeInput>- Parameters:
labelFormat- the format string for the label- Returns:
- the current instance for method chaining
-
start
Description copied from interface:NumberRangeInputSet the start value of the range- Specified by:
startin interfaceNumberRangeInput<PENumberRangeInput>- Parameters:
start- the start value- Returns:
- the current instance for method chaining
-
end
Description copied from interface:NumberRangeInputSet the end value of the range- Specified by:
endin interfaceNumberRangeInput<PENumberRangeInput>- Parameters:
end- the end value- Returns:
- the current instance for method chaining
-
initial
Description copied from interface:NumberRangeInputSet the initial value of the range- Specified by:
initialin interfaceNumberRangeInput<PENumberRangeInput>- Parameters:
initial- the initial value, can be null- Returns:
- the current instance for method chaining
-
step
Description copied from interface:NumberRangeInputSet the step value for the range- Specified by:
stepin 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:
getInputin classPEDialogInput
-