Class ChatComponentEntity

java.lang.Object
me.neznamy.tab.api.chat.IChatBaseComponent
me.neznamy.tab.api.chat.ChatComponentEntity

public class ChatComponentEntity extends IChatBaseComponent
  • Constructor Details

    • ChatComponentEntity

      public ChatComponentEntity(String type, UUID id, String name)
  • Method Details

    • toRawText

      public String toRawText()
      Description copied from class: IChatBaseComponent
      Returns raw text without colors, only works correctly when component is organized
      Overrides:
      toRawText in class IChatBaseComponent
      Returns:
      raw text in this component and all child components
    • toString

      public String toString()
      Description copied from class: IChatBaseComponent
      Converts 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:
      toString in class IChatBaseComponent
      Returns:
      serialized component in string form
      See Also:
    • toJson

      public com.google.gson.JsonObject toJson()