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

@@ -5,18 +5,15 @@
******************************************************************************/
package forestry.api.apiculture;
import javax.annotation.Nonnull;
import java.util.ArrayList;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
public interface IBeekeepingMode {
/**
* @return Localized name of this beekeeping mode.
*/
String getName();
import forestry.api.genetics.ISpeciesMode;
public interface IBeekeepingMode extends ISpeciesMode<BeeChromosome> {
/**
* @return Localized list of strings outlining the behaviour of this beekeeping mode.
*/
@@ -55,12 +52,6 @@ public interface IBeekeepingMode {
*/
boolean isDegenerating(IBee queen, IBee offspring, IBeeHousing housing);
/**
* @param queen
* @return true if an offspring of this queen is considered a natural
*/
boolean isNaturalOffspring(IBee queen);
/**
* @param queen
* @return true if this mode allows the passed queen or princess to be multiplied
@@ -70,5 +61,6 @@ public interface IBeekeepingMode {
/**
* @return the bee modifier for this mode
*/
@Nonnull
IBeeModifier getBeeModifier();
}