remove inventory and hotbar method

This commit is contained in:
Tnze
2019-08-11 09:54:09 +08:00
parent ad5dfeffd7
commit 6ed67477c7

View File

@ -22,8 +22,6 @@ type Client struct {
// Do not send at the same goroutine!
Delegate chan func() error
Events eventBroker
Inventory [46]entity.Slot
}
// NewClient init and return a new Client.
@ -72,13 +70,3 @@ type PlayerAbilities struct {
type Position struct {
X, Y, Z int
}
//HotBar return the hotbar of inventory
func (c *Client) HotBar() []entity.Slot {
return c.Inventory[36:45]
}
// MainInventory return the main inventory slots
func (c *Client) MainInventory() []entity.Slot {
return c.Inventory[9:36]
}