support Inventory and Delegate

This commit is contained in:
JunDao
2019-05-19 17:44:49 +08:00
parent 2c41d9b901
commit 438285676d
6 changed files with 1163 additions and 857 deletions

View File

@ -1,6 +1,7 @@
package entity
import (
"github.com/Tnze/go-mc/data"
"github.com/Tnze/go-mc/nbt"
pk "github.com/Tnze/go-mc/net/packet"
)
@ -37,3 +38,7 @@ func (s *Slot) Decode(r pk.DecodeReader) error {
}
return nil
}
func (s Slot) String() string {
return data.ItemNameByID[s.ItemID]
}