Documentation

SurvivalBlockBreakHandler
in package

Table of Contents

DEFAULT_FX_INTERVAL_TICKS  = 5
$block  : Block
$blockPos  : Vector3
$breakProgress  : float
$breakSpeed  : float
$fxTicker  : int
$fxTickInterval  : int
$maxPlayerDistance  : int
$player  : Player
$targetedFace  : int
__construct()  : mixed
__destruct()  : mixed
getBlockPos()  : Vector3
getBreakProgress()  : float
getBreakSpeed()  : float
getTargetedFace()  : int
setTargetedFace()  : void
update()  : bool
calculateBreakProgressPerTick()  : float
Returns the calculated break speed as percentage progress per game tick.

Constants

Properties

Methods

__construct()

public __construct(Player $player, Vector3 $blockPos, Block $block, int $targetedFace, int $maxPlayerDistance[, int $fxTickInterval = self::DEFAULT_FX_INTERVAL_TICKS ]) : mixed
Parameters
$player : Player
$blockPos : Vector3
$block : Block
$targetedFace : int
$maxPlayerDistance : int
$fxTickInterval : int = self::DEFAULT_FX_INTERVAL_TICKS
Return values
mixed

calculateBreakProgressPerTick()

Returns the calculated break speed as percentage progress per game tick.

private calculateBreakProgressPerTick() : float
Return values
float

Search results