-
-
Save anonymous/ab7971e9de38db4e47b4dc29daeb31dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bigsis.spookjams; //My comments in this class are present in light-colored lines like this one that follow two forward-slashes ("//"). To remove these, go to "Edit > Find/Replace...", add "//.*" to the Find field, and press "Replace All". | |
import com.bigsis.spookjams.proxy.CommonProxy; //Import this to make our custom CommonProxy instance work. | |
import net.minecraftforge.fml.common.Mod; //Import this to make the @Mod annotation work | |
import net.minecraftforge.fml.common.Mod.EventHandler; //Import this to make the @EventHandler annotation work | |
import net.minecraftforge.fml.common.Mod.Instance; //Import this to make the @Instance annotation work | |
import net.minecraftforge.fml.common.SidedProxy; //Import this to make the @SidedProxy annotation work | |
import net.minecraftforge.fml.common.event.FMLInitializationEvent; //import this to make this Initialization event work | |
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //import this to make this Post Initialization event work | |
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; //import this to make this Pre Initialization event work | |
@Mod | |
( | |
modid = Reference.MOD_ID, //Specify the unique MOD ID of your mod, we're getting this from the Reference.java class. | |
name = Reference.NAME, //Specify the name of your mod; also being pulled from Reference.java. | |
version = Reference.VERSION, //Specify the version of your mod; also being pulled from Reference.java. | |
acceptedMinecraftVersions = Reference.MINECRAFT_VERSION //Specify which Minecraft version(s) this mod works on; also being pulled from Reference.java. | |
) | |
public class Spookjams | |
{ | |
@Instance | |
public static Spookjams instance; //Need this to allow Minecraft to instantiate this mod. | |
@SidedProxy( | |
clientSide = Reference.CLIENT_PROXY_CLASS, //Specify the Client proxy; being pulled from Reference.java. | |
serverSide = Reference.SERVER_PROXY_CLASS //Specify the Server proxy; being pulled from Reference.java. | |
) | |
public static CommonProxy proxy; //Need this to instantiate the proxy interface with Minecraft. | |
@EventHandler | |
public void preInit(FMLPreInitializationEvent event) //define what gets called first when this mod is loaded (e.g., loading item or block intialization) | |
{ | |
System.out.println("Pre-Init"); //just some dummy text to serve as a placeholder for future event info -- note that this will appear in the Minecraft Launch Log to let you know when it gets called! | |
} | |
@EventHandler | |
public void init(FMLInitializationEvent event) //define what gets called next after the pre-initialization (e.g., loading less critical items or entities) | |
{ | |
System.out.println("Init"); //just some dummy text to serve as a placeholder for future event info -- note that this will appear in the Minecraft Launch Log to let you know when it gets called! | |
} | |
@EventHandler | |
public void postInit(FMLPostInitializationEvent event) //define what gets done after everything is loaded in the mod (e.g., loading another mod if it exists) | |
{ | |
System.out.println("Post-Init"); //just some dummy text to serve as a placeholder for future event info -- note that this will appear in the Minecraft Launch Log to let you know when it gets called! | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment