Added CraftingGrid and BigCraftingGrid, WIP stuff for crafting

moving whole stacks in & out of the crafting grid works now, splitting stacks is fucked up because the transaction system can't handle the same slot changing multiple times in one transaction
This commit is contained in:
Dylan K. Taylor
2017-09-12 19:34:06 +01:00
parent 297172d111
commit 23a38400e2
7 changed files with 189 additions and 52 deletions

View File

@ -30,6 +30,7 @@ use pocketmine\item\Item;
use pocketmine\item\ItemFactory;
use pocketmine\network\mcpe\protocol\InventoryContentPacket;
use pocketmine\network\mcpe\protocol\InventorySlotPacket;
use pocketmine\network\mcpe\protocol\types\ContainerIds;
use pocketmine\Player;
use pocketmine\Server;
@ -73,7 +74,9 @@ abstract class BaseInventory implements Inventory{
* Returns the Minecraft PE inventory type used to show the inventory window to clients.
* @return int
*/
abstract public function getNetworkType() : int;
public function getNetworkType() : int{
return ContainerIds::NONE;
}
/**
* Returns the size of the inventory.