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

@@ -47,8 +47,8 @@ class Armor extends Durable{
/** @var Color|null */
protected $customColor = null;
public function __construct(int $id, int $variant, string $name, ArmorTypeInfo $info){
parent::__construct($id, $variant, $name);
public function __construct(ItemIdentifier $identifier, string $name, ArmorTypeInfo $info){
parent::__construct($identifier, $name);
$this->armorInfo = $info;
}