Modernize property declarations in src/world/sound

This commit is contained in:
Dylan K. Taylor
2022-04-28 14:57:01 +01:00
parent cb76c149e1
commit 2f03af51dd
15 changed files with 25 additions and 109 deletions

View File

@@ -32,13 +32,7 @@ use pocketmine\network\mcpe\protocol\types\LevelSoundEvent;
* Played when an entity hits the ground after falling a short distance.
*/
class EntityShortFallSound implements Sound{
/** @var Entity */
private $entity;
public function __construct(Entity $entity){
$this->entity = $entity;
}
public function __construct(private Entity $entity){}
public function encode(Vector3 $pos) : array{
return [LevelSoundEventPacket::create(