pocketmine\inventory\BrewingRecipe::getInput PHP Метод

getInput() публичный Метод

public getInput ( ) : Item
Результат pocketmine\item\Item
    public function getInput()
    {
        return clone $this->ingredient;
    }

Usage Example

 /**
  * @param BrewingRecipe $recipe
  */
 public function registerBrewingRecipe(BrewingRecipe $recipe)
 {
     $input = $recipe->getInput();
     $this->brewingRecipes[$input->getId() . ":" . ($input->getDamage() === null ? "?" : $input->getDamage())] = $recipe;
 }