From 6ed67477c773daecef3331998fbcdc0f60d31a7c Mon Sep 17 00:00:00 2001 From: Tnze Date: Sun, 11 Aug 2019 09:54:09 +0800 Subject: [PATCH] remove inventory and hotbar method --- bot/client.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/bot/client.go b/bot/client.go index 1fa346f..fe052ba 100644 --- a/bot/client.go +++ b/bot/client.go @@ -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] -}