mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Modernize property declarations in src/world/sound
This commit is contained in:
@ -34,16 +34,10 @@ use pocketmine\network\mcpe\protocol\types\LevelSoundEvent;
|
||||
* Played when an entity hits the ground after falling a distance that doesn't cause damage, e.g. due to jumping.
|
||||
*/
|
||||
class EntityLandSound implements Sound{
|
||||
|
||||
/** @var Entity */
|
||||
private $entity;
|
||||
/** @var Block */
|
||||
private $blockLandedOn;
|
||||
|
||||
public function __construct(Entity $entity, Block $blockLandedOn){
|
||||
$this->entity = $entity;
|
||||
$this->blockLandedOn = $blockLandedOn;
|
||||
}
|
||||
public function __construct(
|
||||
private Entity $entity,
|
||||
private Block $blockLandedOn
|
||||
){}
|
||||
|
||||
public function encode(Vector3 $pos) : array{
|
||||
return [LevelSoundEventPacket::create(
|
||||
|
Reference in New Issue
Block a user