command

package
v0.0.0-...-d1826b6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdditionalChatCb func(string)
View Source
var AdditionalTitleCb func(s string)
View Source
var BlockUpdateSubscribeMap sync.Map
View Source
var UUIDMap sync.Map //= make(map[string]func(*minecraft.Conn,*[]protocol.CommandOutputMessage))

Functions

func AllocateRequestString

func AllocateRequestString() *string

func ClearUUIDMap

func ClearUUIDMap()

func FreeRequestString

func FreeRequestString(str string)

func FreeRequestStringPtr

func FreeRequestStringPtr(str *string)

func RawTellRawRequest

func RawTellRawRequest(target types.Target, line string) string

func ReplaceItemRequest

func ReplaceItemRequest(buf *string, module *types.Module, config *types.MainConfig)

func SendChat

func SendChat(content string, conn *minecraft.Conn) error

func SendCommand

func SendCommand(command string, UUID uuid.UUID, conn *minecraft.Conn) error

func SendSizukanaCommand

func SendSizukanaCommand(command string, conn *minecraft.Conn) error

func SendWSCommand

func SendWSCommand(command string, UUID uuid.UUID, conn *minecraft.Conn) error

func SetBlockRequest

func SetBlockRequest(buf *string, module *types.Module, config *types.MainConfig)

func SetBlockRequestDEPRECATED

func SetBlockRequestDEPRECATED(module *types.Module, config *types.MainConfig) string

func TellRawRequest

func TellRawRequest(target types.Target, lines ...string) string

func Tellraw

func Tellraw(conn *minecraft.Conn, lines ...string) error

func Title

func Title(conn *minecraft.Conn, lines ...string) error

func TitleRequest

func TitleRequest(target types.Target, lines ...string) string

func WorldChatTellraw

func WorldChatTellraw(conn *minecraft.Conn, sender string, content string) error

Types

type TellrawItem

type TellrawItem struct {
	Text string `json:"text"`
}

type TellrawStruct

type TellrawStruct struct {
	RawText []TellrawItem `json:"rawtext"`
}

Jump to

Keyboard shortcuts

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