Skip to content

ShapelessRecipe ​

class · pocketmine\crafting\ShapelessRecipe · source

Implements CraftingRecipe

Methods ​

__construct() ​

php
public function __construct(array $ingredients, array $results, \pocketmine\crafting\ShapelessRecipeType $type)

getIngredientCount() ​

php
public function getIngredientCount() : int

getIngredientList() ​

php
public function getIngredientList() : array

getResults() ​

php
public function getResults() : array

getResultsFor() ​

php
public function getResultsFor(\pocketmine\crafting\CraftingGrid $grid) : array

getType() ​

php
public function getType() : \pocketmine\crafting\ShapelessRecipeType

matchesCraftingGrid() ​

php
public function matchesCraftingGrid(\pocketmine\crafting\CraftingGrid $grid) : bool

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.