Skip to content

ExactRecipeIngredient ​

final class · pocketmine\crafting\ExactRecipeIngredient · source

Implements RecipeIngredient

Recipe ingredient that matches exactly one item, without wildcards. Note that recipe inputs cannot require NBT.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\item\Item $item)

__toString() ​

php
public function __toString() : string

accepts() ​

php
public function accepts(\pocketmine\item\Item $item) : bool

getItem() ​

php
public function getItem() : \pocketmine\item\Item

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