pocketmine\item\Dye::getNameByMeta PHP Method

getNameByMeta() public method

public getNameByMeta ( integer $meta ) : string
$meta integer
return string
    public function getNameByMeta(int $meta) : string
    {
        switch ($meta) {
            case self::BLACK:
                return "Ink Sac";
            case self::RED:
                return "Rose Red";
            case self::GREEN:
                return "Cactus Green";
            case self::BROWN:
                return "Cocoa Beans";
            case self::BLUE:
                return "Lapis Lazuli";
            case self::PURPLE:
                return "Purple Dye";
            case self::CYAN:
                return "Cyan Dye";
            case self::SILVER:
                return "Light Gray Dye";
            case self::GRAY:
                return "Gray Dye";
            case self::PINK:
                return "Pink Dye";
            case self::LIME:
                return "Lime Dye";
            case self::YELLOW:
                return "Dandelion Yellow";
            case self::LIGHT_BLUE:
                return "Light Blue Dye";
            case self::MAGENTA:
                return "Magenta Dye";
            case self::ORANGE:
                return "Orange Dye";
            case self::WHITE:
                return "Bone Meal";
            default:
                return "Dye";
        }
    }