Property | Type | Description | |
---|---|---|---|
$primaryKey | Properties for Eloquent Model. | ||
$timestamps |
Property | Type | Description | |
---|---|---|---|
$fillable | |||
$models | Set of models. |
Method | Description | |
---|---|---|
clearTexture ( ) : mixed | Clear the textures of player. | |
generateJsonProfile ( integer $api_type ) : string | Generate player profile in json format. | |
getBinaryTexture ( string $type ) : Illuminate\Http\Response | Get binary texture by type. | |
getJsonProfile ( integer $api_type ) : string | Get Json profile of player. | |
getLastModified ( ) : timestamp | Get time of last modified. | |
getPreference ( ) : string | Get model preference of the player. | |
getTexture ( string $type ) : string | Get specific texture of player. | |
isBanned ( ) : boolean | Check if the player is banned. | |
rename ( string $new_name ) : mixed | Rename the player. | |
scopeLike ( $query, $field, $value ) | ||
setOwner ( integer $uid ) | Set a new owner for the player. | |
setPreference ( string $type ) | Set preferred model for the player. | |
setTexture ( array $tids ) : mixed | Set textures for the player. | |
updateLastModified ( ) : mixed | Update the date of last modified. | |
user ( ) : App\Models\User | Return the owner of the player. |
public clearTexture ( ) : mixed | ||
return | mixed |
public generateJsonProfile ( integer $api_type ) : string | ||
$api_type | integer | |
return | string |
public getBinaryTexture ( string $type ) : Illuminate\Http\Response | ||
$type | string | steve|alex|cape |
return | Illuminate\Http\Response |
public getJsonProfile ( integer $api_type ) : string | ||
$api_type | integer | Which API to use, 0 for CustomSkinAPI, 1 for UniSkinAPI |
return | string | User profile in json format |
public getLastModified ( ) : timestamp | ||
return | timestamp |
public getPreference ( ) : string | ||
return | string |
public getTexture ( string $type ) : string | ||
$type | string | steve|alex|cape |
return | string | Sha256-hash of texture file. |
public setPreference ( string $type ) | ||
$type | string | slim|default |
public setTexture ( array $tids ) : mixed | ||
$tids | array | |
return | mixed |
public updateLastModified ( ) : mixed | ||
return | mixed |
public user ( ) : App\Models\User | ||
return | App\Models\User |