Skip to content

API Guide

Tomas Jasek edited this page Jul 17, 2015 · 11 revisions

Introduction

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.

Minecraft running outline

Before you write a minecraft launcher, you should know briefly how the launching process works. So here's the entire process:

  1. Log in with user-entered or saved credentials.
  2. Check if user has selected minecraft version. If not, download it.
  3. 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

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

Guides are sorted in order of difficulty and how you should do these things...