app\models\Player::getTexture PHP Méthode

getTexture() public méthode

Get specific texture of player.
public getTexture ( string $type ) : string
$type string steve|alex|cape
Résultat 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;
    }