mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
More consistent fluency in Item API
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user