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
-
public class PlainMessageBody extends DialogBody
Represents a dialog body which consists of text constrained to a certain width.
-
-
Constructor Summary
Constructors Constructor Description PlainMessageBody(BaseComponent contents)PlainMessageBody(BaseComponent contents, int width)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)BaseComponentgetContents()The text body.intgetWidth()The maximum width (default: 200).inthashCode()voidsetContents(BaseComponent contents)The text body.voidsetWidth(int width)The maximum width (default: 200).StringtoString()-
Methods inherited from class net.md_5.bungee.api.dialog.body.DialogBody
getType
-
-
-
-
Constructor Detail
-
PlainMessageBody
public PlainMessageBody(BaseComponent contents)
-
PlainMessageBody
public PlainMessageBody(BaseComponent contents, int width)
-
-
Method Detail
-
getContents
public BaseComponent getContents()
The text body.
-
getWidth
public int getWidth()
The maximum width (default: 200).
-
setContents
public void setContents(BaseComponent contents)
The text body.
-
setWidth
public void setWidth(int width)
The maximum width (default: 200).
-
toString
public String toString()
- Overrides:
toStringin classDialogBody
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDialogBody
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classDialogBody
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDialogBody
-
-