public getTexture ( string $type ) : string | ||
$type | string | steve|alex|cape |
return | 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;
}