Guest User

MainFile

a guest
Mar 25th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.08 KB | None | 0 0
  1. @Mod(modid = "Mazgl", name = "Mazgl", version = "0.0.0")
  2. @NetworkMod(clientSideRequired = true, serverSideRequired = false)
  3. public class Mazgl {
  4.  
  5.     // The instance of your mod that Forge uses.
  6.     @Instance("Mazgl")
  7.     public static Mazgl instance;
  8.  
  9.    
  10.     // BLOCKS
  11.     public final static Block blockGenerator = new BlockGenerator(450, Material.wood).setUnlocalizedName("Generator");
  12.    
  13.     // Says where the client and server 'proxy' code is loaded.
  14.     @SidedProxy(clientSide = "com.mazetar.mods.mazgl.client.ClientProxy", serverSide = "com.mazetar.mods.mazgl.CommonProxy")
  15.     public static CommonProxy proxy;
  16.  
  17.     @PreInit
  18.     public void preInit(FMLPreInitializationEvent event) {
  19.         // Stub Method
  20.  
  21.     }
  22.  
  23.     @Init
  24.     public void load(FMLInitializationEvent event) {
  25.         proxy.registerRenderers();
  26.        
  27.         // Te's
  28.         GameRegistry.registerTileEntity(TileEntityGenerator.class, "TestBlock TE");
  29.        
  30.         GameRegistry.registerBlock(blockGenerator, "RegGen");
  31.         LanguageRegistry.addName(blockGenerator, "AddGen");
  32.     }
  33.  
  34.     @PostInit
  35.     public void postInit(FMLPostInitializationEvent event) {
  36.         // Stub Method
  37.     }
  38.     }
Advertisement
Add Comment
Please, Sign In to add comment