class Rosegold::TextComponent::ClickEventComponent

Included Modules

Defined in:

rosegold/models/text_component.cr

Constructors

Instance Method Summary

Instance methods inherited from module Rosegold::TextComponent::ActionCompound

to_nbt : Minecraft::NBT::CompoundTag to_nbt

Constructor Detail

def self.new(action : String, fields : Hash(String, Minecraft::NBT::Tag) = {} of String => Minecraft::NBT::Tag, key_order : Array(String) = [] of String) #

[View source]

Instance Method Detail

def action : String #

[View source]
def action=(action : String) #

[View source]
def fields : Hash(String, Minecraft::NBT::Tag) #

[View source]
def fields=(fields : Hash(String, Minecraft::NBT::Tag)) #

[View source]
def key_order : Array(String) #

[View source]
def key_order=(key_order : Array(String)) #

[View source]
def value : String | Nil #

Returns the action-specific scalar field, for actions whose payload is a single string.


[View source]