mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Bucket: Added sounds for bucket fill/empty
This commit is contained in:
@ -29,6 +29,7 @@ use pocketmine\event\entity\EntityDamageByBlockEvent;
|
||||
use pocketmine\event\entity\EntityDamageEvent;
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;
|
||||
use pocketmine\Player;
|
||||
use pocketmine\Server;
|
||||
|
||||
@ -56,6 +57,14 @@ class Lava extends Liquid{
|
||||
return BlockFactory::get(Block::FLOWING_LAVA, $this->meta);
|
||||
}
|
||||
|
||||
public function getBucketFillSound() : int{
|
||||
return LevelSoundEventPacket::SOUND_BUCKET_FILL_LAVA;
|
||||
}
|
||||
|
||||
public function getBucketEmptySound() : int{
|
||||
return LevelSoundEventPacket::SOUND_BUCKET_EMPTY_LAVA;
|
||||
}
|
||||
|
||||
public function tickRate() : int{
|
||||
return 30;
|
||||
}
|
||||
|
Reference in New Issue
Block a user