This commit is contained in:
PEMapModder 2016-02-18 00:08:44 +08:00
parent 3a184ddf97
commit 21c2e2d429

View File

@ -34,8 +34,8 @@ class PlayerDeathEvent extends EntityDeathEvent{
private $keepInventory = false; private $keepInventory = false;
/** /**
* @param Player $entity * @param Player $entity
* @param Item[] $drops * @param Item[] $drops
* @param string|TextContainer $deathMessage * @param string|TextContainer $deathMessage
*/ */
public function __construct(Player $entity, array $drops, $deathMessage){ public function __construct(Player $entity, array $drops, $deathMessage){
@ -50,6 +50,13 @@ class PlayerDeathEvent extends EntityDeathEvent{
return $this->entity; return $this->entity;
} }
/**
* @return Player
*/
public function getPlayer(){
return $this->entity;
}
/** /**
* @return TextContainer|string * @return TextContainer|string
*/ */