getColorCode() public method

public getColorCode ( )
示例#1
0
 public function setCustomColor(Color $color)
 {
     if ($hasTag = $this->hasCompoundTag()) {
         $tag = $this->getNamedTag();
     } else {
         $tag = new CompoundTag("", []);
     }
     $tag->customColor = new IntTag("customColor", $color->getColorCode());
     $this->setCompoundTag($tag);
 }