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 TextInputControldecode(NBTCompound compound, PacketWrapper<?> wrapper) static voidencode(NBTCompound compound, PacketWrapper<?> wrapper, TextInputControl control) net.kyori.adventure.text.ComponentgetLabel()int@Nullable TextInputControl.MultilineOptionsgetType()intgetWidth()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:
getTypein interfaceInputControl
-
getWidth
public int getWidth() -
getLabel
public net.kyori.adventure.text.Component getLabel() -
isLabelVisible
public boolean isLabelVisible() -
getInitial
-
getMaxLength
public int getMaxLength() -
getMultiline
-