Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)
- @NetworkMod(channels = { Reference.CHANNEL_NAME }, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketHandler.class)
- public class MazLearnedThis {
- @Instance(Reference.MOD_ID)
- public static MazLearnedThis instance;
- @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
- public static CommonProxy proxy;
- // Initialize blocks etc. inside preInit.
- @PreInit
- public void preInit(FMLPreInitializationEvent event){
- NetworkRegistry.instance().registerGuiHandler(this,new CommonProxy());
- // Initialize the Render Tick Handler (Client only)
- proxy.registerRenderTickHandler();
- // Register the KeyBinding Handler (Client only)
- proxy.registerKeyBindingHandler();
- // Register the Sound Handler (Client only)
- proxy.registerSoundHandler();
- // Initialize mod blocks
- ModBlocks.init();
- // Initialize mod items
- ModItems.init();
- }
- @Init
- public void load(FMLInitializationEvent event){
- GameRegistry.registerTileEntity(TileEntityFurnaceChest.class, "TileEntity Furnace Chest");
- }
- @PostInit // Run after ALL mods is loaded. - Code which interacts with other mods here.
- public void postInit(FMLPostInitializationEvent event){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement