Last active
August 29, 2015 13:57
-
-
Save thomas15v/9671474 to your computer and use it in GitHub Desktop.
ApocPluginTemplate
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 apoc.template; | |
import apoc.core.core.handler.TickHandler; | |
import apoc.core.plugin.ApocPlugin; | |
import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
import cpw.mods.fml.relauncher.Side; | |
import cpw.mods.fml.relauncher.SideOnly; | |
/** | |
* Created by thomas on 3/20/14. | |
*/ | |
//MAKE SURE YOU REGISTER YOUR PLUGIN IN THE PLUGINMANAGER!!!! | |
public class PluginTemplate extends ApocPlugin { | |
@Override | |
public void preInit(TickHandler tickHandler, FMLPreInitializationEvent event) { | |
//Register your blocks here | |
} | |
@Override | |
@SideOnly(Side.CLIENT) | |
public void registerRendering() { | |
//Register all client rendering stuff here | |
} | |
@Override | |
public String getId() { | |
return "yourModID"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment