-
Notifications
You must be signed in to change notification settings - Fork 17
API Guide
MCLauncher-API's main purpose is to make it easy for people to create their own minecraft launchers. Not that I don't like the official one, but you've got to admit having just one launcher doesn't work well. So I decided to write this API and now I'm going to show you how to do stuff with the API.
Before you write a minecraft launcher, you should know briefly how the launching process works. So here's the entire process:
- Log in with user-entered or saved credentials.
- Check if user has selected minecraft version. If not, download it.
- Generate a huge list of console commands and run them <------ don't worry, API does this :)
Of course, there are also variations of this progress, which allow pinging known servers, connecting to them, but these are for experienced developers, who know where to put it :)
Before you start coding, you may want to look at page Including API in your projects, which contains useful information about how to add API as a library to your java project, what it requires and so on.
Guides are sorted in order of difficulty and how you should do these things...
- Find your home - Where to put minecraft files(the minecraft launcher way).
- MinecraftLauncherBackend & GlobalAuthenticationSystem - Logging in, Updating, Running the game
- Login - Logging in (both new and old way)
- Profile I/O - Saving/Loading passwords in minecraft way
- LAN Server Discovery - Discovering servers which are running on Local Area Network
- Loading saved servers - Loading users' favourite servers from servers.dat
-
Find your home - Where is the
.minecraft
folder?
- MinecraftLauncherBackend & GlobalAuthenticationSystem - Logging in, Updating, Running the game
- Login - Logging in with password or session ID
- Profile I/O - Saving/Loading login credentials
- LAN Server Discovery - Discovering servers which are running on LAN
- Loading saved servers - Loading servers from servers.dat