2013-05-03 13:00:44 +00:00
|
|
|
package biomesoplenty.integration;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraftforge.liquids.LiquidStack;
|
|
|
|
import net.minecraftforge.oredict.OreDictionary;
|
|
|
|
import biomesoplenty.api.Blocks;
|
|
|
|
import biomesoplenty.api.Items;
|
|
|
|
import biomesoplenty.configuration.BOPConfiguration;
|
|
|
|
import forestry.api.apiculture.FlowerManager;
|
|
|
|
import forestry.api.core.EnumHumidity;
|
|
|
|
import forestry.api.core.EnumTemperature;
|
|
|
|
import forestry.api.core.GlobalManager;
|
|
|
|
import forestry.api.core.ItemInterface;
|
|
|
|
import forestry.api.recipes.RecipeManagers;
|
|
|
|
import forestry.api.storage.BackpackManager;
|
|
|
|
|
|
|
|
public class ForestryIntegration
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
private static final int MINER = 0;
|
|
|
|
private static final int DIGGER = 1;
|
|
|
|
private static final int FORESTER = 2;
|
|
|
|
|
|
|
|
protected static void init()
|
|
|
|
{
|
|
|
|
addClimateInfo();
|
|
|
|
addFermenterRecipes();
|
|
|
|
addFlowers();
|
|
|
|
addBlocksToManager();
|
|
|
|
addBlocksToBackpacks();
|
|
|
|
}
|
|
|
|
|
|
|
|
private static void addClimateInfo()
|
|
|
|
{
|
|
|
|
//Hot - Arid
|
|
|
|
//Desert Hives
|
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.badlandsID);
|
2013-05-24 15:45:47 +00:00
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.beachGravelID);
|
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.beachOvergrownID);
|
2013-05-24 14:36:00 +00:00
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.brushlandID);
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.deadlandsID);
|
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.dunesID);
|
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.mesaID);
|
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.steppeID);
|
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.volcanoID);
|
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.wastelandID);
|
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.promisedLandPlainsID);
|
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.deadForestID);
|
|
|
|
EnumTemperature.hotBiomeIds.add(BOPConfiguration.desertNewID);
|
|
|
|
|
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.badlandsID);
|
2013-05-24 14:36:00 +00:00
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.brushlandID);
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.deadlandsID);
|
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.dunesID);
|
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.mesaID);
|
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.steppeID);
|
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.volcanoID);
|
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.wastelandID);
|
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.promisedLandPlainsID);
|
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.deadForestID);
|
|
|
|
EnumHumidity.aridBiomeIds.add(BOPConfiguration.desertNewID);
|
2013-05-12 09:13:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
//Warm - Damp
|
|
|
|
//Jungle Hives
|
|
|
|
EnumTemperature.warmBiomeIds.add(BOPConfiguration.bambooForestID);
|
2013-05-26 19:36:28 +00:00
|
|
|
EnumTemperature.warmBiomeIds.add(BOPConfiguration.hotSpringsID);
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumTemperature.warmBiomeIds.add(BOPConfiguration.sacredSpringsID);
|
|
|
|
EnumTemperature.warmBiomeIds.add(BOPConfiguration.tropicalRainforestID);
|
|
|
|
EnumTemperature.warmBiomeIds.add(BOPConfiguration.promisedLandSwampID);
|
|
|
|
EnumTemperature.warmBiomeIds.add(BOPConfiguration.oasisID);
|
|
|
|
EnumTemperature.warmBiomeIds.add(BOPConfiguration.rainforestID);
|
|
|
|
EnumTemperature.warmBiomeIds.add(BOPConfiguration.tropicsID);
|
|
|
|
EnumTemperature.warmBiomeIds.add(BOPConfiguration.woodlandID);
|
|
|
|
EnumTemperature.warmBiomeIds.add(BOPConfiguration.jungleNewID);
|
|
|
|
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.bambooForestID);
|
2013-05-26 19:36:28 +00:00
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.hotSpringsID);
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.sacredSpringsID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.tropicalRainforestID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.promisedLandSwampID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.oasisID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.rainforestID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.tropicsID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.woodlandID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.jungleNewID);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Normal - Damp
|
|
|
|
//Marshy Hives
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.bayouID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.bogID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.deadSwampID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.fungiForestID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.lushSwampID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.mangroveID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.marshID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.moorID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.mysticGroveID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.ominousWoodsID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.quagmireID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.sludgepitID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.wetlandID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.fenID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.swamplandNewID);
|
|
|
|
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.bayouID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.bogID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.deadSwampID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.fungiForestID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.lushSwampID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.mangroveID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.marshID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.moorID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.mysticGroveID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.ominousWoodsID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.quagmireID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.sludgepitID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.wetlandID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.fenID);
|
|
|
|
EnumHumidity.dampBiomeIds.add(BOPConfiguration.swamplandNewID);
|
|
|
|
|
|
|
|
//Normal
|
|
|
|
//Forest and Meadows Hives
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.birchForestID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.borealForestID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.canyonID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.chaparralID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.cherryBlossomGroveID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.coniferousForestID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.deciduousForestID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.fieldID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.gardenID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.grasslandID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.groveID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.highlandID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.lushDesertID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.mapleWoodsID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.meadowID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.orchardID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.originValleyID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.pastureID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.prairieID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.redwoodForestID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.seasonalForestID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.shieldID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.shoreID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.spruceWoodsID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.temperateRainforestID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.heathlandID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.promisedLandForestID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.savannaID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.scrublandID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.cragID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.jadeCliffsID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.outbackID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.shrublandID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.thicketID);
|
2013-05-24 21:41:13 +00:00
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.timberID);
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.plainsNewID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.extremeHillsNewID);
|
|
|
|
EnumTemperature.normalBiomeIds.add(BOPConfiguration.forestNewID);
|
2013-05-12 09:13:36 +00:00
|
|
|
|
2013-05-24 15:45:47 +00:00
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.beachGravelID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.beachOvergrownID);
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.birchForestID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.borealForestID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.canyonID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.chaparralID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.cherryBlossomGroveID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.coniferousForestID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.deciduousForestID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.fieldID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.gardenID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.grasslandID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.groveID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.highlandID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.lushDesertID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.mapleWoodsID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.meadowID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.orchardID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.originValleyID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.pastureID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.prairieID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.redwoodForestID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.seasonalForestID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.shieldID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.shoreID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.spruceWoodsID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.temperateRainforestID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.heathlandID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.promisedLandForestID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.savannaID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.scrublandID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.cragID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.jadeCliffsID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.outbackID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.shrublandID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.thicketID);
|
2013-05-24 21:41:13 +00:00
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.timberID);
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.plainsNewID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.extremeHillsNewID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.forestNewID);
|
2013-05-12 09:13:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
//Cold- Normal
|
|
|
|
//Wintry Bees
|
|
|
|
EnumTemperature.coldBiomeIds.add(BOPConfiguration.tundraID);
|
|
|
|
EnumTemperature.coldBiomeIds.add(BOPConfiguration.deadForestSnowID);
|
|
|
|
EnumTemperature.coldBiomeIds.add(BOPConfiguration.mountainID);
|
|
|
|
EnumTemperature.coldBiomeIds.add(BOPConfiguration.taigaNewID);
|
2013-05-12 09:13:36 +00:00
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.tundraID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.deadForestSnowID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.mountainID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.taigaNewID);
|
2013-05-12 09:13:36 +00:00
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
//Icy - Normal
|
|
|
|
//Wintry Bees
|
|
|
|
EnumTemperature.icyBiomeIds.add(BOPConfiguration.alpsID);
|
2013-05-23 20:22:58 +00:00
|
|
|
EnumTemperature.icyBiomeIds.add(BOPConfiguration.arcticID);
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumTemperature.icyBiomeIds.add(BOPConfiguration.coniferousForestSnowID);
|
|
|
|
EnumTemperature.icyBiomeIds.add(BOPConfiguration.frostForestID);
|
|
|
|
EnumTemperature.icyBiomeIds.add(BOPConfiguration.glacierID);
|
|
|
|
EnumTemperature.icyBiomeIds.add(BOPConfiguration.icyHillsID);
|
|
|
|
EnumTemperature.icyBiomeIds.add(BOPConfiguration.polarID);
|
2013-05-12 09:13:36 +00:00
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.alpsID);
|
2013-05-23 20:22:58 +00:00
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.arcticID);
|
2013-05-31 10:34:02 +00:00
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.coniferousForestSnowID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.frostForestID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.glacierID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.icyHillsID);
|
|
|
|
EnumHumidity.normalBiomeIds.add(BOPConfiguration.polarID);
|
|
|
|
}
|
|
|
|
|
|
|
|
private static void addFermenterRecipes()
|
|
|
|
{
|
2013-05-03 13:00:44 +00:00
|
|
|
addFermenterRecipeSapling(new ItemStack(Blocks.saplings.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
addFermenterRecipeSapling(new ItemStack(Blocks.colorizedSaplings.get(), 1, OreDictionary.WILDCARD_VALUE));
|
2013-05-31 10:34:02 +00:00
|
|
|
|
|
|
|
RecipeManagers.squeezerManager.addRecipe(10, new ItemStack[] {new ItemStack(Items.berries.get(), 1)}, new LiquidStack(ItemInterface.getItem("liquidJuice").itemID, 50), ItemInterface.getItem("mulch"), 5);
|
|
|
|
}
|
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
private static void addFermenterRecipeSapling(ItemStack resource) {
|
2013-05-31 10:34:02 +00:00
|
|
|
|
|
|
|
RecipeManagers.fermenterManager.addRecipe(resource, 250, 1.0f,
|
|
|
|
new LiquidStack(ItemInterface.getItem("liquidBiomass").itemID, 1, ItemInterface.getItem("liquidBiomass").getItemDamage()),
|
2013-05-03 13:00:44 +00:00
|
|
|
new LiquidStack(Block.waterStill, 1));
|
2013-05-31 10:34:02 +00:00
|
|
|
|
|
|
|
RecipeManagers.fermenterManager.addRecipe(resource, 250, 1.0f,
|
|
|
|
new LiquidStack(ItemInterface.getItem("liquidBiomass").itemID, 1, ItemInterface.getItem("liquidBiomass").getItemDamage()),
|
2013-05-03 13:00:44 +00:00
|
|
|
new LiquidStack(ItemInterface.getItem("liquidJuice").itemID, 1, ItemInterface.getItem("liquidJuice").getItemDamage()));
|
2013-05-31 10:34:02 +00:00
|
|
|
|
|
|
|
RecipeManagers.fermenterManager.addRecipe(resource, 250, 1.0f,
|
|
|
|
new LiquidStack(ItemInterface.getItem("liquidBiomass").itemID, 1, ItemInterface.getItem("liquidBiomass").getItemDamage()),
|
2013-05-03 13:00:44 +00:00
|
|
|
new LiquidStack(ItemInterface.getItem("liquidHoney").itemID, 1, ItemInterface.getItem("liquidHoney").getItemDamage()));
|
|
|
|
}
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
private static void addFlowers()
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
for (int i = 0; i < 10; ++i) {
|
2013-06-01 02:51:57 +00:00
|
|
|
if (i != 2)
|
|
|
|
FlowerManager.plainFlowers.add(new ItemStack(Blocks.flowers.get(), 1, i));
|
2013-05-31 10:34:02 +00:00
|
|
|
}
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
private static void addBlocksToManager()
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
GlobalManager.leafBlockIds.add(Blocks.leaves1.get().blockID);
|
|
|
|
GlobalManager.leafBlockIds.add(Blocks.leaves2.get().blockID);
|
|
|
|
GlobalManager.leafBlockIds.add(Blocks.leavesColorized.get().blockID);
|
|
|
|
GlobalManager.leafBlockIds.add(Blocks.leavesFruit.get().blockID);
|
|
|
|
|
|
|
|
GlobalManager.dirtBlockIds.add(Blocks.ash.get().blockID);
|
|
|
|
GlobalManager.dirtBlockIds.add(Blocks.hardDirt.get().blockID);
|
|
|
|
GlobalManager.dirtBlockIds.add(Blocks.holyGrass.get().blockID);
|
|
|
|
GlobalManager.dirtBlockIds.add(Blocks.mud.get().blockID);
|
|
|
|
GlobalManager.dirtBlockIds.add(Blocks.originGrass.get().blockID);
|
|
|
|
GlobalManager.dirtBlockIds.add(Blocks.redRock.get().blockID);
|
|
|
|
|
|
|
|
GlobalManager.sandBlockIds.add(Blocks.hardSand.get().blockID);
|
|
|
|
|
|
|
|
GlobalManager.snowBlockIds.add(Blocks.hardIce.get().blockID);
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
private static void addBlocksToBackpacks()
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
// Miner's Backpack
|
|
|
|
BackpackManager.backpackItems[MINER].add(new ItemStack(Blocks.amethystOre.get(), 1, 0));
|
2013-05-09 13:38:48 +00:00
|
|
|
BackpackManager.backpackItems[MINER].add(new ItemStack(Blocks.holyDirt.get(), 1, 0));
|
2013-05-31 10:34:02 +00:00
|
|
|
BackpackManager.backpackItems[MINER].add(new ItemStack(Blocks.holyStone.get(), 1, 0));
|
|
|
|
BackpackManager.backpackItems[MINER].add(new ItemStack(Blocks.redRock.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
BackpackManager.backpackItems[MINER].add(new ItemStack(Blocks.driedDirt.get(), 1, 0));
|
|
|
|
BackpackManager.backpackItems[MINER].add(new ItemStack(Blocks.holyGrass.get(), 1, 0));
|
|
|
|
BackpackManager.backpackItems[MINER].add(new ItemStack(Blocks.cragRock.get(), 1, 0));
|
|
|
|
BackpackManager.backpackItems[MINER].add(new ItemStack(Blocks.ashStone.get(), 1, 0));
|
|
|
|
BackpackManager.backpackItems[MINER].add(new ItemStack(Items.miscItems.get(), 1, 2));
|
|
|
|
|
|
|
|
// Digger's Backpack
|
|
|
|
BackpackManager.backpackItems[DIGGER].add(new ItemStack(Blocks.holyGrass.get(), 1, 1));
|
|
|
|
BackpackManager.backpackItems[DIGGER].add(new ItemStack(Blocks.mud.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
BackpackManager.backpackItems[DIGGER].add(new ItemStack(Blocks.hardDirt.get(), 1, 0));
|
|
|
|
BackpackManager.backpackItems[DIGGER].add(new ItemStack(Blocks.hardSand.get(), 1, 0));
|
|
|
|
BackpackManager.backpackItems[DIGGER].add(new ItemStack(Blocks.originGrass.get(), 1, 0));
|
|
|
|
BackpackManager.backpackItems[DIGGER].add(new ItemStack(Blocks.ash.get(), 1, 0));
|
|
|
|
|
|
|
|
// Forester's Backpack
|
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.logs1.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.logs2.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.logs3.get(), 1, OreDictionary.WILDCARD_VALUE));
|
2013-05-26 19:36:28 +00:00
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.logs4.get(), 1, OreDictionary.WILDCARD_VALUE));
|
2013-05-31 10:34:02 +00:00
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.colorizedSaplings.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.saplings.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.leaves1.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.leaves2.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.leavesColorized.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.leavesFruit.get(), 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.bamboo.get(), 1, 0));
|
|
|
|
BackpackManager.backpackItems[FORESTER].add(new ItemStack(Blocks.petals.get(), 1, OreDictionary.WILDCARD_VALUE));
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
}
|