Package extrabiomes.blocks

Examples of extrabiomes.blocks.BlockNewQuarterLog


  private static void createNewQuarterLogs() {
    final CommonProxy proxy = Extrabiomes.proxy;
    BlockNewQuarterLog.setRenderId(Extrabiomes.proxy.registerBlockHandler(new RenderNewQuarterLog()));

    final BlockNewQuarterLog block = new BlockNewQuarterLog(BlockSettings.NEWQUARTERLOG, "baldcypress");
    if (!ModuleControlSettings.SUMMA.isEnabled() || !BlockSettings.NEWQUARTERLOG.getEnabled())
      return;

    block.setBlockName("extrabiomes.baldcypressquarter").setStepSound(Block.soundTypeWood).setHardness(2.0F)
        .setResistance(Blocks.log.getExplosionResistance(null) * 5.0F).setCreativeTab(Extrabiomes.tabsEBXL);
    ((BlockNewQuarterLog) block).setDroppedItemStack(Element.LOG_BALD_CYPRESS.get());

    proxy.setBlockHarvestLevel(block, "axe", 0);
    proxy.registerBlock(block, ItemNewQuarterLog.class, "cornerlog_baldcypress");
    proxy.registerOreInAllSubblocks("logWood", block);
    proxy.registerEventHandler(block);
    Blocks.fire.setFireInfo(block, 5, 5);

    final BlockNewQuarterLog block2 = new BlockNewQuarterLog(BlockSettings.RAINBOWQUARTERLOG, "rainboweucalyptus");
    if (!ModuleControlSettings.SUMMA.isEnabled() || !BlockSettings.RAINBOWQUARTERLOG.getEnabled())
      return;

    block2.setBlockName("extrabiomes.rainboweucalyptusquarter").setStepSound(Block.soundTypeWood).setHardness(2.0F).setResistance(Blocks.log.getExplosionResistance(null) * 5.0F).setCreativeTab(Extrabiomes.tabsEBXL);
    ((BlockNewQuarterLog) block2).setDroppedItemStack(Element.LOG_RAINBOW_EUCALYPTUS.get());

    proxy.setBlockHarvestLevel(block2, "axe", 0);
    proxy.registerBlock(block2, ItemNewQuarterLog.class, "cornerlog_rainboweucalyptus");
    proxy.registerOreInAllSubblocks("logWood", block2);
    proxy.registerEventHandler(block2);
    Blocks.fire.setFireInfo(block2, 5, 5);

    final BlockNewQuarterLog block3 = new BlockNewQuarterLog(BlockSettings.OAKQUARTERLOG, "oak");
    if (!ModuleControlSettings.SUMMA.isEnabled() || !BlockSettings.OAKQUARTERLOG.getEnabled())
      return;

    block3.setBlockName("extrabiomes.oakquarter").setStepSound(Block.soundTypeWood).setHardness(2.0F).setResistance(Blocks.log.getExplosionResistance(null) * 5.0F).setCreativeTab(Extrabiomes.tabsEBXL);
    ((BlockNewQuarterLog) block3).setDroppedItemStack(new ItemStack(Item.getItemFromBlock(Blocks.log), 1, 0));

    proxy.setBlockHarvestLevel(block3, "axe", 0);
    proxy.registerBlock(block3, ItemNewQuarterLog.class, "cornerlog_oak");
    proxy.registerOreInAllSubblocks("logWood", block3);
    proxy.registerEventHandler(block3);
    Blocks.fire.setFireInfo(block3, 5, 5);

    final BlockNewQuarterLog block4 = new BlockNewQuarterLog(BlockSettings.FIRQUARTERLOG, "fir");
    if (!ModuleControlSettings.SUMMA.isEnabled() && !BlockSettings.FIRQUARTERLOG.getEnabled())
      return;

    block4.setBlockName("extrabiomes.firquarter").setStepSound(Block.soundTypeWood).setHardness(2.0F).setResistance(Blocks.log.getExplosionResistance(null) * 5.0F).setCreativeTab(Extrabiomes.tabsEBXL);
    ((BlockNewQuarterLog) block4).setDroppedItemStack(Element.LOG_FIR.get());

    proxy.setBlockHarvestLevel(block4, "axe", 0);
    proxy.registerBlock(block4, ItemNewQuarterLog.class, "cornerlog_fir");
    proxy.registerOreInAllSubblocks("logWood", block4);
    proxy.registerEventHandler(block4);
    Blocks.fire.setFireInfo(block4, 5, 5);

    final BlockNewQuarterLog block5 = new BlockNewQuarterLog(BlockSettings.REDWOODQUARTERLOG, "redwood");
    if (!ModuleControlSettings.SUMMA.isEnabled() || !BlockSettings.REDWOODQUARTERLOG.getEnabled())
      return;

    block5.setBlockName("extrabiomes.redwoodquarter").setStepSound(Block.soundTypeWood).setHardness(2.0F).setResistance(Blocks.log.getExplosionResistance(null) * 5.0F).setCreativeTab(Extrabiomes.tabsEBXL);
    ((BlockNewQuarterLog) block5).setDroppedItemStack(Element.LOG_REDWOOD.get());
    // block5.setRenderId(renderId);

    proxy.setBlockHarvestLevel(block5, "axe", 0);
    proxy.registerBlock(block5, ItemNewQuarterLog.class, "cornerlog_redwood");
View Full Code Here

TOP

Related Classes of extrabiomes.blocks.BlockNewQuarterLog

Copyright © 2018 www.massapicom. 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.