diff --git a/src/item/Item.php b/src/item/Item.php index 205f15e130..8f8623c794 100644 --- a/src/item/Item.php +++ b/src/item/Item.php @@ -125,7 +125,7 @@ public function hasCustomBlockData() : bool{ /** * @return $this */ - public function clearCustomBlockData(){ + public function clearCustomBlockData() : Item{ $this->blockEntityTag = null; return $this; } @@ -202,11 +202,12 @@ public function getCanPlaceOn() : array{ /** * @param string[] $canPlaceOn */ - public function setCanPlaceOn(array $canPlaceOn) : void{ + public function setCanPlaceOn(array $canPlaceOn) : Item{ $this->canPlaceOn = []; foreach($canPlaceOn as $value){ $this->canPlaceOn[$value] = $value; } + return $this; } /** @@ -220,11 +221,12 @@ public function getCanDestroy() : array{ /** * @param string[] $canDestroy */ - public function setCanDestroy(array $canDestroy) : void{ + public function setCanDestroy(array $canDestroy) : Item{ $this->canDestroy = []; foreach($canDestroy as $value){ $this->canDestroy[$value] = $value; } + return $this; } /** @@ -234,8 +236,9 @@ public function keepOnDeath() : bool{ return $this->keepOnDeath; } - public function setKeepOnDeath(bool $keepOnDeath) : void{ + public function setKeepOnDeath(bool $keepOnDeath) : Item{ $this->keepOnDeath = $keepOnDeath; + return $this; } /**