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
  • Constructor Details

    • PaperItemBody

      public PaperItemBody(Function<String,net.kyori.adventure.text.Component> componentDeserializer)
  • Method Details

    • item

      public PaperItemBody item(org.bukkit.inventory.ItemStack item)
      Specified by:
      item in interface io.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody,PaperItemBody>
    • description

      public PaperItemBody description(@Nullable @Nullable Consumer<PaperTextBody> descriptionBuilder)
      Specified by:
      description in interface io.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody,PaperItemBody>
    • showDecorations

      public PaperItemBody showDecorations(boolean showDecorations)
      Specified by:
      showDecorations in interface io.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody,PaperItemBody>
    • showTooltip

      public PaperItemBody showTooltip(boolean showTooltip)
      Specified by:
      showTooltip in interface io.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody,PaperItemBody>
    • width

      public PaperItemBody width(int width)
      Specified by:
      width in interface io.github.projectunified.unidialog.core.body.ItemBody<org.bukkit.inventory.ItemStack,PaperTextBody,PaperItemBody>
    • height

      public PaperItemBody height(int height)
      Specified by:
      height in interface io.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:
      getDialogBody in interface PaperDialogBody