Class ItemDialogBody
java.lang.Object
com.github.retrooper.packetevents.protocol.dialog.body.ItemDialogBody
- All Implemented Interfaces:
DialogBody
-
Constructor Summary
ConstructorsConstructorDescriptionItemDialogBody
(ItemStack item, @Nullable PlainMessage description, boolean showDecorations, boolean showTooltip, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemDialogBody
decode
(NBTCompound compound, PacketWrapper<?> wrapper) static void
encode
(NBTCompound compound, PacketWrapper<?> wrapper, ItemDialogBody body) @Nullable PlainMessage
int
getItem()
getType()
int
getWidth()
boolean
boolean
-
Constructor Details
-
ItemDialogBody
public ItemDialogBody(ItemStack item, @Nullable PlainMessage description, boolean showDecorations, boolean showTooltip, int width, int height)
-
-
Method Details
-
decode
-
encode
-
getType
- Specified by:
getType
in interfaceDialogBody
-
getItem
-
getDescription
-
isShowDecorations
public boolean isShowDecorations() -
isShowTooltip
public boolean isShowTooltip() -
getWidth
public int getWidth() -
getHeight
public int getHeight()
-