Portable custom Minecraft server launcher with Mixin and official obfuscation map applied.
java -Xmx2G -Xms2G -jar pancake-launcher.jar <server.jar> [args]
Custom server JAR must provide target_version
resource for detecting capable Minecraft server version. Also register IPancakeServer
service with proper implementation.
Sample implementation below
import java.util.function.Consumer;
public class SampleServer implements IPancakeServer {
@Override
public void start(String[] args, Consumer<URL> addURL, Runnable finishMixin) {
// Add additional libraries, mods to server classpath.
// addURL(...);
// Finish mixin registration.
finishMixin.run();
System.out.println("Launching server...");
// Start vanilla MC server
net.minecraft.server.Main.main(args);
}
}