Added Normal and Big crafting recipes, fixed CraftingTransactionGroup count

This commit is contained in:
Shoghi Cervantes
2014-05-27 23:26:07 +02:00
parent 6746987ce5
commit 3ac60f9860
9 changed files with 333 additions and 51 deletions

View File

@ -91,6 +91,17 @@ class ShapelessRecipe implements Recipe{
return $ingredients;
}
/**
* @return int
*/
public function getIngredientCount(){
$count = 0;
foreach($this->ingredients as $ingredient){
$count += $ingredient->getCount();
}
return $count;
}
public function registerToCraftingManager(){
Server::getInstance()->getCraftingManager()->registerShapelessRecipe($this);
}