CraftingRecipe: added methods to allow recipes to derive outputs from inputs

this will be needed for special recipes like shulker-box and banner recipes.
This commit is contained in:
Dylan K. Taylor
2018-03-28 19:54:52 +01:00
parent 8572e9e560
commit a1090623a2
5 changed files with 24 additions and 8 deletions

View File

@ -70,6 +70,10 @@ class ShapelessRecipe implements CraftingRecipe{
return array_map(function(Item $item) : Item{ return clone $item; }, $this->results);
}
public function getResultsFor(CraftingGrid $grid) : array{
return $this->getResults();
}
/**
* @param Item $item
*