tellraw

package
v0.0.0-...-f4d221b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickEvent

type ClickEvent struct {
	Action string `json:"action"`
	Value  string `json:"value"`
	GoFunc func() `json:"-"`
}

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   string `json:"action"`
	Contents any    `json:"contents"`
}

type HoverEvent_Entity

type HoverEvent_Entity struct {
	Name *Message `json:"name,omitempty"`
	Type string   `json:"type,omitempty"`
	UUID string   `json:"uuid"`
}

type HoverEvent_Item

type HoverEvent_Item struct {
	Item  string `json:"string"`
	Count int    `json:"count,omitempty"`
	Tag   string `json:"tag,omitempty"`
}

type Message

type Message struct {
	Text          string      `json:"text"`
	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"`
}

type MsgType

type MsgType string
var (
	Text         MsgType = "text"
	Translatable MsgType = "translatable"
	Score        MsgType = "score"
	Nbt          MsgType = "nbt"
	Selector     MsgType = "selector"
	Keybind      MsgType = "keybind"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL