Use generics for Chromosome type, begin unifying code

This commit is contained in:
mezz committed 2016-02-27 00:14:22 -08:00
1 parent a8270ef365
commit 43e41034f6
217 files changed
+3148 -2417

No files matched your search

@@ -9,6 +9,8 @@ import java.util.EnumSet;
import net.minecraftforge.common.EnumPlantType;
import forestry.api.arboriculture.ITree;
/**
* Can be implemented by tile entities, if they wish to be pollinatable.
*
@@ -24,7 +26,7 @@ public interface IPollinatable {
/**
* @return IIndividual containing the genetic information of this IPollinatable
*/
IIndividual getPollen();
ITree getPollen();
/**
* Checks whether this {@link IPollinatable} can mate with the given pollen.
@@ -35,7 +37,7 @@ public interface IPollinatable {
* IIndividual representing the pollen.
* @return true if mating is possible, false otherwise.
*/
boolean canMateWith(IIndividual pollen);
boolean canMateWith(ITree pollen);
/**
* Pollinates this entity.
@@ -43,7 +45,7 @@ public interface IPollinatable {
* @param pollen
* IIndividual representing the pollen.
*/
void mateWith(IIndividual pollen);
void mateWith(ITree pollen);
/**
* @return true if this IPollinatable has already been pollinated.