Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.Looke81.BioWarfare.init;
- import com.Looke81.BioWarfare.BioWarfare;
- import com.Looke81.BioWarfare.blocks.AgarPlate;
- import com.Looke81.BioWarfare.blocks.BacteriaTest;
- import com.Looke81.BioWarfare.blocks.Jelly;
- import com.Looke81.BioWarfare.blocks.MachineCore;
- import com.Looke81.BioWarfare.blocks.MicrobeExtractor;
- import com.Looke81.BioWarfare.blocks.TestingBlock;
- import com.Looke81.BioWarfare.blocks.twobytwoDirt;
- import com.Looke81.BioWarfare.blocks.twobytwoDirtcompressed;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.resources.model.ModelResourceLocation;
- import net.minecraft.item.Item;
- import net.minecraftforge.fml.common.registry.GameRegistry;
- public class BioWarfareBlocks {
- public static Block blockAgarPlate;
- public static Block blockMicrobeExtractorActive;
- public static Block blockMicrobeExtractorIdle;
- public static Block blockBacteriaTest;
- public static Block blockMachineCore;
- public static Block blockTestingBlock;
- public static Block blocktwobytwoDirt;
- public static Block blocktwobytwoDirtcompressed;
- public static Block blockJelly;
- public static void init()
- {
- //Blocks
- blockMicrobeExtractorIdle = new MicrobeExtractor(false).setCreativeTab(BioWarfare.BioWarfareTab).setUnlocalizedName("MicrobeExtractorIdle");
- blockMicrobeExtractorActive = new MicrobeExtractor(true).setLightLevel(0.625F).setUnlocalizedName("MicrobeExtractorActive");
- blockBacteriaTest = new BacteriaTest(Material.cactus).setUnlocalizedName("BacteriaTest");
- blockMachineCore = new MachineCore(Material.rock).setUnlocalizedName("MachineCore");
- blockTestingBlock = new TestingBlock(Material.rock).setUnlocalizedName("TestingBlock");
- blocktwobytwoDirt = new twobytwoDirt(Material.rock).setUnlocalizedName("twobytwoDirt");
- blocktwobytwoDirtcompressed = new twobytwoDirtcompressed(Material.rock).setUnlocalizedName("twobytwoDirtcompressed");
- blockAgarPlate = new AgarPlate(Material.rock).setUnlocalizedName("AgarPlate");
- blockJelly = new Jelly(Material.rock).setUnlocalizedName("Jelly");
- }
- public static void register()
- {
- GameRegistry.registerBlock(blockMicrobeExtractorIdle, "MicrobeExtractorIdle");
- GameRegistry.registerBlock(blockMicrobeExtractorActive, "MicrobeExtractorActive");
- GameRegistry.registerBlock(blockBacteriaTest, "BacteriaTest");
- GameRegistry.registerBlock(blockMachineCore, "MachineCore");
- GameRegistry.registerBlock(blockTestingBlock, "TestingBlock");
- GameRegistry.registerBlock(blocktwobytwoDirt, "twobytwoDirt,");
- GameRegistry.registerBlock(blocktwobytwoDirtcompressed, "twobytwoDirtcompressed,");
- GameRegistry.registerBlock(blockAgarPlate, "AgarPlate,");
- GameRegistry.registerBlock(blockJelly, "AgarJelly,");
- }
- public static void registerRenders()
- {
- registerRender(blockAgarPlate);
- registerRender(blockMicrobeExtractorActive);
- registerRender(blockMicrobeExtractorIdle);
- registerRender(blockBacteriaTest);
- registerRender(blockMachineCore);
- registerRender(blockTestingBlock);
- registerRender(blocktwobytwoDirt);
- registerRender(blocktwobytwoDirtcompressed);
- registerRender(blockJelly);
- }
- public static void registerRender(Block block)
- {
- Item item = Item.getItemFromBlock(block);
- Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(BioWarfare.modid + ":" + item.getUnlocalizedName().substring(5), "inventory"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment