Start implementing boilerplate for manipulating inventory

This commit is contained in:
Tom
2020-09-26 18:05:40 -07:00
parent 1a269d9b63
commit 670799df8d
4 changed files with 39 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import (
"github.com/google/uuid"
pk "github.com/Tnze/go-mc/net/packet"
"github.com/Tnze/go-mc/net/ptypes"
)
type seenPacketFlags uint8
@ -41,6 +42,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
OpenWindow func(pkt ptypes.OpenWindow) error
// ExperienceChange will be called every time player's experience level updates.
// Parameters: