New Forestry API update

Hive gen work.
This commit is contained in:
MysteriousAges committed 2013-05-29 17:49:54 -07:00
1 parent 48b9d59f33
commit c9bffd18d8
5 files changed
+367 -97

No files matched your search

+19 -7
View File
@@ -65,6 +65,7 @@ public class BeeMutation implements IBeeMutation
Allele.beeRoot.registerMutation(this);
}
@Override
public float getChance(IBeeHousing housing, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1)
{
float finalChance = 0f;
@@ -149,31 +150,37 @@ public class BeeMutation implements IBeeMutation
return finalChance;
}
@Override
public IAllele getAllele0()
{
return parent1;
}
@Override
public IAllele getAllele1()
{
return parent2;
}
@Override
public IAllele[] getTemplate()
{
return mutationTemplate;
}
@Override
public float getBaseChance()
{
return baseChance;
}
@Override
public boolean isPartner(IAllele allele)
{
return parent1.getUID().equals(allele.getUID()) || parent2.getUID().equals(allele.getUID());
}
@Override
public IAllele getPartner(IAllele allele)
{
IAllele val = parent1;
@@ -181,6 +188,18 @@ public class BeeMutation implements IBeeMutation
val = parent2;
return val;
}
@Override
public Collection<String> getSpecialConditions()
{
return new ArrayList<String>(0);
}
@Override
public IBeeRoot getRoot()
{
return Allele.beeRoot;
}
public boolean arePartners(IAllele alleleA, IAllele alleleB)
{
@@ -274,11 +293,4 @@ public class BeeMutation implements IBeeMutation
return this.setAuraNodeRequired(range);
}
@Override
public Collection<String> getSpecialConditions()
{
// TODO Auto-generated method stub
return null;
}
}