Called when a sign's text is changed by a player.
Definition at line 35 of file SignChangeEvent.php.
◆ __construct()
pocketmine\event\block\SignChangeEvent::__construct |
( |
private BaseSign | $sign, |
|
|
private Player | $player, |
|
|
private SignText | $text ) |
◆ call()
pocketmine\event\Event::call |
( |
| ) |
|
|
inherited |
Calls event handlers registered for this event.
- Exceptions
-
RuntimeException if event call recursion reaches the max depth limit
Definition at line 49 of file Event.php.
◆ getBlock()
pocketmine\event\block\BlockEvent::getBlock |
( |
| ) |
|
|
inherited |
◆ getEventName()
pocketmine\event\Event::getEventName |
( |
| ) |
|
|
finalinherited |
◆ getNewText()
pocketmine\event\block\SignChangeEvent::getNewText |
( |
| ) |
|
Returns the text which will be on the sign after the event.
Definition at line 64 of file SignChangeEvent.php.
◆ getOldText()
pocketmine\event\block\SignChangeEvent::getOldText |
( |
| ) |
|
◆ getPlayer()
pocketmine\event\block\SignChangeEvent::getPlayer |
( |
| ) |
|
◆ getSign()
pocketmine\event\block\SignChangeEvent::getSign |
( |
| ) |
|
◆ hasHandlers()
static pocketmine\event\Event::hasHandlers |
( |
| ) |
|
|
staticinherited |
Returns whether the current class context has any registered global handlers. This can be used in hot code paths to avoid unnecessary event object creation.
Usage: SomeEventClass::hasHandlers()
Definition at line 77 of file Event.php.
◆ isCancelled()
pocketmine\event\Cancellable::isCancelled |
( |
| ) |
|
|
inherited |
Returns whether this instance of the event is currently cancelled.
If it is cancelled, only downstream handlers that declare @handleCancelled
will be called with this event.
◆ setNewText()
pocketmine\event\block\SignChangeEvent::setNewText |
( |
SignText | $text | ) |
|
Sets the text to be written on the sign after the event.
Definition at line 71 of file SignChangeEvent.php.
◆ $eventName
string pocketmine\event\Event::$eventName = null |
|
protectedinherited |
The documentation for this class was generated from the following file: