Accept BlockTypeInfo in Block constructor, instead of BlockBreakInfo

this will allow more stuff to be passed via the constructor without having to change dozens of classes to do it.
This commit is contained in:
Dylan K. Taylor
2022-07-23 20:42:54 +01:00
parent 89b784734e
commit 6a2315a63d
41 changed files with 342 additions and 306 deletions

View File

@ -48,9 +48,9 @@ abstract class BaseBanner extends Transparent{
*/
protected array $patterns = [];
public function __construct(BlockIdentifier $idInfo, string $name, BlockBreakInfo $breakInfo){
public function __construct(BlockIdentifier $idInfo, string $name, BlockTypeInfo $typeInfo){
$this->color = DyeColor::BLACK();
parent::__construct($idInfo, $name, $breakInfo);
parent::__construct($idInfo, $name, $typeInfo);
}
public function readStateFromWorld() : Block{