Refactoring bee species (#73)

* Added *Definition for bee branches and bees

* Some refactoring for ExtraBeesSpecies

* More refactoring Bees

* Added effect to bees
Some refactoring
Added bee branch parent

* Fix Barren branch

* Fix Hostile branch

* Fix other bees

* Added person mutation condition

* Added person requirement mutation condition

* Fix change  for Jaded bee

* Drop some unused methods

* Revert Binnie logic in BreedingSystem
This commit is contained in:
Alexander Kornilov authored and mezz committed 2017-05-20 10:50:14 -07:00
1 parent a12ad2eae3
commit 4ef41b6f62
19 files changed
+2369 -2121

No files matched your search

@@ -0,0 +1,24 @@
package binnie.extrabees.genetics.requirements;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IGenome;
public class RequirementPerson implements IMutationRequirement {
protected String name;
public RequirementPerson(String name) {
this.name = name;
}
@Override
public String getDescription() {
return "Can only be bred by " + name;
}
@Override
public boolean fufilled(IBeeHousing housing, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1) {
String ownerName = housing.getOwner().getName();
return ownerName != null && ownerName.equals(name);
}
}