class
Rosegold::TextComponent::ClickEventComponent
- Rosegold::TextComponent::ClickEventComponent
- Reference
- Object
Defined in:
rosegold/models/text_component.crConstructors
Instance Method Summary
- #action : String
- #action=(action : String)
- #fields : Hash(String, Minecraft::NBT::Tag)
- #fields=(fields : Hash(String, Minecraft::NBT::Tag))
- #to_nbt : Minecraft::NBT::CompoundTag
-
#value : String | Nil
Returns the action-specific scalar field, for actions whose payload is a single string.
Constructor Detail
def self.new(action : String, fields : Hash(String, Minecraft::NBT::Tag) = {} of String => Minecraft::NBT::Tag)
#
Instance Method Detail
def value : String | Nil
#
Returns the action-specific scalar field, for actions whose payload is a single string.