Text

sealed
trait Text
Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def children: Seq[Text]
def copyBase(format: TextFormat, insertionText: Option[String], clickAction: Option[ClickAction], hoverText: Option[HoverText], children: Seq[Text]): Text
def hoverText: Option[HoverText]
def insertionText: Option[String]

Concrete methods

def append(texts: Text*): Text
def children_=(children: Seq[Text]): Text

Tries to create a new Text where the children have been merged and compacted.

Tries to create a new Text where the children have been merged and compacted.

def hoverText(hover: HoverText): Text
def merge(other: Text): Option[Text]

Tries to merge two Texts together while preserving styling. Both texts can't have children for this to work.

Tries to merge two Texts together while preserving styling. Both texts can't have children for this to work.

Value Params
other

The text to combine with.

Returns

Some if the combination was successful, None otherwise

def onClick(action: ClickAction): Text
def setInsertion(str: String): Text
def toCharCoded: String
def toJson: String
def toPlain: String
def trim: Text