Class PaperItemBody
java.lang.Object
io.github.projectunified.unidialog.paper.body.PaperItemBody
- All Implemented Interfaces:
io.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,,PaperTextBody, PaperItemBody> PaperDialogBody
public class PaperItemBody
extends Object
implements io.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody,PaperItemBody>, PaperDialogBody
-
Field Summary
Fields inherited from interface io.github.projectunified.unidialog.core.body.ItemBody
DEFAULT_HEIGHT, DEFAULT_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionPaperItemBody(Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Modifier and TypeMethodDescriptiondescription(@Nullable Consumer<PaperTextBody> descriptionBuilder) io.papermc.paper.registry.data.dialog.body.DialogBodyheight(int height) item(org.bukkit.inventory.ItemStack item) showDecorations(boolean showDecorations) showTooltip(boolean showTooltip) width(int width)
-
Constructor Details
-
PaperItemBody
-
-
Method Details
-
item
- Specified by:
itemin interfaceio.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody, PaperItemBody>
-
description
- Specified by:
descriptionin interfaceio.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody, PaperItemBody>
-
showDecorations
- Specified by:
showDecorationsin interfaceio.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody, PaperItemBody>
-
showTooltip
- Specified by:
showTooltipin interfaceio.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody, PaperItemBody>
-
width
- Specified by:
widthin interfaceio.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody, PaperItemBody>
-
height
- Specified by:
heightin interfaceio.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody, PaperItemBody>
-
getDialogBody
public io.papermc.paper.registry.data.dialog.body.DialogBody getDialogBody()- Specified by:
getDialogBodyin interfacePaperDialogBody
-