Skip to content

Instantly share code, notes, and snippets.

@thomas15v
Last active August 29, 2015 13:57
Show Gist options
  • Save thomas15v/9671474 to your computer and use it in GitHub Desktop.
Save thomas15v/9671474 to your computer and use it in GitHub Desktop.
ApocPluginTemplate
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