My mod Main class initialization
MinecraftForge.EVENT_BUS.register(new Quit());
Quit.class
@SubscribeEvent
public void onQuit(PlayerLoggedOutEvent event) {
System.out.println("LoggedOut");
PlayerInfo.resetServer();
}
This event is only called at SinglePlayer Logout, btw i need both (SP & MP Disconnect)
I know the basic to download a file and output him bytes, but how i get my mod file?
i tried using ClassLoader but i can't identify my mod by name, because the user can rename it.
Any ideas?
I did like everyone, but "Minecraft is missing" when i try open it, don't comes with "java/src" or "java/resources" http://prntscr.com/e7z5ug
i just open eclipse and selected "%forgeDirectory%/eclipse", the project is right there but i can't open it.
Every time that I run "gradlew setupDecompWorkspace eclipse"
download everything perfectly, but I can't use the eclipse workspace (it's BUILD SUCCESSFUL)
Finnaly, the problem is that the project is not created correctly.
Here is eclipse project explorer > http://prntscr.com/e7yxr2
MDK Folder > http://prntscr.com/e7yxzb
How to solve this?
I created a mod using MCP for 1.8 (mcp910) (i can't use forge, need be mcp910)
But, whenever I try launch the minecraft version (1.8 - Modded)
Minecraft cancel's the launch and install a new jar for 1.8
Someone know this?
I'm putting the "reobf" files at "1.8 - Modded.jar" it's that right?