PocketMine-MP 5.15.1 git-ed158f8a1b0cfe334ac5f45febc0f633602014f2
pocketmine\world\sound\BlockPunchSound Class Reference
+ Inheritance diagram for pocketmine\world\sound\BlockPunchSound:
+ Collaboration diagram for pocketmine\world\sound\BlockPunchSound:

Public Member Functions

 __construct (private Block $block)
 
 encode (Vector3 $pos)
 

Detailed Description

Played when a player attacks a block in survival, attempting to break it.

Definition at line 35 of file BlockPunchSound.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\sound\BlockPunchSound::__construct ( private Block  $block)

Definition at line 36 of file BlockPunchSound.php.

Member Function Documentation

◆ encode()

pocketmine\world\sound\BlockPunchSound::encode ( Vector3  $pos)
Returns
ClientboundPacket[]

Implements pocketmine\world\sound\Sound.

Definition at line 38 of file BlockPunchSound.php.


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