Package net.md_5.bungee.api.dialog.body
Class PlainMessageBody
java.lang.Object
net.md_5.bungee.api.dialog.body.DialogBody
net.md_5.bungee.api.dialog.body.PlainMessageBody
Represents a dialog body which consists of text constrained to a certain
width.
-
Constructor Summary
ConstructorsConstructorDescriptionPlainMessageBody(@NonNull BaseComponent contents) PlainMessageBody(@NonNull BaseComponent contents, Integer width) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean@NonNull BaseComponentcontents()The text body.contents(@NonNull BaseComponent contents) The text body.booleaninthashCode()toString()width()The maximum width (default: 200, minimum: 1, maximum: 1024).voidMethods inherited from class net.md_5.bungee.api.dialog.body.DialogBody
getType
-
Constructor Details
-
PlainMessageBody
-
PlainMessageBody
-
-
Method Details
-
width
-
contents
The text body. -
width
The maximum width (default: 200, minimum: 1, maximum: 1024). -
contents
The text body.- Returns:
this.
-
toString
- Overrides:
toStringin classDialogBody
-
equals
- Overrides:
equalsin classDialogBody
-
canEqual
- Overrides:
canEqualin classDialogBody
-
hashCode
public int hashCode()- Overrides:
hashCodein classDialogBody
-