mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
Modernize private property declarations in src/network
This commit is contained in:
13
src/network/mcpe/cache/StaticPacketCache.php
vendored
13
src/network/mcpe/cache/StaticPacketCache.php
vendored
@@ -34,11 +34,6 @@ use function file_get_contents;
|
||||
class StaticPacketCache{
|
||||
use SingletonTrait;
|
||||
|
||||
/** @var BiomeDefinitionListPacket */
|
||||
private $biomeDefs;
|
||||
/** @var AvailableActorIdentifiersPacket */
|
||||
private $availableActorIdentifiers;
|
||||
|
||||
/**
|
||||
* @phpstan-return CacheableNbt<\pocketmine\nbt\tag\CompoundTag>
|
||||
*/
|
||||
@@ -55,10 +50,10 @@ class StaticPacketCache{
|
||||
);
|
||||
}
|
||||
|
||||
public function __construct(BiomeDefinitionListPacket $biomeDefs, AvailableActorIdentifiersPacket $availableActorIdentifiers){
|
||||
$this->biomeDefs = $biomeDefs;
|
||||
$this->availableActorIdentifiers = $availableActorIdentifiers;
|
||||
}
|
||||
public function __construct(
|
||||
private BiomeDefinitionListPacket $biomeDefs,
|
||||
private AvailableActorIdentifiersPacket $availableActorIdentifiers
|
||||
){}
|
||||
|
||||
public function getBiomeDefs() : BiomeDefinitionListPacket{
|
||||
return $this->biomeDefs;
|
||||
|
Reference in New Issue
Block a user