Skip to content

PlayerRespawnAnchorUseEvent ​

class · pocketmine\event\player\PlayerRespawnAnchorUseEvent · source

Extends PlayerEvent
Implements Cancellable

Constants ​

ACTION_EXPLODE ​

php
public const ACTION_EXPLODE = 0

ACTION_SET_SPAWN ​

php
public const ACTION_SET_SPAWN = 1

Properties ​

$block ​

php
public \pocketmine\block\Block $block

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $player, \pocketmine\block\Block $block, int $action = self::ACTION_EXPLODE)

getAction() ​

php
public function getAction() : int

getBlock() ​

php
public function getBlock() : \pocketmine\block\Block

setAction() ​

php
public function setAction(int $action) : void

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