Class CommonButtonData
java.lang.Object
com.github.retrooper.packetevents.protocol.dialog.button.CommonButtonData
-
Constructor Summary
ConstructorsConstructorDescriptionCommonButtonData
(net.kyori.adventure.text.Component label, @Nullable net.kyori.adventure.text.Component tooltip, int width) -
Method Summary
Modifier and TypeMethodDescriptionstatic CommonButtonData
decode
(NBTCompound compound, PacketWrapper<?> wrapper) static void
encode
(NBTCompound compound, PacketWrapper<?> wrapper, CommonButtonData button) net.kyori.adventure.text.Component
getLabel()
@Nullable net.kyori.adventure.text.Component
int
getWidth()
-
Constructor Details
-
CommonButtonData
public CommonButtonData(net.kyori.adventure.text.Component label, @Nullable net.kyori.adventure.text.Component tooltip, int width)
-
-
Method Details
-
decode
-
encode
-
getLabel
public net.kyori.adventure.text.Component getLabel() -
getTooltip
public @Nullable net.kyori.adventure.text.Component getTooltip() -
getWidth
public int getWidth()
-