PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\crafting\MetaWildcardRecipeIngredient Class Reference
+ Inheritance diagram for pocketmine\crafting\MetaWildcardRecipeIngredient:
+ Collaboration diagram for pocketmine\crafting\MetaWildcardRecipeIngredient:

Public Member Functions

 __construct (private string $itemId,)
 
 __toString ()
 
 accepts (Item $item)
 
 getItemId ()
 

Detailed Description

Recipe ingredient that matches items by their Minecraft ID only. This is used for things like the crafting table recipe from planks (multiple types of planks are accepted).

WARNING: Plugins shouldn't usually use this. This is a hack that relies on internal Minecraft behaviour, which might change or break at any time.

Definition at line 38 of file MetaWildcardRecipeIngredient.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\crafting\MetaWildcardRecipeIngredient::__construct ( private string $itemId)

Definition at line 40 of file MetaWildcardRecipeIngredient.php.

Member Function Documentation

◆ __toString()

pocketmine\crafting\MetaWildcardRecipeIngredient::__toString ( )

Definition at line 54 of file MetaWildcardRecipeIngredient.php.

◆ accepts()

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

◆ getItemId()

pocketmine\crafting\MetaWildcardRecipeIngredient::getItemId ( )

Definition at line 44 of file MetaWildcardRecipeIngredient.php.


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