Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.58 KB | None | 0 0
  1. package net.spideynn.moddedmod.wasteland;
  2.  
  3. import cpw.mods.fml.client.registry.ClientRegistry;
  4. import cpw.mods.fml.client.registry.RenderingRegistry;
  5. import cpw.mods.fml.common.Mod;
  6. import cpw.mods.fml.common.Mod.EventHandler;
  7. import cpw.mods.fml.common.event.FMLInitializationEvent;
  8. import cpw.mods.fml.common.registry.GameRegistry;
  9. import cpw.mods.fml.common.registry.LanguageRegistry;
  10. import net.minecraft.block.Block;
  11. import net.minecraft.item.Item;
  12. import net.minecraft.world.biome.BiomeGenBase;
  13. import net.minecraftforge.common.BiomeDictionary;
  14. import net.minecraftforge.common.BiomeDictionary.Type;
  15. import net.spideynn.moddedmod.wasteland.blocks.BlockTrashCan;
  16. import net.spideynn.moddedmod.wasteland.blocks.TileEntityTrashCan;
  17. import net.spideynn.moddedmod.wasteland.renderer.RendererTrashCan;
  18.  
  19. @Mod(
  20.         modid = "Wasteland",
  21.         name = "The Wasteland Mod (Modified by Spideynn)",
  22.         version = "1.6.4"
  23. )
  24. public class mod_Wasteland
  25. {
  26.     public static String signature = "Spideynn";
  27.     static Wasteland_BiomeGenApocalypse BiomeApocalypse = new Wasteland_BiomeGenApocalypse(44);
  28.     public static Wasteland_WorldType Wasteland_WorldType = new Wasteland_WorldType(14, "Wasteland");
  29.     static Wasteland_Trees tree = new Wasteland_Trees(true);
  30.     public static BiomeGenBase[][] biomesForWorldType;
  31.     public static final String modid = "wasteland";
  32.     public static Block blockTrashCan;
  33.    
  34.     public void registerBlock(Block block, String name) {
  35.         GameRegistry.registerBlock(block, name);
  36.         LanguageRegistry.addName(block, name);
  37.     }
  38.  
  39.     public void registerItem(Item item, String name) {
  40.         GameRegistry.registerItem(item, name);
  41.         LanguageRegistry.addName(item, name);
  42.     }
  43.     @EventHandler
  44.     public void load(FMLInitializationEvent event)
  45.     {
  46.         Wasteland_Config.initializeConfig(event);
  47.         BiomeDictionary.registerBiomeType(BiomeApocalypse, new Type[] {Type.WASTELAND});
  48.         GameRegistry.addBiome(BiomeApocalypse);
  49.         GameRegistry.removeBiome(BiomeApocalypse);
  50.         GameRegistry.registerWorldGenerator(new Wasteland_WorldGen());
  51.         LanguageRegistry.instance().addStringLocalization("generator.Wasteland", "Wasteland");
  52.         LanguageRegistry.instance().addStringLocalization("Wasteland", "Wasteland", "Wasteland");
  53.         blockTrashCan = new BlockTrashCan(1004).setUnlocalizedName("TrashCan");
  54.         registerBlock(blockTrashCan, "Trash Can");
  55.         GameRegistry.registerTileEntity(TileEntityTrashCan.class,"TrashCan");
  56.  
  57.         ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTrashCan.class, new RendererTrashCan());
  58.     }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement