This commit is contained in:
Tnze
2019-08-09 18:17:50 +08:00
parent 3aa48ab1be
commit c667d86153
2 changed files with 16 additions and 30 deletions

View File

@ -1,6 +1,7 @@
package bot
import (
"github.com/Tnze/go-mc/bot/world/entity"
"github.com/Tnze/go-mc/chat"
)
@ -13,4 +14,7 @@ type eventBroker struct {
SoundPlay func(name string, category int, x, y, z float64, volume, pitch float32) error
PluginMessage func(channel string, data []byte) error
HeldItemChange func(slot int) error
WindowsItem func(id byte, slots []entity.Slot) error
WindowsItemChange func(id byte, slotID int, slot entity.Slot)error
}