Interface ItemDialogBody.Builder
- Enclosing interface:
ItemDialogBody
A builder for an item dialog body.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance ofItemDialogBody.description(@Nullable PlainMessageDialogBody description) Sets the description of the item dialog body, or null if not set.Sets the height of the item body.showDecorations(boolean showDecorations) Sets whether to show decorations around the item.showTooltip(boolean showTooltip) Sets whether to show a tooltip for the item.Sets the width of the item body.
-
Method Details
-
description
@Contract(value="_ -> this", mutates="this") ItemDialogBody.Builder description(@Nullable PlainMessageDialogBody description) Sets the description of the item dialog body, or null if not set.- Parameters:
description- the description of the body, or null- Returns:
- this builder
-
showDecorations
@Contract(value="_ -> this", mutates="this") ItemDialogBody.Builder showDecorations(boolean showDecorations) Sets whether to show decorations around the item.- Parameters:
showDecorations- true to show decorations, false otherwise- Returns:
- this builder
-
showTooltip
@Contract(value="_ -> this", mutates="this") ItemDialogBody.Builder showTooltip(boolean showTooltip) Sets whether to show a tooltip for the item.- Parameters:
showTooltip- true to show a tooltip, false otherwise- Returns:
- this builder
-
width
-
height
-
build
Builds a new instance ofItemDialogBody.- Returns:
- a new item dialog body instance
-