EaglerForge/sources/main/java/net/eaglerforge/EaglerForge.java

30 lines
986 B
Java
Raw Normal View History

2024-02-10 08:02:04 -06:00
package net.eaglerforge;
import net.lax1dude.eaglercraft.v1_8.log4j.LogManager;
import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
2024-02-13 04:19:11 -06:00
import org.teavm.jso.JSBody;
2024-02-10 23:54:25 -06:00
2024-02-15 06:00:47 -06:00
import net.eaglerforge.gui.ModLoader;
2024-02-10 08:02:04 -06:00
public class EaglerForge {
public static final Logger log = LogManager.getLogger();
2024-02-13 04:19:11 -06:00
@JSBody(params = { "message" }, script = "alert(message)")
public static native void jsalert(String message);
@JSBody(params = { "message" }, script = "console.log(message)")
public static native void jsconsolelog(String message);
@JSBody(params = { "message" }, script = "prompt(message)")
public static native void jsprompt(String message);
@JSBody(params = { "message", "default_text" }, script = "prompt(message, default_text)")
public static native void jspromptdt(String message, String default_text);
2024-02-10 08:02:04 -06:00
public static void init() {
log.info("Starting EaglerForge!");
log.info("Loading Mods...");
2024-02-15 06:00:47 -06:00
ModLoader.loadLoader();
2024-02-10 08:02:04 -06:00
}
}