PocketMine-MP 5.32.2 git-1ebd7d3960d713d56f77f610fe0c15cdee201069
|
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 | ) |