SignChangeEvent
Extends BlockEvent
Implements Cancellable
Called when a sign's text is changed by a player.
Methods
__construct()
php
public function __construct(\pocketmine\block\BaseSign $sign, \pocketmine\player\Player $player, \pocketmine\block\utils\SignText $text, bool $frontFace = true)getNewText()
php
public function getNewText() : \pocketmine\block\utils\SignTextReturns the text which will be on the sign after the event.
getOldText()
php
public function getOldText() : \pocketmine\block\utils\SignTextReturns the text currently on the sign.
getPlayer()
php
public function getPlayer() : \pocketmine\player\PlayergetSign()
php
public function getSign() : \pocketmine\block\BaseSignisFrontFace()
php
public function isFrontFace() : boolsetNewText()
php
public function setNewText(\pocketmine\block\utils\SignText $text) : voidSets the text to be written on the sign after the event.
