Package me.neznamy.tab.api.chat
Class ChatComponentEntity
java.lang.Object
me.neznamy.tab.api.chat.IChatBaseComponent
me.neznamy.tab.api.chat.ChatComponentEntity
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.neznamy.tab.api.chat.IChatBaseComponent
addExtra, deserialize, fromColoredText, getExtra, getModifier, getText, optimizedComponent, setExtra, setModifier, setText, toFlatText, toLegacyText, toString, toString
-
Constructor Details
-
ChatComponentEntity
-
-
Method Details
-
toRawText
Description copied from class:IChatBaseComponentReturns raw text without colors, only works correctly when component is organized- Overrides:
toRawTextin classIChatBaseComponent- Returns:
- raw text in this component and all child components
-
toString
Description copied from class:IChatBaseComponentConverts the component to a string representing the serialized component. This method is only used internally by json library since it's missing protocol version field used by the method.- Overrides:
toStringin classIChatBaseComponent- Returns:
- serialized component in string form
- See Also:
-
toJson
public com.google.gson.JsonObject toJson()
-