| 
    PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
    
   | 
 
 Collaboration diagram for pocketmine\data\bedrock\block\convert\Model:Public Member Functions | |
| getBlock () | |
| getId () | |
| getProperties () | |
| properties (array $properties) | |
Static Public Member Functions | |
| static | create (Block $block, string $id) | 
This class works around a limitation in PHPStan. Ideally, we'd just have a function that accepted ($block, $id, $properties) all together and just have the template type inferred from $block alone. However, there's no way to tell PHPStan to ignore $properties for inference, so we're stuck with this hack.
@phpstan-template TBlock of Block
      
  | 
  static | 
| pocketmine\data\bedrock\block\convert\Model::getBlock | ( | ) | 
| pocketmine\data\bedrock\block\convert\Model::getProperties | ( | ) | 
| pocketmine\data\bedrock\block\convert\Model::properties | ( | array | $properties | ) |