forked from Marcelektro/MavenMCP-1.8.9
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStart.java
More file actions
30 lines (25 loc) · 1.16 KB
/
Start.java
File metadata and controls
30 lines (25 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import java.io.File;
import java.util.Arrays;
import net.minecraft.client.main.Main;
/**
* Welcome to MCP 1.8.9 for Maven
* This repository has been created to make working with MCP 1.8.9 easier and cleaner.
* You can view the MCP 1.8.9 repo here: https://github.com/Marcelektro/MCP-919
* If you have any questions regarding this, feel free to contact me here: https://marcloud.net/discord
*
* Have fun with the MC development ^^
* Marcelektro
*/
public class Start {
public static void main(String[] args) {
// Provide natives
// Currently supported Linux and Windows
System.setProperty("org.lwjgl.librarypath", new File("../test_natives/" + (System.getProperty("os.name").startsWith("Windows") ? "windows" : "linux")).getAbsolutePath());
Main.main(concat(new String[]{"--version", "MavenMCP", "--accessToken", "0", "--assetsDir", "assets", "--assetIndex", "1.8", "--userProperties", "{}"}, args));
}
public static <T> T[] concat(T[] first, T[] second) {
T[] result = Arrays.copyOf(first, first.length + second.length);
System.arraycopy(second, 0, result, first.length, second.length);
return result;
}
}