app\models\Player::clearTexture PHP Method

clearTexture() public method

Clear the textures of player.
public clearTexture ( ) : mixed
return mixed
    public function clearTexture()
    {
        $this->setPreference('default');
        return $this->setTexture(['tid_steve' => 0, 'tid_alex' => 0, 'tid_cape' => 0]);
    }

Usage Example

 public function clearTexture()
 {
     $this->player->clearTexture();
     return json(trans('user.player.clear.success', ['name' => $this->player->player_name]), 0);
 }