mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Modernize property declarations in src/world/sound
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user