Package forestry.arboriculture.gadgets

Examples of forestry.arboriculture.gadgets.BlockLog


  @Override
  public void preInit() {
    super.preInit();

    ForestryBlock.log1.registerBlock(new BlockLog(LogCat.CAT0), ItemWoodBlock.class, "log1");
    ForestryBlock.log2.registerBlock(new BlockLog(LogCat.CAT1), ItemWoodBlock.class, "log2");
    ForestryBlock.log3.registerBlock(new BlockLog(LogCat.CAT2), ItemWoodBlock.class, "log3");
    ForestryBlock.log4.registerBlock(new BlockLog(LogCat.CAT3), ItemWoodBlock.class, "log4");
    ForestryBlock.log5.registerBlock(new BlockLog(LogCat.CAT4), ItemWoodBlock.class, "log5");
    ForestryBlock.log6.registerBlock(new BlockLog(LogCat.CAT5), ItemWoodBlock.class, "log6");
    ForestryBlock.log7.registerBlock(new BlockLog(LogCat.CAT6), ItemWoodBlock.class, "log7");

    for (ForestryBlock log : logs) {
      log.block().setHarvestLevel("axe", 0);
      OreDictionary.registerOre("logWood", log.getWildcard());
    }
View Full Code Here


    // Fabricator recipes
    if (PluginManager.Module.FACTORY.isEnabled() && PluginManager.Module.APICULTURE.isEnabled()) {

      // Fireproof log recipes
      for (ForestryBlock forestryBlock : logs) {
        BlockLog blockLog = (BlockLog) forestryBlock.block();
        ForestryBlock fireproofLog = BlockFireproofLog.getFireproofLog(blockLog);

        if (forestryBlock == ForestryBlock.log8)
          continue;
View Full Code Here

    // if we have a fireproof tree, return the fireproof log
    if (block instanceof BlockLog) {
      IAlleleBoolean fireproof = (IAlleleBoolean) tree.getGenome().getActiveAllele(EnumTreeChromosome.FIREPROOF.ordinal());
      if (fireproof.getValue()) {
        BlockLog blockLog = (BlockLog) block;
        ForestryBlock fireproofLogBlock = BlockFireproofLog.getFireproofLog(blockLog);
        return new BlockType(fireproofLogBlock.block(), meta);
      }
    }
View Full Code Here

TOP

Related Classes of forestry.arboriculture.gadgets.BlockLog

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.