PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
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: