Package forestry.core.config

Examples of forestry.core.config.ForestryBlock


    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;

        for (int i = 0; i < 4; i++) {
          if (forestryBlock == ForestryBlock.log7 && i > 0)
            break;

          ItemStack logStack = forestryBlock.getItemStack(1, i);
          ItemStack fireproofLogStack = fireproofLog.getItemStack(1, i);
          RecipeManagers.fabricatorManager.addRecipe(null, LiquidHelper.getLiquid(Defaults.LIQUID_GLASS, 500), fireproofLogStack, new Object[]{
              " # ",
              "#X#",
              " # ",
              '#', ForestryItem.refractoryWax,
              'X', logStack});
        }
      }

      // Fireproof plank recipes
      ForestryBlock plank = ForestryBlock.planks1;
      for (int i = 0; i < 16; i++) {
        ForestryBlock fireproofPlank = BlockFireproofPlanks.getFireproofPlanks((BlockPlanks)plank.block());
        ItemStack plankStack = plank.getItemStack(1, i);
        ItemStack fireproofPlankStack = fireproofPlank.getItemStack(5, i);
        RecipeManagers.fabricatorManager.addRecipe(null, LiquidHelper.getLiquid(Defaults.LIQUID_GLASS, 500), fireproofPlankStack, new Object[]{
            "X#X",
            "#X#",
            "X#X",
            '#', ForestryItem.refractoryWax,
            'X', plankStack});
      }
      plank = ForestryBlock.planks2;
      for (int i = 0; i < 8; i++) {
        ForestryBlock fireproofPlank = BlockFireproofPlanks.getFireproofPlanks((BlockPlanks)plank.block());
        ItemStack plankStack = plank.getItemStack(1, i);
        ItemStack fireproofPlankStack = fireproofPlank.getItemStack(5, i);
        RecipeManagers.fabricatorManager.addRecipe(null, LiquidHelper.getLiquid(Defaults.LIQUID_GLASS, 500), fireproofPlankStack, new Object[]{
            "X#X",
            "#X#",
            "X#X",
            '#', ForestryItem.refractoryWax,
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);
      }
    }

    return new BlockType(block, meta);
  }
View Full Code Here

TOP

Related Classes of forestry.core.config.ForestryBlock

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.