C# Class Sharpcraft.Networking.Authenticator

Class containing methods for authenticating a minecraft user and logging in via minecraft.net.
Exibir arquivo Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Public Methods

Method Description
Authenticator ( int version ) : System.IO

Initialize a new instance of the Authenticator class.

Login ( string username, string password ) : LoginResult

Sends a login request to the minecraft authentication server and returns the response from it.

Private Methods

Method Description
LoginEvent ( LoginEventArgs e ) : void

Fires the login event.

Method Details

Authenticator() public method

Initialize a new instance of the Authenticator class.
public Authenticator ( int version ) : System.IO
version int Minecraft Version.
return System.IO

Login() public method

Sends a login request to the minecraft authentication server and returns the response from it.
public Login ( string username, string password ) : LoginResult
username string Minecraft Username
password string Minecraft Password
return LoginResult