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; }