Model
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.
Methods
create()
php
public static function create(\pocketmine\block\Block $block, string $id) : selfgetBlock()
php
public function getBlock() : \pocketmine\block\BlockgetId()
php
public function getId() : stringgetProperties()
php
public function getProperties() : arrayproperties()
php
public function properties(array $properties) : self