17 lines
325 B
Go
17 lines
325 B
Go
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 nbt.RawMessage) {
|
|
// TODO: accept inv data
|
|
fmt.Printf("Inventory[%d] = minecraft:%v * %d\n", i, item.ByID[item.ID(id)].Name, count)
|
|
}
|