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

39 lines
1.3 KiB
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-03-06 06:11:37 -06:00
import net.minecraft.client.Minecraft;
2024-02-13 04:19:11 -06:00
import org.teavm.jso.JSBody;
2024-03-06 06:11:37 -06:00
import static net.minecraft.client.Minecraft.mojangLogo;
2024-02-10 23:54:25 -06:00
2024-02-15 06:00:47 -06:00
2024-02-10 08:02:04 -06:00
public class EaglerForge {
2024-03-06 06:11:37 -06:00
private static Minecraft mc;
2024-02-10 08:02:04 -06:00
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-03-06 06:11:37 -06:00
@JSBody(script = "displayanvil()")
public static native void displayanvil();
@JSBody(script = "var img = document.getElementById('anvil');\n" +
"if (img) img.remove();")
public static native void removeanvil();
2024-02-13 04:19:11 -06:00
2024-02-10 08:02:04 -06:00
public static void init() {
log.info("Starting EaglerForge!");
2024-03-06 06:11:37 -06:00
displayanvil();
2024-02-10 08:02:04 -06:00
log.info("Loading Mods...");
}
}