Separate item ID/meta to ItemIdentifier structure

This commit is contained in:
Dylan K. Taylor
2020-06-29 12:16:34 +01:00
parent cbfdfe87cf
commit 4fc134bd04
14 changed files with 274 additions and 278 deletions

View File

@ -30,8 +30,8 @@ class Dye extends Item{
/** @var DyeColor */
private $color;
public function __construct(int $id, int $variant, string $name, DyeColor $color){
parent::__construct($id, $variant, $name);
public function __construct(ItemIdentifier $identifier, string $name, DyeColor $color){
parent::__construct($identifier, $name);
$this->color = $color;
}