Files
go-mc/bot/event.go
2019-05-15 00:02:59 +08:00

15 lines
355 B
Go

package bot
import (
"github.com/Tnze/go-mc/chat"
)
type eventBroker struct {
GameStart func() error
ChatMsg func(msg chat.Message, pos byte) error
Disconnect func(reason chat.Message) error
HealthChange func() error
Die func() error
SoundPlay func(name string, category int, x, y, z float64, volume, pitch float32) error
}