Skip to content

Translatable ​

final class · pocketmine\lang\Translatable · source

Properties ​

$params protected ​

php
protected array $params

$text ​

php
public string $text

Methods ​

__construct() ​

php
public function __construct(string $text, array $params = [])

format() ​

php
public function format(string $before, string $after) : self

getParameter() ​

php
public function getParameter(int|string $i) : \pocketmine\lang\Translatable|string|null

getParameters() ​

php
public function getParameters() : array

getText() ​

php
public function getText() : string

postfix() ​

php
public function postfix(string $postfix) : self

prefix() ​

php
public function prefix(string $prefix) : self

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.