Examples of registerBlock()


Examples of extrabiomes.module.summa.worldgen.FlowerGenerator.registerBlock()

        ItemStack item = new ItemStack(block, 1, type.metadata());
        element.set(item);
        ForestryModHelper.registerBasicFlower(item);
      }

      generator.registerBlock(block, types);
      ForestryModHelper.addToForesterBackpack(new ItemStack(block, 1, Short.MAX_VALUE));
    }

    proxy.registerWorldGenerator(generator);
  }
View Full Code Here

Examples of extrabiomes.proxy.CommonProxy.registerBlock()

    final BlockAutumnLeaves block = new BlockAutumnLeaves(3, Material.leaves, false);
    block.setBlockName("extrabiomes.leaves").setTickRandomly(true).setHardness(0.2F).setLightOpacity(1).setStepSound(Block.soundTypeGrass).setCreativeTab(Extrabiomes.tabsEBXL);

    final CommonProxy proxy = Extrabiomes.proxy;
    proxy.registerBlock(block, extrabiomes.items.ItemCustomLeaves.class, "leaves_1");
    proxy.registerOreInAllSubblocks("treeLeaves", block);
    Blocks.fire.setFireInfo(block, 30, 60);

    Element.LEAVES_AUTUMN_BROWN.set(new ItemStack(block, 1, BlockAutumnLeaves.BlockType.UMBER.metadata()));
    Element.LEAVES_AUTUMN_ORANGE.set(new ItemStack(block, 1, BlockAutumnLeaves.BlockType.GOLDENROD.metadata()));
View Full Code Here

Examples of extrabiomes.proxy.CommonProxy.registerBlock()

    // Add the subblocks
    waterPlantBlock.registerSubBlock(new SubBlockWaterPlant("eelgrass").addPlaceableBlock(Blocks.grass).addPlaceableBlock(Blocks.sand).addPlaceableBlock(Blocks.gravel).addPlaceableBlock(Blocks.clay), 0);

    final CommonProxy proxy = Extrabiomes.proxy;
    proxy.registerBlock(waterPlantBlock, extrabiomes.items.ItemBlockWaterPlant.class, "waterplant1");

    Element.WATERPLANT.set(new ItemStack(waterPlantBlock, 1, 0));

    proxy.registerWorldGenerator(new EelGrassGenerator(waterPlantBlock, 0));
  }
View Full Code Here

Examples of extrabiomes.proxy.CommonProxy.registerBlock()

    final BlockCatTail block = new BlockCatTail(79, Material.plants);
    block.setBlockName("extrabiomes.cattail").setHardness(0.0F).setStepSound(Block.soundTypeGrass).setCreativeTab(Extrabiomes.tabsEBXL);

    final CommonProxy proxy = Extrabiomes.proxy;
    proxy.registerBlock(block, extrabiomes.items.ItemCatTail.class, "plants4");
    proxy.registerOre("reedTypha", block);

    Element.CATTAIL.set(new ItemStack(block));

    proxy.registerWorldGenerator(new CatTailGenerator(block));
View Full Code Here

Examples of extrabiomes.proxy.CommonProxy.registerBlock()

    block.texturePath = "crackedsand";

    final CommonProxy proxy = Extrabiomes.proxy;
    proxy.setBlockHarvestLevel(block, "pickaxe", 0);
    proxy.registerBlock(block, "terrain_blocks2");

    proxy.registerOre("sandCracked", block);

    final ItemStack stack = new ItemStack(block);
    Element.CRACKEDSAND.set(stack);
View Full Code Here

