|
PocketMine-MP 5.36.1 git-eaa7c4834c8fe2f379d24e7f0ee6cc63cfb18ccc
|
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 | ) |