Class SpigotItemBody

java.lang.Object
io.github.projectunified.unidialog.spigot.body.SpigotItemBody
All Implemented Interfaces:
ItemBody<org.bukkit.inventory.ItemStack,SpigotTextBody,SpigotItemBody>, SpigotDialogBody

public class SpigotItemBody extends Object implements ItemBody<org.bukkit.inventory.ItemStack,SpigotTextBody,SpigotItemBody>, SpigotDialogBody
  • Constructor Details

    • SpigotItemBody

      public SpigotItemBody()
  • Method Details

    • item

      public SpigotItemBody item(org.bukkit.inventory.ItemStack item)
      Description copied from interface: ItemBody
      Set the item for the body
      Specified by:
      item in interface ItemBody<org.bukkit.inventory.ItemStack,SpigotTextBody,SpigotItemBody>
      Parameters:
      item - the item to set
      Returns:
      the instance of the item body for method chaining
    • description

      public SpigotItemBody description(@Nullable @Nullable Consumer<SpigotTextBody> descriptionBuilder)
      Description copied from interface: ItemBody
      Set the description for the body
      Specified by:
      description in interface ItemBody<org.bukkit.inventory.ItemStack,SpigotTextBody,SpigotItemBody>
      Parameters:
      descriptionBuilder - a consumer to build the description
      Returns:
      the instance of the item body for method chaining
    • showDecorations

      public SpigotItemBody showDecorations(boolean showDecorations)
      Description copied from interface: ItemBody
      Set the option to show decorations in the body
      Specified by:
      showDecorations in interface ItemBody<org.bukkit.inventory.ItemStack,SpigotTextBody,SpigotItemBody>
      Parameters:
      showDecorations - whether to show decorations
      Returns:
      the instance of the item body for method chaining
    • showTooltip

      public SpigotItemBody showTooltip(boolean showTooltip)
      Description copied from interface: ItemBody
      Set the option to show a tooltip in the body
      Specified by:
      showTooltip in interface ItemBody<org.bukkit.inventory.ItemStack,SpigotTextBody,SpigotItemBody>
      Parameters:
      showTooltip - whether to show a tooltip
      Returns:
      the instance of the item body for method chaining
    • width

      public SpigotItemBody width(int width)
      Description copied from interface: ItemBody
      Set the width of the item body
      Specified by:
      width in interface ItemBody<org.bukkit.inventory.ItemStack,SpigotTextBody,SpigotItemBody>
      Parameters:
      width - the width to set
      Returns:
      the instance of the item body for method chaining
    • height

      public SpigotItemBody height(int height)
      Description copied from interface: ItemBody
      Set the height of the item body
      Specified by:
      height in interface ItemBody<org.bukkit.inventory.ItemStack,SpigotTextBody,SpigotItemBody>
      Parameters:
      height - the height to set
      Returns:
      the instance of the item body for method chaining
    • getDialogBody

      public net.md_5.bungee.api.dialog.body.DialogBody getDialogBody()
      Specified by:
      getDialogBody in interface SpigotDialogBody