Handle screen open/send content
This commit is contained in:
@ -1,8 +1,16 @@
|
||||
package screen
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/Tnze/go-mc/data/item"
|
||||
"github.com/Tnze/go-mc/nbt"
|
||||
)
|
||||
|
||||
type Inventory struct {
|
||||
}
|
||||
|
||||
func (inv Inventory) SetSlot(i int, id int32, count byte, NBT interface{}) {
|
||||
panic("implement me")
|
||||
func (inv Inventory) SetSlot(i int, id int32, count byte, NBT nbt.RawMessage) {
|
||||
// TODO: accept inv data
|
||||
fmt.Printf("Inventory[%d] = minecraft:%v * %d\n", i, item.ByID[item.ID(id)].Name, count)
|
||||
}
|
||||
|
Reference in New Issue
Block a user