private static void registerSludgeDrops() {
   FarmingRegistry.registerSludgeDrop(15, BlockReferences.getBlockItemStack("driedDirt"));
   FarmingRegistry.registerSludgeDrop(15, BlockReferences.getBlockItemStack("hardSand"));
   FarmingRegistry.registerSludgeDrop(15, BlockReferences.getBlockItemStack("hardDirt"));
   FarmingRegistry.registerSludgeDrop(15, new ItemStack(Items.miscItems.get(), 4, 1));
   FarmingRegistry.registerSludgeDrop(25, new ItemStack(Items.mudball.get(), 4));
 }
  @SuppressWarnings({"rawtypes", "unchecked"})
  private static void registerFarmables() {
    Optional[] bopLeaves = {
      Blocks.leaves1,
      Blocks.leaves2,
      Blocks.leavesColorized,
      Blocks.treeMoss,
      Blocks.willow,
      Blocks.ivy,
      Blocks.moss
    };
    Optional[] bopFruitLeaves = {Blocks.leavesFruit};
    Optional[] bopLogs = {Blocks.logs1, Blocks.logs2, Blocks.logs3, Blocks.logs4, Blocks.bamboo};
    Optional[] bopMiscStandardHarvestables = {
      Blocks.flowers, Blocks.plants, Blocks.foliage, Blocks.mushrooms
    };
    Optional[] bopSaplings = {Blocks.saplings, Blocks.colorizedSaplings};

    for (Optional<? extends Block> leaves : bopLeaves) {
      FarmingRegistry.registerHarvestable(
          new Harvestable(leaves.get().blockID, HarvestType.TreeLeaf));
    }

    for (Optional<? extends Block> log : bopLogs) {
      FarmingRegistry.registerHarvestable(new Harvestable(log.get().blockID, HarvestType.Tree));
    }

    for (Optional<? extends Block> harvestable : bopMiscStandardHarvestables) {
      FarmingRegistry.registerHarvestable(
          new Harvestable(harvestable.get().blockID, HarvestType.Normal));
    }

    for (Optional<? extends Block> sapling : bopSaplings) {
      FarmingRegistry.registerFertilizable(new Fertilizable(sapling.get().blockID));
    }

    for (Optional<? extends Block> leaves : bopFruitLeaves) {
      FarmingRegistry.registerHarvestable(
          new Harvestable(leaves.get().blockID, HarvestType.TreeLeaf));
      FarmingRegistry.registerFruit(new FruitLeaves(leaves.get().blockID));
    }
  }
 private static void registerRubberTreeBiomes() {
   FarmingRegistry.registerRubberTreeBiome(Biomes.bayou.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.birchForest.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.bog.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.borealForest.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.deciduousForest.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.forestNew.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.grove.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.jungleNew.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.lushSwamp.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.mapleWoods.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.rainforest.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.seasonalForest.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.shield.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.swamplandNew.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.temperateRainforest.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.thicket.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.tropicalRainforest.get().biomeName);
   FarmingRegistry.registerRubberTreeBiome(Biomes.woodland.get().biomeName);
 }