remove inventory and hotbar method
This commit is contained in:
@ -22,8 +22,6 @@ type Client struct {
|
|||||||
// Do not send at the same goroutine!
|
// Do not send at the same goroutine!
|
||||||
Delegate chan func() error
|
Delegate chan func() error
|
||||||
Events eventBroker
|
Events eventBroker
|
||||||
|
|
||||||
Inventory [46]entity.Slot
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewClient init and return a new Client.
|
// NewClient init and return a new Client.
|
||||||
@ -72,13 +70,3 @@ type PlayerAbilities struct {
|
|||||||
type Position struct {
|
type Position struct {
|
||||||
X, Y, Z int
|
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]
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user