Block: name is no longer nullable

This commit is contained in:
Dylan K. Taylor 2019-02-21 11:37:21 +00:00
parent e063c567be
commit 0120585aee

View File

@ -68,7 +68,7 @@ class Block extends Position implements BlockIds, Metadatable{
/** @var BlockIdentifier */ /** @var BlockIdentifier */
protected $idInfo; protected $idInfo;
/** @var string|null */ /** @var string */
protected $fallbackName; protected $fallbackName;
@ -79,7 +79,7 @@ class Block extends Position implements BlockIds, Metadatable{
/** /**
* @param BlockIdentifier $idInfo * @param BlockIdentifier $idInfo
* @param string|null $name English name of the block type (TODO: implement translations) * @param string $name English name of the block type (TODO: implement translations)
*/ */
public function __construct(BlockIdentifier $idInfo, string $name){ public function __construct(BlockIdentifier $idInfo, string $name){
if(($idInfo->getVariant() & $this->getStateBitmask()) !== 0){ if(($idInfo->getVariant() & $this->getStateBitmask()) !== 0){