Rosegold::TextComponent
Inherits JSON::Serializable / Reference / Object
Constants
Constructors
new(pull : JSON::PullParser)
Sourcenew(text : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
block
Sourceblock=(block : String | Nil)
Sourcebold
Sourcebold=(bold : Bool | Nil)
Sourceclick_event
Sourceclick_event=(click_event : ClickEventComponent | Nil)
Sourceentity
Sourceentity=(entity : String | Nil)
Sourcefallback
Sourcefallback=(fallback : String | Nil)
Sourcefont
Sourcefont=(font : String | Nil)
Sourcehover_event
Sourcehover_event=(hover_event : HoverEventComponent | Nil)
Sourceinterpret
Sourceinterpret=(interpret : Bool | Nil)
Sourceitalic
Sourceitalic=(italic : Bool | Nil)
Sourcekeybind
Sourcekeybind=(keybind : String | Nil)
Sourcenbt
Sourcenbt=(nbt : String | Nil)
Sourceobfuscated
Sourceobfuscated=(obfuscated : Bool | Nil)
Sourcescore
Sourcescore=(score : ScoreComponent | Nil)
Sourceselector
Sourceselector=(selector : String | Nil)
Sourceseparator
Sourceseparator=(separator : TextComponent | Nil)
Sourceshadow_color
Sourcestorage
Sourcestorage=(storage : String | Nil)
Sourcestrikethrough
Sourcestrikethrough=(strikethrough : Bool | Nil)
Sourcetext
Sourcetext=(text : String | Nil)
Sourceto_nbt
Sourceto_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>
to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
translate
Sourcetranslate=(translate : String | Nil)
Sourceunderlined
Sourceunderlined=(underlined : Bool | Nil)
Sourcewith
Sourcewith=(with __arg0 : Array(TextComponent | String) | Nil)
Source