mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Revert "Revert "Add factories for creating bee species and mutations""
This reverts commit 0c12fdf730.
This commit is contained in:
1 parent
0c12fdf730
commit
7f4a13aa23
108 files changed
+2397
-1766
No files matched your search
@@ -49,7 +49,6 @@ import forestry.api.apiculture.BeeManager;
|
||||
import forestry.api.apiculture.EnumBeeType;
|
||||
import forestry.api.apiculture.FlowerManager;
|
||||
import forestry.api.apiculture.IBeeGenome;
|
||||
import forestry.api.apiculture.IBeeRoot;
|
||||
import forestry.api.apiculture.hives.HiveManager;
|
||||
import forestry.api.core.Tabs;
|
||||
import forestry.api.genetics.AlleleManager;
|
||||
@@ -62,7 +61,6 @@ import forestry.apiculture.GuiHandlerApiculture;
|
||||
import forestry.apiculture.SaveEventHandlerApiculture;
|
||||
import forestry.apiculture.VillageHandlerApiculture;
|
||||
import forestry.apiculture.commands.CommandBee;
|
||||
import forestry.apiculture.flowers.FlowerProvider;
|
||||
import forestry.apiculture.flowers.FlowerRegistry;
|
||||
import forestry.apiculture.gadgets.BlockAlveary;
|
||||
import forestry.apiculture.gadgets.BlockBeehives;
|
||||
@@ -97,12 +95,14 @@ import forestry.apiculture.genetics.AlleleEffectRadioactive;
|
||||
import forestry.apiculture.genetics.AlleleEffectRepulsion;
|
||||
import forestry.apiculture.genetics.AlleleEffectResurrection;
|
||||
import forestry.apiculture.genetics.AlleleEffectSnowing;
|
||||
import forestry.apiculture.genetics.AlleleFlowers;
|
||||
import forestry.apiculture.genetics.BeeHelper;
|
||||
import forestry.apiculture.genetics.BeekeepingMode;
|
||||
import forestry.apiculture.genetics.BeeDefinition;
|
||||
import forestry.apiculture.genetics.BeeBranchDefinition;
|
||||
import forestry.apiculture.genetics.BeeDefinition;
|
||||
import forestry.apiculture.genetics.BeeFactory;
|
||||
import forestry.apiculture.genetics.BeeHelper;
|
||||
import forestry.apiculture.genetics.BeeMutationFactory;
|
||||
import forestry.apiculture.genetics.BeekeepingMode;
|
||||
import forestry.apiculture.genetics.HiveDrop;
|
||||
import forestry.apiculture.genetics.JubilanceFactory;
|
||||
import forestry.apiculture.items.ItemAlvearyBlock;
|
||||
import forestry.apiculture.items.ItemArmorApiarist;
|
||||
import forestry.apiculture.items.ItemBeeGE;
|
||||
@@ -131,7 +131,7 @@ import forestry.core.fluids.Fluids;
|
||||
import forestry.core.gadgets.BlockBase;
|
||||
import forestry.core.gadgets.MachineDefinition;
|
||||
import forestry.core.gadgets.TileAnalyzer;
|
||||
import forestry.core.genetics.Allele;
|
||||
import forestry.core.genetics.alleles.Allele;
|
||||
import forestry.core.interfaces.IPacketHandler;
|
||||
import forestry.core.interfaces.ISaveEventHandler;
|
||||
import forestry.core.items.ItemForestry;
|
||||
@@ -157,10 +157,6 @@ public class PluginApiculture extends ForestryPlugin {
|
||||
public static boolean apiarySideSensitive = false;
|
||||
public static boolean fancyRenderedBees = false;
|
||||
|
||||
/**
|
||||
* See {@link IBeeRoot} for details
|
||||
*/
|
||||
public static IBeeRoot beeInterface;
|
||||
public static HiveRegistry hiveRegistry;
|
||||
|
||||
public static MachineDefinition definitionApiary;
|
||||
@@ -180,15 +176,20 @@ public class PluginApiculture extends ForestryPlugin {
|
||||
|
||||
BeeManager.villageBees = new ArrayList[]{new ArrayList<IBeeGenome>(), new ArrayList<IBeeGenome>()};
|
||||
|
||||
BeeManager.beeFactory = new BeeFactory();
|
||||
BeeManager.beeMutationFactory = new BeeMutationFactory();
|
||||
BeeManager.jubilanceFactory = new JubilanceFactory();
|
||||
|
||||
// Init bee interface
|
||||
AlleleManager.alleleRegistry.registerSpeciesRoot(PluginApiculture.beeInterface = new BeeHelper());
|
||||
BeeManager.beeRoot = new BeeHelper();
|
||||
AlleleManager.alleleRegistry.registerSpeciesRoot(BeeManager.beeRoot);
|
||||
|
||||
// Modes
|
||||
PluginApiculture.beeInterface.registerBeekeepingMode(BeekeepingMode.easy);
|
||||
PluginApiculture.beeInterface.registerBeekeepingMode(BeekeepingMode.normal);
|
||||
PluginApiculture.beeInterface.registerBeekeepingMode(BeekeepingMode.hard);
|
||||
PluginApiculture.beeInterface.registerBeekeepingMode(BeekeepingMode.hardcore);
|
||||
PluginApiculture.beeInterface.registerBeekeepingMode(BeekeepingMode.insane);
|
||||
BeeManager.beeRoot.registerBeekeepingMode(BeekeepingMode.easy);
|
||||
BeeManager.beeRoot.registerBeekeepingMode(BeekeepingMode.normal);
|
||||
BeeManager.beeRoot.registerBeekeepingMode(BeekeepingMode.hard);
|
||||
BeeManager.beeRoot.registerBeekeepingMode(BeekeepingMode.hardcore);
|
||||
BeeManager.beeRoot.registerBeekeepingMode(BeekeepingMode.insane);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -784,37 +785,26 @@ public class PluginApiculture extends ForestryPlugin {
|
||||
apidae.addMemberGroup(beeBranch.getBranch());
|
||||
}
|
||||
|
||||
// / BEES // FLOWER PROVIDERS 1500 - 1599
|
||||
Allele.flowersVanilla = new AlleleFlowers("flowersVanilla", new FlowerProvider(FlowerManager.FlowerTypeVanilla, "flowers.vanilla"), true);
|
||||
Allele.flowersNether = new AlleleFlowers("flowersNether", new FlowerProvider(FlowerManager.FlowerTypeNether, "flowers.nether"));
|
||||
Allele.flowersCacti = new AlleleFlowers("flowersCacti", new FlowerProvider(FlowerManager.FlowerTypeCacti, "flowers.cacti"));
|
||||
Allele.flowersMushrooms = new AlleleFlowers("flowersMushrooms", new FlowerProvider(FlowerManager.FlowerTypeMushrooms, "flowers.mushroom"));
|
||||
Allele.flowersEnd = new AlleleFlowers("flowersEnd", new FlowerProvider(FlowerManager.FlowerTypeEnd, "flowers.end"));
|
||||
Allele.flowersJungle = new AlleleFlowers("flowersJungle", new FlowerProvider(FlowerManager.FlowerTypeJungle, "flowers.jungle"));
|
||||
Allele.flowersSnow = new AlleleFlowers("flowersSnow", new FlowerProvider(FlowerManager.FlowerTypeSnow, "flowers.vanilla"), true);
|
||||
Allele.flowersWheat = new AlleleFlowers("flowersWheat", new FlowerProvider(FlowerManager.FlowerTypeWheat, "flowers.wheat"), true);
|
||||
Allele.flowersGourd = new AlleleFlowers("flowersGourd", new FlowerProvider(FlowerManager.FlowerTypeGourd, "flowers.gourd"), true);
|
||||
|
||||
// / BEES // EFFECTS 1800 - 1899
|
||||
Allele.effectNone = new AlleleEffectNone("effectNone");
|
||||
Allele.effectAggressive = new AlleleEffectAggressive("effectAggressive");
|
||||
Allele.effectHeroic = new AlleleEffectHeroic("effectHeroic");
|
||||
Allele.effectBeatific = new AlleleEffectPotion("effectBeatific", "beatific", false, Potion.regeneration, 100, true);
|
||||
Allele.effectMiasmic = new AlleleEffectMiasmic("effectMiasmic");
|
||||
Allele.effectMisanthrope = new AlleleEffectMisanthrope("effectMisanthrope");
|
||||
Allele.effectGlacial = new AlleleEffectGlacial("effectGlacial");
|
||||
Allele.effectRadioactive = new AlleleEffectRadioactive("effectRadioactive");
|
||||
Allele.effectCreeper = new AlleleEffectCreeper("effectCreeper");
|
||||
Allele.effectIgnition = new AlleleEffectIgnition("effectIgnition");
|
||||
Allele.effectExploration = new AlleleEffectExploration("effectExploration");
|
||||
Allele.effectFestiveEaster = new AlleleEffectNone("effectFestiveEaster");
|
||||
Allele.effectSnowing = new AlleleEffectSnowing("effectSnowing");
|
||||
Allele.effectDrunkard = new AlleleEffectPotion("effectDrunkard", "drunkard", false, Potion.confusion, 100, false);
|
||||
Allele.effectReanimation = new AlleleEffectResurrection("effectReanimation", "reanimation", AlleleEffectResurrection.getReanimationList());
|
||||
Allele.effectResurrection = new AlleleEffectResurrection("effectResurrection", "resurrection", AlleleEffectResurrection.getResurrectionList());
|
||||
Allele.effectRepulsion = new AlleleEffectRepulsion("effectRepulsion");
|
||||
Allele.effectFertile = new AlleleEffectFertile("effectFertile");
|
||||
Allele.effectMycophilic = new AlleleEffectFungification("effectMycophilic");
|
||||
Allele.effectNone = new AlleleEffectNone("none");
|
||||
Allele.effectAggressive = new AlleleEffectAggressive();
|
||||
Allele.effectHeroic = new AlleleEffectHeroic();
|
||||
Allele.effectBeatific = new AlleleEffectPotion("beatific", false, Potion.regeneration, 100, true);
|
||||
Allele.effectMiasmic = new AlleleEffectMiasmic();
|
||||
Allele.effectMisanthrope = new AlleleEffectMisanthrope();
|
||||
Allele.effectGlacial = new AlleleEffectGlacial();
|
||||
Allele.effectRadioactive = new AlleleEffectRadioactive();
|
||||
Allele.effectCreeper = new AlleleEffectCreeper();
|
||||
Allele.effectIgnition = new AlleleEffectIgnition();
|
||||
Allele.effectExploration = new AlleleEffectExploration();
|
||||
Allele.effectFestiveEaster = new AlleleEffectNone("festiveEaster");
|
||||
Allele.effectSnowing = new AlleleEffectSnowing();
|
||||
Allele.effectDrunkard = new AlleleEffectPotion("drunkard", false, Potion.confusion, 100, false);
|
||||
Allele.effectReanimation = new AlleleEffectResurrection("reanimation", AlleleEffectResurrection.getReanimationList());
|
||||
Allele.effectResurrection = new AlleleEffectResurrection("resurrection", AlleleEffectResurrection.getResurrectionList());
|
||||
Allele.effectRepulsion = new AlleleEffectRepulsion();
|
||||
Allele.effectFertile = new AlleleEffectFertile();
|
||||
Allele.effectMycophilic = new AlleleEffectFungification();
|
||||
}
|
||||
|
||||
public static float getSecondPrincessChance() {
|
||||
|
||||
Reference in new issue
Block a user