Package forestry.core.gadgets

Examples of forestry.core.gadgets.BlockSoil


      return true;

    Block block = BlockSoil.getBlockFromItem(itemStack.getItem());
    if (block == null || !(block instanceof BlockSoil))
      return false;
    BlockSoil blockSoil = (BlockSoil)block;
    BlockSoil.SoilType soilType = blockSoil.getTypeFromMeta(itemStack.getItemDamage());
    return soilType == BlockSoil.SoilType.BOG_EARTH || soilType == BlockSoil.SoilType.PEAT;
  }
View Full Code Here


      Block block = BlockSoil.getBlockFromItem(occupant.getItem());
      if (block == null || !(block instanceof BlockSoil))
        continue;

      BlockSoil blockSoil = (BlockSoil)block;
      BlockSoil.SoilType soilType = blockSoil.getTypeFromMeta(occupant.getItemDamage());

      if (soilType == BlockSoil.SoilType.PEAT)
        crops.push(new CropPeat(world, position));
    }
    return crops;
View Full Code Here

      return true;

    Block block = BlockSoil.getBlockFromItem(itemStack.getItem());
    if (block == null || !(block instanceof BlockSoil))
      return false;
    BlockSoil blockSoil = (BlockSoil)block;
    return blockSoil.getTypeFromMeta(itemStack.getItemDamage()) == BlockSoil.SoilType.HUMUS;
  }
View Full Code Here

    ForestryBlock.core.registerBlock(new BlockBase(Material.iron, true), ItemForestryBlock.class, "core");

    definitionEscritoire = ((BlockBase) ForestryBlock.core.block()).addDefinition(new MachineDefinition(Defaults.DEFINITION_ESCRITOIRE_META, "forestry.Escritoire", TileEscritoire.class,
        Proxies.render.getRenderEscritoire()));

    ForestryBlock.soil.registerBlock(new BlockSoil(), ItemTypedBlock.class, "soil");
    ForestryBlock.soil.block().setHarvestLevel("shovel", 0, 0);
    ForestryBlock.soil.block().setHarvestLevel("shovel", 0, 1);

    ForestryBlock.resources.registerBlock(new BlockResource(), ItemForestryBlock.class, "resources");
    ForestryBlock.resources.block().setHarvestLevel("pickaxe", 1, 0);
View Full Code Here

  protected boolean isCrop(Vect pos) {
    Block block = getBlock(pos);
    if (block == null || !(block instanceof BlockSoil))
      return false;

    BlockSoil blockSoil = (BlockSoil)block;
    BlockSoil.SoilType soilType = blockSoil.getTypeFromMeta(getBlockMeta(pos));
    return soilType == BlockSoil.SoilType.PEAT;
  }
View Full Code Here

TOP

Related Classes of forestry.core.gadgets.BlockSoil

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.