| 
    PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
    
   | 
 
 Inheritance diagram for pocketmine\entity\effect\StringToEffectParser:
 Collaboration diagram for pocketmine\entity\effect\StringToEffectParser:Public Member Functions | |
| getKnownAliases () | |
| override (string $alias, \Closure $callback) | |
| parse (string $input) | |
| register (string $alias, \Closure $callback) | |
| registerAlias (string $existing, string $alias) | |
Protected Member Functions | |
| reprocess (string $input) | |
Handles parsing effect types from strings. This is used to interpret names in the /effect command.
@phpstan-extends StringToTParser<Effect>
Definition at line 34 of file StringToEffectParser.php.
      
  | 
  inherited | 
Definition at line 94 of file StringToTParser.php.
      
  | 
  inherited | 
@phpstan-param \Closure(string $input) : T $callback
Reimplemented in pocketmine\item\StringToItemParser.
Definition at line 57 of file StringToTParser.php.
| pocketmine\entity\effect\StringToEffectParser::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 71 of file StringToEffectParser.php.
      
  | 
  inherited | 
@phpstan-param \Closure(string $input) : T $callback
Reimplemented in pocketmine\item\StringToItemParser.
Definition at line 48 of file StringToTParser.php.
      
  | 
  inherited | 
Registers a new alias for an existing known alias.
Definition at line 64 of file StringToTParser.php.
      
  | 
  protectedinherited | 
Definition at line 89 of file StringToTParser.php.