Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.spideynn.moddedmod.wasteland;
- import cpw.mods.fml.client.registry.ClientRegistry;
- import cpw.mods.fml.client.registry.RenderingRegistry;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.EventHandler;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.registry.GameRegistry;
- import cpw.mods.fml.common.registry.LanguageRegistry;
- import net.minecraft.block.Block;
- import net.minecraft.item.Item;
- import net.minecraft.world.biome.BiomeGenBase;
- import net.minecraftforge.common.BiomeDictionary;
- import net.minecraftforge.common.BiomeDictionary.Type;
- import net.spideynn.moddedmod.wasteland.blocks.BlockTrashCan;
- import net.spideynn.moddedmod.wasteland.blocks.TileEntityTrashCan;
- import net.spideynn.moddedmod.wasteland.renderer.RendererTrashCan;
- @Mod(
- modid = "Wasteland",
- name = "The Wasteland Mod (Modified by Spideynn)",
- version = "1.6.4"
- )
- public class mod_Wasteland
- {
- public static String signature = "Spideynn";
- static Wasteland_BiomeGenApocalypse BiomeApocalypse = new Wasteland_BiomeGenApocalypse(44);
- public static Wasteland_WorldType Wasteland_WorldType = new Wasteland_WorldType(14, "Wasteland");
- static Wasteland_Trees tree = new Wasteland_Trees(true);
- public static BiomeGenBase[][] biomesForWorldType;
- public static final String modid = "wasteland";
- public static Block blockTrashCan;
- public void registerBlock(Block block, String name) {
- GameRegistry.registerBlock(block, name);
- LanguageRegistry.addName(block, name);
- }
- public void registerItem(Item item, String name) {
- GameRegistry.registerItem(item, name);
- LanguageRegistry.addName(item, name);
- }
- @EventHandler
- public void load(FMLInitializationEvent event)
- {
- Wasteland_Config.initializeConfig(event);
- BiomeDictionary.registerBiomeType(BiomeApocalypse, new Type[] {Type.WASTELAND});
- GameRegistry.addBiome(BiomeApocalypse);
- GameRegistry.removeBiome(BiomeApocalypse);
- GameRegistry.registerWorldGenerator(new Wasteland_WorldGen());
- LanguageRegistry.instance().addStringLocalization("generator.Wasteland", "Wasteland");
- LanguageRegistry.instance().addStringLocalization("Wasteland", "Wasteland", "Wasteland");
- blockTrashCan = new BlockTrashCan(1004).setUnlocalizedName("TrashCan");
- registerBlock(blockTrashCan, "Trash Can");
- GameRegistry.registerTileEntity(TileEntityTrashCan.class,"TrashCan");
- ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTrashCan.class, new RendererTrashCan());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement