◆ __construct()
__construct |
( |
Item |
$result, |
|
|
Item |
$ingredient |
|
) |
| |
- Parameters
-
Item | $result | |
Item | $ingredient | |
43 $this->output = clone $result;
44 $this->ingredient = clone $ingredient;
◆ getId()
- Returns
- null
Implements Recipe.
◆ getInput()
- Returns
- Item
76 return clone $this->ingredient;
◆ getResult()
- Returns
- Item
Implements Recipe.
83 return clone $this->output;
◆ registerToCraftingManager()
registerToCraftingManager |
( |
| ) |
|
◆ setId()
- Parameters
-
58 if($this->
id !== null){
59 throw new \InvalidStateException(
"Id is already set");
◆ setInput()
- Parameters
-
69 $this->ingredient = clone $item;
The documentation for this class was generated from the following file:
- src/pocketmine/inventory/FurnaceRecipe.php