mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +00:00
tidy
This commit is contained in:
@@ -1804,6 +1804,9 @@ class Server{
|
||||
return $this->forceLanguage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public function getAuthKeyProvider() : AuthKeyProvider{
|
||||
return $this->authKeyProvider;
|
||||
}
|
||||
|
@@ -38,8 +38,8 @@ use pocketmine\network\mcpe\protocol\types\entity\EntityIds;
|
||||
use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection;
|
||||
use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataFlags;
|
||||
use pocketmine\player\Player;
|
||||
use pocketmine\world\sound\TridentHitBlockSound;
|
||||
use pocketmine\world\sound\TridentHitEntitySound;
|
||||
use pocketmine\world\sound\TridentHitGroundSound;
|
||||
|
||||
class Trident extends Projectile{
|
||||
|
||||
@@ -119,7 +119,7 @@ class Trident extends Projectile{
|
||||
protected function onHitBlock(Block $blockHit, RayTraceResult $hitResult) : void{
|
||||
parent::onHitBlock($blockHit, $hitResult);
|
||||
$this->canCollide = true;
|
||||
$this->broadcastSound(new TridentHitGroundSound());
|
||||
$this->broadcastSound(new TridentHitBlockSound());
|
||||
}
|
||||
|
||||
public function getItem() : Item{
|
||||
|
@@ -27,7 +27,7 @@ use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;
|
||||
use pocketmine\network\mcpe\protocol\types\LevelSoundEvent;
|
||||
|
||||
class TridentHitGroundSound implements Sound{
|
||||
class TridentHitBlockSound implements Sound{
|
||||
|
||||
public function encode(Vector3 $pos) : array{
|
||||
return [LevelSoundEventPacket::nonActorSound(LevelSoundEvent::ITEM_TRIDENT_HIT_GROUND, $pos, false)];
|
Reference in New Issue
Block a user