Class BungeeItemBody
java.lang.Object
io.github.projectunified.unidialog.bungeecord.body.BungeeItemBody
- All Implemented Interfaces:
BungeeDialogBody,ItemBody<Object,BungeeTextBody, BungeeItemBody>
public class BungeeItemBody
extends Object
implements ItemBody<Object,BungeeTextBody,BungeeItemBody>, BungeeDialogBody
-
Field Summary
Fields inherited from interface io.github.projectunified.unidialog.core.body.ItemBody
DEFAULT_HEIGHT, DEFAULT_WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(@Nullable Consumer<BungeeTextBody> descriptionBuilder) Set the description for the bodynet.md_5.bungee.api.dialog.body.DialogBodyheight(int height) Set the height of the item bodySet the item for the bodyshowDecorations(boolean showDecorations) Set the option to show decorations in the bodyshowTooltip(boolean showTooltip) Set the option to show a tooltip in the bodywidth(int width) Set the width of the item body
-
Constructor Details
-
BungeeItemBody
public BungeeItemBody()
-
-
Method Details
-
item
Description copied from interface:ItemBodySet the item for the body- Specified by:
itemin interfaceItemBody<Object,BungeeTextBody, BungeeItemBody> - Parameters:
item- the item to set- Returns:
- the instance of the item body for method chaining
-
description
Description copied from interface:ItemBodySet the description for the body- Specified by:
descriptionin interfaceItemBody<Object,BungeeTextBody, BungeeItemBody> - Parameters:
descriptionBuilder- a consumer to build the description- Returns:
- the instance of the item body for method chaining
-
showDecorations
Description copied from interface:ItemBodySet the option to show decorations in the body- Specified by:
showDecorationsin interfaceItemBody<Object,BungeeTextBody, BungeeItemBody> - Parameters:
showDecorations- whether to show decorations- Returns:
- the instance of the item body for method chaining
-
showTooltip
Description copied from interface:ItemBodySet the option to show a tooltip in the body- Specified by:
showTooltipin interfaceItemBody<Object,BungeeTextBody, BungeeItemBody> - Parameters:
showTooltip- whether to show a tooltip- Returns:
- the instance of the item body for method chaining
-
width
Description copied from interface:ItemBodySet the width of the item body- Specified by:
widthin interfaceItemBody<Object,BungeeTextBody, BungeeItemBody> - Parameters:
width- the width to set- Returns:
- the instance of the item body for method chaining
-
height
Description copied from interface:ItemBodySet the height of the item body- Specified by:
heightin interfaceItemBody<Object,BungeeTextBody, BungeeItemBody> - 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:
getDialogBodyin interfaceBungeeDialogBody
-