CraftingRecipe: removed requiresCraftingTable()

the requirement for a crafting table is determined by the number of ingredients can fit on the grid (shapeless) or the max height and width (shaped). It's impossible to craft a big recipe with a small crafting table simply because you're not able to put the required resources into the grid.
This commit is contained in:
Dylan K. Taylor 2018-03-27 12:53:19 +01:00
parent 81ecb56095
commit 08c48d8145
3 changed files with 0 additions and 10 deletions

View File

@ -38,8 +38,6 @@ interface CraftingRecipe extends Recipe{
*/
public function setId(UUID $id);
public function requiresCraftingTable() : bool;
/**
* @return Item[]
*/

View File

@ -196,10 +196,6 @@ class ShapedRecipe implements CraftingRecipe{
$manager->registerShapedRecipe($this);
}
public function requiresCraftingTable() : bool{
return $this->getHeight() > 2 or $this->getWidth() > 2;
}
/**
* @param Item[][] $input
*

View File

@ -136,10 +136,6 @@ class ShapelessRecipe implements CraftingRecipe{
$manager->registerShapelessRecipe($this);
}
public function requiresCraftingTable() : bool{
return count($this->ingredients) > 4;
}
/**
* @param Item[][] $input
* @param Item[][] $output