Test with stuff + Forestry potential support
This commit is contained in:
parent
5b05cf651b
commit
bd26e441cb
174 changed files with 5602 additions and 0 deletions
40
BM_src/forestry/api/genetics/IIndividualLiving.java
Normal file
40
BM_src/forestry/api/genetics/IIndividualLiving.java
Normal file
|
@ -0,0 +1,40 @@
|
|||
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();
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue