Class ConfirmationDialog
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
com.github.retrooper.packetevents.protocol.dialog.ConfirmationDialog
- All Implemented Interfaces:
Dialog
,CopyableEntity<Dialog>
,DeepComparableEntity
,MappedEntity
,net.kyori.adventure.dialog.DialogLike
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
data
-
Constructor Summary
ConstructorsConstructorDescriptionConfirmationDialog
(CommonDialogData common, ActionButton yesButton, ActionButton noButton) ConfirmationDialog
(@Nullable TypesBuilderData data, CommonDialogData common, ActionButton yesButton, ActionButton noButton) -
Method Summary
Modifier and TypeMethodDescriptioncopy
(@Nullable TypesBuilderData newData) static ConfirmationDialog
decode
(NBTCompound compound, PacketWrapper<?> wrapper) boolean
deepEquals
(Object obj) int
static void
encode
(NBTCompound compound, PacketWrapper<?> wrapper, ConfirmationDialog dialog) DialogType
<?> getType()
Methods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegistered, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.MappedEntity
getId, getName, isRegistered
-
Constructor Details
-
ConfirmationDialog
-
ConfirmationDialog
@Internal public ConfirmationDialog(@Nullable @Nullable TypesBuilderData data, CommonDialogData common, ActionButton yesButton, ActionButton noButton)
-
-
Method Details
-
decode
-
encode
public static void encode(NBTCompound compound, PacketWrapper<?> wrapper, ConfirmationDialog dialog) -
copy
- Specified by:
copy
in interfaceCopyableEntity<Dialog>
-
getCommon
-
getYesButton
-
getNoButton
-
getType
-
deepEquals
- Specified by:
deepEquals
in interfaceDeepComparableEntity
-
deepHashCode
public int deepHashCode()- Specified by:
deepHashCode
in interfaceDeepComparableEntity
-