Definition at line 38 of file PlayerDeathEvent.php.
◆ __construct()
pocketmine\event\player\PlayerDeathEvent::__construct |
( |
Player | $entity, |
|
|
array | $drops, |
|
|
int | $xp, |
|
|
Translatable|string|null | $deathMessage ) |
◆ 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.
◆ deriveMessage()
static pocketmine\event\player\PlayerDeathEvent::deriveMessage |
( |
string | $name, |
|
|
?EntityDamageEvent | $deathCause ) |
|
static |
◆ getDeathMessage()
pocketmine\event\player\PlayerDeathEvent::getDeathMessage |
( |
| ) |
|
◆ getDeathScreenMessage()
pocketmine\event\player\PlayerDeathEvent::getDeathScreenMessage |
( |
| ) |
|
◆ getDrops()
pocketmine\event\entity\EntityDeathEvent::getDrops |
( |
| ) |
|
|
inherited |
◆ getEntity()
pocketmine\event\player\PlayerDeathEvent::getEntity |
( |
| ) |
|
◆ getEventName()
pocketmine\event\Event::getEventName |
( |
| ) |
|
|
finalinherited |
◆ getKeepInventory()
pocketmine\event\player\PlayerDeathEvent::getKeepInventory |
( |
| ) |
|
◆ getKeepXp()
pocketmine\event\player\PlayerDeathEvent::getKeepXp |
( |
| ) |
|
◆ getPlayer()
pocketmine\event\player\PlayerDeathEvent::getPlayer |
( |
| ) |
|
◆ getXpDropAmount()
pocketmine\event\entity\EntityDeathEvent::getXpDropAmount |
( |
| ) |
|
|
inherited |
Returns how much experience is dropped due to this entity's death.
Definition at line 71 of file EntityDeathEvent.php.
◆ 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.
◆ setDeathMessage()
pocketmine\event\player\PlayerDeathEvent::setDeathMessage |
( |
Translatable|string | $deathMessage | ) |
|
◆ setDeathScreenMessage()
pocketmine\event\player\PlayerDeathEvent::setDeathScreenMessage |
( |
Translatable|string | $deathScreenMessage | ) |
|
◆ setDrops()
pocketmine\event\entity\EntityDeathEvent::setDrops |
( |
array | $drops | ) |
|
|
inherited |
◆ setKeepInventory()
pocketmine\event\player\PlayerDeathEvent::setKeepInventory |
( |
bool | $keepInventory | ) |
|
◆ setKeepXp()
pocketmine\event\player\PlayerDeathEvent::setKeepXp |
( |
bool | $keepXp | ) |
|
◆ setXpDropAmount()
pocketmine\event\entity\EntityDeathEvent::setXpDropAmount |
( |
int | $xp | ) |
|
|
inherited |
◆ $entity
Entity pocketmine\event\entity\EntityEvent::$entity |
|
protectedinherited |
@phpstan-var TEntity
Definition at line 37 of file EntityEvent.php.
Referenced by pocketmine\event\entity\EntityDamageByBlockEvent\__construct(), pocketmine\event\entity\EntityDamageByChildEntityEvent\__construct(), pocketmine\event\entity\EntityDamageByEntityEvent\__construct(), pocketmine\event\entity\EntityDamageEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\__construct(), pocketmine\event\entity\EntityExplodeEvent\__construct(), pocketmine\event\player\PlayerDeathEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\getEntity(), pocketmine\event\entity\EntityEvent\getEntity(), pocketmine\event\entity\EntityShootBowEvent\getEntity(), pocketmine\event\entity\ItemDespawnEvent\getEntity(), pocketmine\event\entity\ItemSpawnEvent\getEntity(), pocketmine\event\entity\ProjectileHitEvent\getEntity(), and pocketmine\event\entity\ProjectileLaunchEvent\getEntity().
◆ $eventName
string pocketmine\event\Event::$eventName = null |
|
protectedinherited |
◆ $player
Player pocketmine\event\player\PlayerDeathEvent::$player |
|
protected |
The documentation for this class was generated from the following file: