22declare(strict_types=1);
30 public const SLOT_HEAD = 0;
31 public const SLOT_CHEST = 1;
32 public const SLOT_LEGS = 2;
33 public const SLOT_FEET = 3;
35 public function __construct(
38 parent::__construct(4);
41 public function getHolder() :
Living{
45 public function getHelmet() :
Item{
46 return $this->
getItem(self::SLOT_HEAD);
49 public function getChestplate() :
Item{
50 return $this->
getItem(self::SLOT_CHEST);
53 public function getLeggings() :
Item{
54 return $this->
getItem(self::SLOT_LEGS);
57 public function getBoots() :
Item{
58 return $this->
getItem(self::SLOT_FEET);
61 public function setHelmet(
Item $helmet) :
void{
62 $this->
setItem(self::SLOT_HEAD, $helmet);
65 public function setChestplate(
Item $chestplate) :
void{
66 $this->
setItem(self::SLOT_CHEST, $chestplate);
69 public function setLeggings(
Item $leggings) :
void{
70 $this->
setItem(self::SLOT_LEGS, $leggings);
73 public function setBoots(
Item $boots) :
void{
74 $this->
setItem(self::SLOT_FEET, $boots);
setItem(int $index, Item $item)