Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Mod(modid = "Mazgl", name = "Mazgl", version = "0.0.0")
- @NetworkMod(clientSideRequired = true, serverSideRequired = false)
- public class Mazgl {
- // The instance of your mod that Forge uses.
- @Instance("Mazgl")
- public static Mazgl instance;
- // BLOCKS
- public final static Block blockGenerator = new BlockGenerator(450, Material.wood).setUnlocalizedName("Generator");
- // Says where the client and server 'proxy' code is loaded.
- @SidedProxy(clientSide = "com.mazetar.mods.mazgl.client.ClientProxy", serverSide = "com.mazetar.mods.mazgl.CommonProxy")
- public static CommonProxy proxy;
- @PreInit
- public void preInit(FMLPreInitializationEvent event) {
- // Stub Method
- }
- @Init
- public void load(FMLInitializationEvent event) {
- proxy.registerRenderers();
- // Te's
- GameRegistry.registerTileEntity(TileEntityGenerator.class, "TestBlock TE");
- GameRegistry.registerBlock(blockGenerator, "RegGen");
- LanguageRegistry.addName(blockGenerator, "AddGen");
- }
- @PostInit
- public void postInit(FMLPostInitializationEvent event) {
- // Stub Method
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment