class

Rosegold::Chat

Inherits JSON::Serializable / Reference / Object

Constants

TRANSLATIONS = TextComponent::TRANSLATIONS

Constructors

new(pull : JSON::PullParser)
Source
new(text : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

bold
Source
bold=(bold : Bool | Nil)
Source
click_event
Source
click_event=(click_event : JSON::Any | Nil)
Source
color
Source
color=(color : String | Nil)
Source
extra
Source
extra=(extra : Array(Rosegold::Chat) | Nil)
Source
extra_text
Source
hover_event
Source
hover_event=(hover_event : JSON::Any | Nil)
Source
insertion
Source
insertion=(insertion : String | Nil)
Source
italic
Source
italic=(italic : Bool | Nil)
Source
obfuscated
Source
obfuscated=(obfuscated : Bool | Nil)
Source
strikethrough
Source
strikethrough=(strikethrough : Bool | Nil)
Source
text
Source
text=(text : String | Nil)
Source
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
translate
Source
translate=(translate : String | Nil)
Source
underlined
Source
underlined=(underlined : Bool | Nil)
Source
with
Source
with=(with __arg0 : Array(Chat | String) | Nil)
Source