PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\crafting\ExactRecipeIngredient Class Reference
+ Inheritance diagram for pocketmine\crafting\ExactRecipeIngredient:
+ Collaboration diagram for pocketmine\crafting\ExactRecipeIngredient:

Public Member Functions

 __construct (private Item $item)
 
 __toString ()
 
 accepts (Item $item)
 
 getItem ()
 

Detailed Description

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

Definition at line 32 of file ExactRecipeIngredient.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\crafting\ExactRecipeIngredient::__construct ( private Item  $item)

Definition at line 34 of file ExactRecipeIngredient.php.

Member Function Documentation

◆ __toString()

pocketmine\crafting\ExactRecipeIngredient::__toString ( )

Definition at line 53 of file ExactRecipeIngredient.php.

◆ accepts()

pocketmine\crafting\ExactRecipeIngredient::accepts ( Item  $item)

Implements pocketmine\crafting\RecipeIngredient.

Definition at line 46 of file ExactRecipeIngredient.php.

◆ getItem()

pocketmine\crafting\ExactRecipeIngredient::getItem ( )

Definition at line 44 of file ExactRecipeIngredient.php.


The documentation for this class was generated from the following file: