pocketmine\inventory\Recipe::getResult PHP Метод

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

public getResult ( ) : Item
Результат pocketmine\item\Item
    public function getResult();

Usage Example

 /**
  * @param Recipe $recipe
  */
 public function registerRecipe(Recipe $recipe)
 {
     $recipe->setId(UUID::fromData(++self::$RECIPE_COUNT, $recipe->getResult()->getId(), $recipe->getResult()->getDamage(), $recipe->getResult()->getCount(), $recipe->getResult()->getCompoundTag()));
     if ($recipe instanceof ShapedRecipe) {
         $this->registerShapedRecipe($recipe);
     } elseif ($recipe instanceof ShapelessRecipe) {
         $this->registerShapelessRecipe($recipe);
     } elseif ($recipe instanceof FurnaceRecipe) {
         $this->registerFurnaceRecipe($recipe);
     } elseif ($recipe instanceof BrewingRecipe) {
         $this->registerBrewingRecipe($recipe);
     }
 }