Метод | Описание | |
---|---|---|
GetName ( bool pretty = false ) : string |
Gets the name of the user.
|
|
SetName ( string name ) : void |
Set the name of the user. Note that this is entirely client-side, this does not update the actual username on the minecraft servers. |
|
SetSessionID ( string id ) : void |
Set this user's session ID.
|
Метод | Описание | |
---|---|---|
User ( string name = null, string sessionId = null ) |
Initialize a new instance of the All of the parameters are optional and can be set later. |
public GetName ( bool pretty = false ) : string | ||
pretty | bool | |
Результат | string |
public SetName ( string name ) : void | ||
name | string | The new name to set. |
Результат | void |
public SetSessionID ( string id ) : void | ||
id | string | The session ID to set. |
Результат | void |