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 SingleOptionInputControldecode(NBTCompound compound, PacketWrapper<?> wrapper) static voidencode(NBTCompound compound, PacketWrapper<?> wrapper, SingleOptionInputControl control) net.kyori.adventure.text.ComponentgetLabel()getType()intgetWidth()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:
getTypein interfaceInputControl
-
getWidth
public int getWidth() -
getOptions
-
getLabel
public net.kyori.adventure.text.Component getLabel() -
isLabelVisible
public boolean isLabelVisible()
-