Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Mod(modid = RuabmMod.MODID, name = "Ruabm Mod")
public class RuabmMod {
public static final String MODID = "ruabmmod";
@Instance("RuabmMod")
public static RuabmMod ruabmMod;
@SidedProxy(serverSide = "org.srcttp.mods.ruabmmod.CommonProxy", clientSide = "org.srcttp.mods.ruabmmod.client.ClientProxy")
private static CommonProxy proxy;
public static Logger logger;
private static ItemRuabm ruabmItem;
private static BlockGeneticCraftingTable geneticCraftingTableBlock;
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
logger = event.getModLog();
proxy.printInitMessages();
ruabmItem = new ItemRuabm();
geneticCraftingTableBlock = new BlockGeneticCraftingTable();
GameRegistry.registerItem(ruabmItem, "ItemRuabm");
GameRegistry.registerBlock(geneticCraftingTableBlock,
"BlockGeneticCraftingTable");
}
@EventHandler
public void load(FMLInitializationEvent event) {
GameRegistry.registerTileEntity(TileEntityGeneticCraftingTable.class,
"GeneticCraftingTable");
NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandlerGeneticCraftingTable());
geneticCraftingTableBlock.addRecipes();
proxy.registerRenderers();
}
@EventHandler
public void modsLoaded(FMLPostInitializationEvent event) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment