mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-27 23:46:05 +00:00
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:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user