app\models\Player::getTexture PHP 메소드

getTexture() 공개 메소드

Get specific texture of player.
public getTexture ( string $type ) : string
$type string steve|alex|cape
리턴 string Sha256-hash of texture file.
    public function getTexture($type)
    {
        if ($type == "skin") {
            $type = $this->getPreference() == "default" ? "steve" : "alex";
        }
        if (in_array($type, self::$models)) {
            return Texture::find($this["tid_{$type}"])['hash'];
        }
        return false;
    }