Use ITree for pollen

This commit is contained in:
mezz committed 2016-03-03 22:07:27 -08:00
1 parent 86e3ae87fd
commit 545b051dd4
11 files changed
+37 -37

No files matched your search

@@ -13,9 +13,9 @@ import java.util.Set;
import net.minecraft.item.ItemStack;
import net.minecraft.world.biome.BiomeGenBase;
import forestry.api.arboriculture.ITree;
import forestry.api.core.IErrorState;
import forestry.api.genetics.IEffectData;
import forestry.api.genetics.IIndividual;
import forestry.api.genetics.IIndividualLiving;
/**
@@ -85,8 +85,8 @@ public interface IBee extends IIndividualLiving {
void plantFlowerRandom(IBeeHousing housing);
IIndividual retrievePollen(IBeeHousing housing);
ITree retrievePollen(IBeeHousing housing);
boolean pollinateRandom(IBeeHousing housing, IIndividual pollen);
boolean pollinateRandom(IBeeHousing housing, ITree pollen);
}
@@ -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.
@@ -8,7 +8,7 @@ package forestry.api.lepidopterology;
import net.minecraft.entity.EntityCreature;
import net.minecraft.entity.passive.IAnimals;
import forestry.api.genetics.IIndividual;
import forestry.api.arboriculture.ITree;
public interface IEntityButterfly extends IAnimals {
@@ -23,7 +23,7 @@ public interface IEntityButterfly extends IAnimals {
*/
EntityCreature getEntity();
IIndividual getPollen();
ITree getPollen();
void setPollen(IIndividual pollen);
void setPollen(ITree pollen);
}