| 
    PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
    
   | 
 
 Inheritance diagram for pocketmine\player\chat\LegacyRawChatFormatter:
 Collaboration diagram for pocketmine\player\chat\LegacyRawChatFormatter:Public Member Functions | |
| __construct (private string $format) | |
| format (string $username, string $message) | |
Legacy raw string chat formatter with the same behaviour as the old PlayerChatEvent::setFormat() API. The format string should contain the placeholders {%0} and {%1} for the username and message respectively.
Definition at line 32 of file LegacyRawChatFormatter.php.
| pocketmine\player\chat\LegacyRawChatFormatter::__construct | ( | private string | $format | ) | 
Definition at line 34 of file LegacyRawChatFormatter.php.
| pocketmine\player\chat\LegacyRawChatFormatter::format | ( | string | $username, | 
| string | $message ) | 
Returns the formatted message to broadcast. This can return a plain string (which will be used as-is) or a Translatable (which will be translated into each recipient's language).
Implements pocketmine\player\chat\ChatFormatter.
Definition at line 38 of file LegacyRawChatFormatter.php.