More consistent fluency in Item API

This commit is contained in:
Dylan K. Taylor
2019-03-23 12:20:35 +00:00
parent 1045088668
commit d4fe004375
5 changed files with 41 additions and 20 deletions

View File

@ -83,9 +83,12 @@ abstract class Armor extends Durable{
* Sets the dyed colour of this armour piece. This generally only applies to leather armour.
*
* @param Color $color
*
* @return $this
*/
public function setCustomColor(Color $color) : void{
public function setCustomColor(Color $color) : self{
$this->getNamedTag()->setInt(self::TAG_CUSTOM_COLOR, Binary::signInt($color->toARGB()));
return $this;
}
/**