Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClickEvent ¶
type ClickEvent struct {
Action ClickEvent_Action `json:"action"`
Value string `json:"value"`
GoFunc GoFunc `json:"-"`
}
type ClickEvent_Action ¶
type ClickEvent_Action string
var ( OpenURL ClickEvent_Action = "open_url" OpenFile ClickEvent_Action = "open_file" RunCommand ClickEvent_Action = "run_command" SuggestCommand ClickEvent_Action = "suggest_command" ChangePage ClickEvent_Action = "change_page" CopyToClipboard ClickEvent_Action = "copy_to_clipboard" )
type Color ¶
type Color string
var ( Black Color = "black" Dark_Blue Color = "dark_blue" Dark_Green Color = "dark_green" Dark_Aqua Color = "dark_aqua" Dark_Red Color = "dark_red" Dark_Purple Color = "dark_purple" Bold Color = "gold" Gray Color = "gray" Dark_Gray Color = "dark_gray" Blue Color = "blue" Green Color = "green" Aqua Color = "aqua" Red Color = "red" Light_Purple Color = "light_purple" Yellow Color = "yellow" White Color = "white" )
type HoverEvent ¶
type HoverEvent struct {
Action HoverEvent_Action `json:"action"`
Contents any `json:"contents"`
}
type HoverEvent_Action ¶
type HoverEvent_Action string
var ( Show_Text HoverEvent_Action = "show_text" Show_Item HoverEvent_Action = "show_item" Show_Entity HoverEvent_Action = "show_entity" )
type HoverEvent_Entity ¶
type HoverEvent_Item ¶
type Message ¶
type Message struct {
Text string `json:"text,omitempty"`
Color Color `json:"color,omitempty"`
Type MsgType `json:"type,omitempty"`
Insertion string `json:"insertion,omitempty"`
Font string `json:"font,omitempty"`
Selector string `json:"selector,omitempty"`
Separator *Message `json:"separator,omitempty"`
Bold bool `json:"bold,omitempty"`
Italic bool `json:"italic,omitempty"`
Underlined bool `json:"underlined,omitempty"`
Strikethrough bool `json:"strikethrough,omitempty"`
Obfuscated bool `json:"obfuscated,omitempty"`
HoverEvent *HoverEvent `json:"hoverEvent,omitempty"`
ClickEvent *ClickEvent `json:"clickEvent,omitempty"`
}
Source Files
¶
- tellraw.go
Click to show internal directories.
Click to hide internal directories.