Examples of extrabiomes.proxy.CommonProxy.registerBlock()

      if (!enableds[group])
        continue;

      final BlockCustomFlower block = new BlockCustomFlower(group, Material.plants);
      block.setBlockName("extrabiomes.flower").setTickRandomly(true).setHardness(0.0F).setStepSound(Block.soundTypeGrass).setCreativeTab(Extrabiomes.tabsEBXL);
      proxy.registerBlock(block, extrabiomes.items.ItemFlower.class, "flower" + (group + 1));

      Collection<BlockType> types = block.getGroupTypes();
      for (BlockType type : types) {
        final Element element;
        try {
View Full Code Here

Examples of extrabiomes.proxy.CommonProxy.registerBlock()

       * .substring(blockType.name().indexOf('_')).toLowerCase();
       */

      final BlockCustomVine block = new BlockCustomVine(blockType);
      block.setBlockName("extrabiomes.vine." + blockType.name().toLowerCase()).setCreativeTab(Extrabiomes.tabsEBXL);
      proxy.registerBlock(block, ItemBlock.class, "vines");

      final Element element;
      try {
        element = Element.valueOf("VINE_" + blockType.name());
      } catch (Exception e) {
View Full Code Here

Examples of extrabiomes.proxy.CommonProxy.registerBlock()

    final BlockCustomTallGrass block = new BlockCustomTallGrass(48, Material.vine);
    block.setBlockName("extrabiomes.tallgrass").setHardness(0.0F).setStepSound(Block.soundTypeGrass).setCreativeTab(Extrabiomes.tabsEBXL);

    final CommonProxy proxy = Extrabiomes.proxy;
    proxy.registerBlock(block, extrabiomes.items.ItemGrass.class, "grass");
    Blocks.fire.setFireInfo(block, 60, 100);

    Element.GRASS_BROWN.set(new ItemStack(block, 1, BlockCustomTallGrass.BlockType.BROWN.metadata()));
    Element.GRASS_DEAD.set(new ItemStack(block, 1, BlockCustomTallGrass.BlockType.DEAD.metadata()));
    Element.GRASS_BROWN_SHORT.set(new ItemStack(block, 1, BlockCustomTallGrass.BlockType.SHORT_BROWN.metadata()));
View Full Code Here

Examples of extrabiomes.proxy.CommonProxy.registerBlock()

    final BlockNewLeaves block = new BlockNewLeaves(Material.leaves, false);
    block.setBlockName("extrabiomes.leaves").setTickRandomly(true).setHardness(0.2F).setLightOpacity(1).setStepSound(Block.soundTypeGrass).setCreativeTab(Extrabiomes.tabsEBXL);

    final CommonProxy proxy = Extrabiomes.proxy;
    proxy.registerBlock(block, extrabiomes.items.ItemCustomNewLeaves.class, "leaves_2");
    proxy.registerOreInAllSubblocks("treeLeaves", block);
    Blocks.fire.setFireInfo(block, 30, 60);

    Element.LEAVES_BALD_CYPRESS.set(new ItemStack(block, 1, BlockNewLeaves.BlockType.BALD_CYPRESS.metadata()));
    Element.LEAVES_JAPANESE_MAPLE.set(new ItemStack(block, 1, BlockNewLeaves.BlockType.JAPANESE_MAPLE.metadata()));
View Full Code Here

Examples of extrabiomes.proxy.CommonProxy.registerBlock()

    final BlockMoreLeaves block = new BlockMoreLeaves(Material.leaves, false);
    block.setBlockName("extrabiomes.leaves").setTickRandomly(true).setHardness(0.2F).setLightOpacity(1).setStepSound(Block.soundTypeGrass).setCreativeTab(Extrabiomes.tabsEBXL);

    final CommonProxy proxy = Extrabiomes.proxy;
    proxy.registerBlock(block, extrabiomes.items.ItemCustomMoreLeaves.class, "leaves_3");
    proxy.registerOreInAllSubblocks("treeLeaves", block);
    Blocks.fire.setFireInfo(block, 30, 60);

    Element.LEAVES_SAKURA_BLOSSOM.set(new ItemStack(block, 1, BlockMoreLeaves.BlockType.SAKURA_BLOSSOM.metadata()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.