PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\player\SurvivalBlockBreakHandler Class Reference
+ Collaboration diagram for pocketmine\player\SurvivalBlockBreakHandler:

Public Member Functions

 __construct (private Player $player, private Vector3 $blockPos, private Block $block, private int $targetedFace, private int $maxPlayerDistance, private int $fxTickInterval=self::DEFAULT_FX_INTERVAL_TICKS)
 
 getBlockPos ()
 
 getBreakProgress ()
 
 getBreakSpeed ()
 
 getTargetedFace ()
 
 setTargetedFace (int $face)
 
 update ()
 

Public Attributes

const DEFAULT_FX_INTERVAL_TICKS = 5
 

Detailed Description

Definition at line 36 of file SurvivalBlockBreakHandler.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\player\SurvivalBlockBreakHandler::__construct ( private Player $player,
private Vector3 $blockPos,
private Block $block,
private int $targetedFace,
private int $maxPlayerDistance,
private int $fxTickInterval = self::DEFAULT_FX_INTERVAL_TICKS )

Definition at line 44 of file SurvivalBlockBreakHandler.php.

◆ __destruct()

pocketmine\player\SurvivalBlockBreakHandler::__destruct ( )

Definition at line 120 of file SurvivalBlockBreakHandler.php.

Member Function Documentation

◆ getBlockPos()

pocketmine\player\SurvivalBlockBreakHandler::getBlockPos ( )

Definition at line 99 of file SurvivalBlockBreakHandler.php.

◆ getBreakProgress()

pocketmine\player\SurvivalBlockBreakHandler::getBreakProgress ( )

Definition at line 116 of file SurvivalBlockBreakHandler.php.

◆ getBreakSpeed()

pocketmine\player\SurvivalBlockBreakHandler::getBreakSpeed ( )

Definition at line 112 of file SurvivalBlockBreakHandler.php.

◆ getTargetedFace()

pocketmine\player\SurvivalBlockBreakHandler::getTargetedFace ( )

Definition at line 103 of file SurvivalBlockBreakHandler.php.

◆ setTargetedFace()

pocketmine\player\SurvivalBlockBreakHandler::setTargetedFace ( int $face)

Definition at line 107 of file SurvivalBlockBreakHandler.php.

◆ update()

pocketmine\player\SurvivalBlockBreakHandler::update ( )

Definition at line 77 of file SurvivalBlockBreakHandler.php.

Member Data Documentation

◆ DEFAULT_FX_INTERVAL_TICKS

const pocketmine\player\SurvivalBlockBreakHandler::DEFAULT_FX_INTERVAL_TICKS = 5

Definition at line 38 of file SurvivalBlockBreakHandler.php.


The documentation for this class was generated from the following file: