Class CommonDialogData
java.lang.Object
com.github.retrooper.packetevents.protocol.dialog.CommonDialogData
-
Constructor Summary
ConstructorsConstructorDescriptionCommonDialogData
(net.kyori.adventure.text.Component title, @Nullable net.kyori.adventure.text.Component externalTitle, boolean canCloseWithEscape, boolean pause, DialogAction afterAction, List<DialogBody> body, List<Input> inputs) -
Method Summary
Modifier and TypeMethodDescriptionstatic CommonDialogData
decode
(NBTCompound compound, PacketWrapper<?> wrapper) static void
encode
(NBTCompound compound, PacketWrapper<?> wrapper, CommonDialogData data) getBody()
@Nullable net.kyori.adventure.text.Component
net.kyori.adventure.text.Component
getTitle()
boolean
boolean
isPause()
-
Constructor Details
-
CommonDialogData
public CommonDialogData(net.kyori.adventure.text.Component title, @Nullable net.kyori.adventure.text.Component externalTitle, boolean canCloseWithEscape, boolean pause, DialogAction afterAction, List<DialogBody> body, List<Input> inputs)
-
-
Method Details
-
decode
-
encode
-
getTitle
public net.kyori.adventure.text.Component getTitle() -
getExternalTitle
public @Nullable net.kyori.adventure.text.Component getExternalTitle() -
isCanCloseWithEscape
public boolean isCanCloseWithEscape() -
isPause
public boolean isPause() -
getAfterAction
-
getBody
-
getInputs
-