mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
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:
parent
81ecb56095
commit
08c48d8145
@ -38,8 +38,6 @@ interface CraftingRecipe extends Recipe{
|
||||
*/
|
||||
public function setId(UUID $id);
|
||||
|
||||
public function requiresCraftingTable() : bool;
|
||||
|
||||
/**
|
||||
* @return Item[]
|
||||
*/
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user