Class SingleOptionInputControl
java.lang.Object
com.github.retrooper.packetevents.protocol.dialog.input.SingleOptionInputControl
- All Implemented Interfaces:
InputControl
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSingleOptionInputControl
(int width, List<SingleOptionInputControl.Entry> options, net.kyori.adventure.text.Component label, boolean labelVisible) -
Method Summary
Modifier and TypeMethodDescriptionstatic SingleOptionInputControl
decode
(NBTCompound compound, PacketWrapper<?> wrapper) static void
encode
(NBTCompound compound, PacketWrapper<?> wrapper, SingleOptionInputControl control) net.kyori.adventure.text.Component
getLabel()
getType()
int
getWidth()
boolean
-
Constructor Details
-
SingleOptionInputControl
public SingleOptionInputControl(int width, List<SingleOptionInputControl.Entry> options, net.kyori.adventure.text.Component label, boolean labelVisible)
-
-
Method Details
-
decode
-
encode
public static void encode(NBTCompound compound, PacketWrapper<?> wrapper, SingleOptionInputControl control) -
getType
- Specified by:
getType
in interfaceInputControl
-
getWidth
public int getWidth() -
getOptions
-
getLabel
public net.kyori.adventure.text.Component getLabel() -
isLabelVisible
public boolean isLabelVisible()
-