Class BooleanInputControl
java.lang.Object
com.github.retrooper.packetevents.protocol.dialog.input.BooleanInputControl
- All Implemented Interfaces:
InputControl
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanInputControl
(net.kyori.adventure.text.Component label, boolean initial, String onTrue, String onFalse) -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanInputControl
decode
(NBTCompound compound, PacketWrapper<?> wrapper) static void
encode
(NBTCompound compound, PacketWrapper<?> wrapper, BooleanInputControl control) net.kyori.adventure.text.Component
getLabel()
getType()
boolean
-
Constructor Details
-
BooleanInputControl
-
-
Method Details
-
decode
-
encode
public static void encode(NBTCompound compound, PacketWrapper<?> wrapper, BooleanInputControl control) -
getType
- Specified by:
getType
in interfaceInputControl
-
getLabel
public net.kyori.adventure.text.Component getLabel() -
isInitial
public boolean isInitial() -
getOnTrue
-
getOnFalse
-