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