Added CraftItemEvent, Crafting system now uses Transactions

This commit is contained in:
Shoghi Cervantes
2014-05-27 17:49:22 +02:00
parent 3fc1be1262
commit 6746987ce5
14 changed files with 348 additions and 105 deletions

View File

@ -22,6 +22,7 @@
namespace pocketmine\inventory;
use pocketmine\item\Item;
use pocketmine\Server;
class ShapedRecipe implements Recipe{
/** @var Item */
@ -98,4 +99,8 @@ class ShapedRecipe implements Recipe{
public function getShape(){
return $this->rows;
}
public function registerToCraftingManager(){
Server::getInstance()->getCraftingManager()->registerShapedRecipe($this);
}
}