41 lines
730 B
Java
41 lines
730 B
Java
package forestry.api.genetics;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
public interface IIndividualLiving extends IIndividual {
|
|
|
|
/**
|
|
* @return Genetic information of the mate, null if unmated.
|
|
*/
|
|
IGenome getMate();
|
|
|
|
/**
|
|
* @return Current health of the individual.
|
|
*/
|
|
int getHealth();
|
|
|
|
/**
|
|
* @return Maximum health of the individual.
|
|
*/
|
|
int getMaxHealth();
|
|
|
|
/**
|
|
* Age the individual.
|
|
* @param world
|
|
* @param ageModifier
|
|
*/
|
|
void age(World world, float ageModifier);
|
|
|
|
/**
|
|
* Mate with the given individual.
|
|
* @param individual the {@link IIndividual} to mate this one with.
|
|
*/
|
|
void mate(IIndividual individual);
|
|
|
|
/**
|
|
* @return true if the individual is among the living.
|
|
*/
|
|
boolean isAlive();
|
|
|
|
}
|