Make the cocoonprovider to a allele

This commit is contained in:
Nedelosk committed 2016-03-26 17:38:50 +01:00
1 parent 31bd519eaf
commit 0349890ddd
17 files changed
+177 -111

No files matched your search

@@ -68,7 +68,9 @@ public enum EnumButterflyChromosome implements IChromosomeType {
/**
* Extra effect to surroundings. (?)
*/
EFFECT(IAlleleButterflyEffect.class);
EFFECT(IAlleleButterflyEffect.class),
COCOON(IAlleleButterflyCocoon.class);
Class<? extends IAllele> clss;
@@ -10,8 +10,12 @@
******************************************************************************/
package forestry.api.lepidopterology;
public interface IButterflyCocoonProvider {
import forestry.api.genetics.IAllele;
public interface IAlleleButterflyCocoon extends IAllele {
EnumCocoonType getCocoonType();
String getCocoonTexture(int age);
}
@@ -66,11 +66,6 @@ public interface IAlleleButterflySpecies extends IAlleleSpecies {
ISpriteProvider getSpriteProvider();
/**
* @return the IButterflyCocoonProvider
*/
IButterflyCocoonProvider getCocoonProvider();
/**
* @return The modid from the mod of the species.
*/
@@ -30,8 +30,7 @@ public interface IButterflyFactory {
* @param branch Classification of this species
* @param binomial Binomial name of the species sans genus. "humboldti" will have the bee species flavour name be "Apis humboldti". Feel free to use fun names or null.
* @param serumColour The color of this butterfly's serum.
* @param cocoonProvider A IButterflyCocoonProvider for the butterfly
* @return a new butterfly species allele.
*/
IAlleleButterflySpeciesBuilder createSpecies(String uid, String unlocalizedName, String authority, String unlocalizedDescription, String modID, String texturePath, boolean dominant, IClassification branch, String binomial, Color serumColour, IButterflyCocoonProvider cocoonProvider);
IAlleleButterflySpeciesBuilder createSpecies(String uid, String unlocalizedName, String authority, String unlocalizedDescription, String modID, String texturePath, boolean dominant, IClassification branch, String binomial, Color serumColour);
}
@@ -40,5 +40,7 @@ public interface IButterflyGenome extends IGenome {
IFlowerProvider getFlowerProvider();
IAlleleButterflyEffect getEffect();
IAlleleButterflyCocoon getCocoon();
}