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(BaseComponent contents) PlainMessageBody(BaseComponent contents, int width) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe text body.intgetWidth()The maximum width (default: 200).inthashCode()voidsetContents(BaseComponent contents) The text body.voidsetWidth(int width) The maximum width (default: 200).toString()Methods inherited from class net.md_5.bungee.api.dialog.body.DialogBody
getType
-
Constructor Details
-
PlainMessageBody
-
PlainMessageBody
-
-
Method Details
-
getContents
The text body. -
getWidth
public int getWidth()The maximum width (default: 200). -
setContents
The text body. -
setWidth
public void setWidth(int width) The maximum width (default: 200). -
toString
- Overrides:
toStringin classDialogBody
-
equals
- Overrides:
equalsin classDialogBody
-
canEqual
- Overrides:
canEqualin classDialogBody
-
hashCode
public int hashCode()- Overrides:
hashCodein classDialogBody
-