PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
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: