public class ChatTag
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
bold
|
ChatClickEvent
|
clickEvent
|
ChatColor |
color
|
java.util.ArrayList<ChatTag>
|
extra
|
ChatHoverEvent
|
hoverEvent
|
java.lang.String |
insertion
|
boolean |
italic
|
boolean |
obfuscated
|
ChatScoreData |
score
|
java.lang.String |
selector
|
boolean |
strikethrough
|
java.lang.String |
text
|
java.lang.String |
translate
|
boolean |
underlined
|
java.util.ArrayList<ChatTag>
|
with
|
Modifier and Type | Method and Description |
---|---|
ChatTag |
cloneFormat(ChatTag target)
|
static ChatTag
|
fromBaseComponent(net.md_5.bungee.api.chat.BaseComponent comp)
|
static ChatTag
|
fromBaseComponents(net.md_5.bungee.api.chat.BaseComponent[] comps)
|
static ChatTag
|
fromColoredText(java.lang.String colText)
|
static ChatTag
|
fromExtraText(java.lang.String extraText)
|
static ChatTag
|
fromICBC(java.lang.Object icbc)
|
static ChatTag
|
fromSeveralTag(java.util.ArrayList<ChatTag> ctl)
|
java.lang.String |
getFormatPrefix()
|
boolean |
isSimpleText()
|
ChatTag |
setExtra(char extraType,
java.lang.String value)
Sets an extra data for this ChatTag.
|
static java.lang.String |
stripExtras(java.lang.String extraText)
|
net.md_5.bungee.api.chat.BaseComponent |
toBaseComponent()
|
net.md_5.bungee.api.chat.BaseComponent[] |
toBaseComponents()
|
java.lang.String |
toColoredString()
|
java.lang.String |
toExtraString()
|
java.lang.String |
toFormatlessString()
|
java.lang.Object |
toICBC()
|
java.lang.String |
toString()
|
public boolean bold
public boolean italic
public boolean underlined
public boolean strikethrough
public boolean obfuscated
public ChatClickEvent clickEvent
public ChatColor color
public java.util.ArrayList<ChatTag> extra
public ChatHoverEvent hoverEvent
public ChatScoreData score
public java.lang.String text
public java.lang.String translate
public java.lang.String selector
public java.lang.String insertion
public java.util.ArrayList<ChatTag> with
public static ChatTag fromBaseComponent(net.md_5.bungee.api.chat.BaseComponent comp)
public static ChatTag fromBaseComponents(net.md_5.bungee.api.chat.BaseComponent[] comps)
public static ChatTag fromColoredText(java.lang.String colText)
public static ChatTag fromExtraText(java.lang.String extraText)
public static ChatTag fromICBC(java.lang.Object icbc)
public static java.lang.String stripExtras(java.lang.String extraText)
public java.lang.String getFormatPrefix()
public boolean isSimpleText()
public ChatTag setExtra(char extraType, java.lang.String value)
extraType
- The character representing the extra typevalue
- A String representing the value of this extrapublic net.md_5.bungee.api.chat.BaseComponent toBaseComponent()
public net.md_5.bungee.api.chat.BaseComponent[] toBaseComponents()
public java.lang.String toColoredString()
public java.lang.String toExtraString()
public java.lang.String toFormatlessString()
public java.lang.Object toICBC()
public java.lang.String toString()
toString
in class java.lang.Object