Interface ItemDialogBody

All Superinterfaces:
DialogBody

@NonExtendable public non-sealed interface ItemDialogBody extends DialogBody
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A builder for an item dialog body.
  • Method Summary

    Modifier and Type
    Method
    Description
    The description of the body, or null if not set.
    int
    The height of the item body.
    The item to display in the dialog.
    boolean
    Whether to show decorations around the item.
    boolean
    Whether to show a tooltip for the item.
    int
    The width of the item body.
  • Method Details

    • item

      @Contract(pure=true) ItemStack item()
      The item to display in the dialog.
      Returns:
      the item stack
    • description

      The description of the body, or null if not set.
      Returns:
      the description body
    • showDecorations

      @Contract(pure=true) boolean showDecorations()
      Whether to show decorations around the item.

      Decorations include damage, itemstack count, etc.

      Returns:
      true if decorations should be shown
    • showTooltip

      @Contract(pure=true) boolean showTooltip()
      Whether to show a tooltip for the item.
      Returns:
      true if a tooltip should be shown
    • width

      @Contract(pure=true) int width()
      The width of the item body.
      Returns:
      the width
    • height

      @Contract(pure=true) int height()
      The height of the item body.
      Returns:
      the height