Class TextInputControl
java.lang.Object
com.github.retrooper.packetevents.protocol.dialog.input.TextInputControl
- All Implemented Interfaces:
InputControl
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTextInputControl
(int width, net.kyori.adventure.text.Component label, boolean labelVisible, String initial, int maxLength, @Nullable TextInputControl.MultilineOptions multiline) -
Method Summary
Modifier and TypeMethodDescriptionstatic TextInputControl
decode
(NBTCompound compound, PacketWrapper<?> wrapper) static void
encode
(NBTCompound compound, PacketWrapper<?> wrapper, TextInputControl control) net.kyori.adventure.text.Component
getLabel()
int
@Nullable TextInputControl.MultilineOptions
getType()
int
getWidth()
boolean
-
Constructor Details
-
TextInputControl
public TextInputControl(int width, net.kyori.adventure.text.Component label, boolean labelVisible, String initial, int maxLength, @Nullable TextInputControl.MultilineOptions multiline)
-
-
Method Details
-
decode
-
encode
-
getType
- Specified by:
getType
in interfaceInputControl
-
getWidth
public int getWidth() -
getLabel
public net.kyori.adventure.text.Component getLabel() -
isLabelVisible
public boolean isLabelVisible() -
getInitial
-
getMaxLength
public int getMaxLength() -
getMultiline
-