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

clearTexture() 공개 메소드

Clear the textures of player.
public clearTexture ( ) : mixed
리턴 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);
 }