Skip to content

SurvivalBlockBreakHandler ​

final class · pocketmine\player\SurvivalBlockBreakHandler · source

Constants ​

DEFAULT_FX_INTERVAL_TICKS ​

php
public const DEFAULT_FX_INTERVAL_TICKS = 5

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $player, \pocketmine\math\Vector3 $blockPos, \pocketmine\block\Block $block, int $targetedFace, int $maxPlayerDistance, int $fxTickInterval = self::DEFAULT_FX_INTERVAL_TICKS)

__destruct() ​

php
public function __destruct()

getBlockPos() ​

php
public function getBlockPos() : \pocketmine\math\Vector3

getBreakProgress() ​

php
public function getBreakProgress() : float

getBreakSpeed() ​

php
public function getBreakSpeed() : float

getTargetedFace() ​

php
public function getTargetedFace() : int

setTargetedFace() ​

php
public function setTargetedFace(int $face) : void

update() ​

php
public function update() : bool

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