mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 03:59:45 +00:00
Cleanup, Fix Allele Propertys
This commit is contained in:
1 parent
2f711b0493
commit
339bbbe0f7
8 files changed
+27
-8
No files matched your search
@@ -5,12 +5,12 @@
|
||||
******************************************************************************/
|
||||
package forestry.api.arboriculture;
|
||||
|
||||
import forestry.api.genetics.IAllele;
|
||||
import forestry.api.genetics.IAlleleComparable;
|
||||
|
||||
/**
|
||||
* Simple allele encapsulating an {@link IFruitProvider}.
|
||||
*/
|
||||
public interface IAlleleFruit extends IAllele {
|
||||
public interface IAlleleFruit extends IAlleleComparable<IAlleleFruit> {
|
||||
|
||||
IFruitProvider getProvider();
|
||||
|
||||
|
||||
@@ -14,10 +14,11 @@ import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import forestry.api.core.IModelManager;
|
||||
import forestry.api.genetics.IAlleleComparable;
|
||||
import forestry.api.genetics.IAlleleSpecies;
|
||||
import forestry.api.genetics.IFruitFamily;
|
||||
|
||||
public interface IAlleleTreeSpecies extends IAlleleSpecies<TreeChromosome> {
|
||||
public interface IAlleleTreeSpecies extends IAlleleSpecies<TreeChromosome>, IAlleleComparable<IAlleleTreeSpecies> {
|
||||
|
||||
@Override
|
||||
ITreeRoot getRoot();
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package forestry.api.genetics;
|
||||
|
||||
public interface IAlleleComparable<A extends IAlleleComparable<A>> extends IAllele, Comparable<A> {
|
||||
|
||||
/**
|
||||
* To campare the allele for the propertys
|
||||
*/
|
||||
@Override
|
||||
int compareTo(A o);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user