mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Testing handling multiple result items for ShapedRecipes
this doesn't work yet, I wanted to see how glitchy it is with cakes. The answer is: very glitchy.
This commit is contained in:
@ -23,6 +23,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\inventory;
|
||||
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\utils\UUID;
|
||||
|
||||
interface CraftingRecipe extends Recipe{
|
||||
@ -38,4 +39,14 @@ interface CraftingRecipe extends Recipe{
|
||||
public function setId(UUID $id);
|
||||
|
||||
public function requiresCraftingTable() : bool;
|
||||
|
||||
/**
|
||||
* @return Item[]
|
||||
*/
|
||||
public function getExtraResults() : array;
|
||||
|
||||
/**
|
||||
* @return Item[]
|
||||
*/
|
||||
public function getAllResults() : array;
|
||||
}
|
Reference in New Issue
Block a user