| 
    PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
    
   | 
 
 Inheritance diagram for pocketmine\item\StringToItemParser:
 Collaboration diagram for pocketmine\item\StringToItemParser:Public Member Functions | |
| getKnownAliases () | |
| lookupAliases (Item $item) | |
| lookupBlockAliases (Block $block) | |
| override (string $alias, \Closure $callback) | |
| parse (string $input) | |
| register (string $alias, \Closure $callback) | |
| registerAlias (string $existing, string $alias) | |
| registerBlock (string $alias, \Closure $callback) | |
Protected Member Functions | |
| reprocess (string $input) | |
Handles parsing items from strings. This is used to interpret names from the /give command (and others).
@phpstan-extends StringToTParser<Item>
Definition at line 49 of file StringToItemParser.php.
      
  | 
  inherited | 
Definition at line 94 of file StringToTParser.php.
| pocketmine\item\StringToItemParser::lookupAliases | ( | Item | $item | ) | 
Returns a list of currently registered aliases that resolve to the given item.
Definition at line 1636 of file StringToItemParser.php.
| pocketmine\item\StringToItemParser::lookupBlockAliases | ( | Block | $block | ) | 
Returns a list of currently registered aliases that resolve to the item form of the given block.
Definition at line 1647 of file StringToItemParser.php.
| pocketmine\item\StringToItemParser::override | ( | string | $alias, | 
| \Closure | $callback ) | 
@phpstan-param \Closure(string $input) : T $callback
Reimplemented from pocketmine\utils\StringToTParser.
Definition at line 1607 of file StringToItemParser.php.
| pocketmine\item\StringToItemParser::parse | ( | string | $input | ) | 
Tries to parse the specified string into a corresponding instance of T. @phpstan-return T|null
Reimplemented from pocketmine\utils\StringToTParser.
Definition at line 1626 of file StringToItemParser.php.
| pocketmine\item\StringToItemParser::register | ( | string | $alias, | 
| \Closure | $callback ) | 
@phpstan-param \Closure(string $input) : T $callback
Reimplemented from pocketmine\utils\StringToTParser.
Definition at line 1601 of file StringToItemParser.php.
      
  | 
  inherited | 
Registers a new alias for an existing known alias.
Definition at line 64 of file StringToTParser.php.
| pocketmine\item\StringToItemParser::registerBlock | ( | string | $alias, | 
| \Closure | $callback ) | 
@phpstan-param \Closure(string $input) : Block $callback
Definition at line 1622 of file StringToItemParser.php.
      
  | 
  protectedinherited | 
Definition at line 89 of file StringToTParser.php.