public abstract class IndividualLiving extends Individual implements IIndividualLiving
isAnalyzed| Modifier | Constructor and Description |
|---|---|
protected |
IndividualLiving() |
protected |
IndividualLiving(int newHealth) |
protected |
IndividualLiving(net.minecraft.nbt.NBTTagCompound nbt) |
| Modifier and Type | Method and Description |
|---|---|
void |
age(net.minecraft.world.World world,
float lifespanModifier)
Age the individual.
|
int |
getHealth() |
abstract IGenome |
getMate() |
int |
getMaxHealth() |
boolean |
isAlive() |
void |
setHealth(int health)
Set the current health of the individual.
|
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
analyze, getDisplayName, getIdent, hasEffect, isAnalyzed, isGeneticEqual, isPureBred, isSecretclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmateaddTooltip, analyze, copy, getDisplayName, getGenome, getIdent, hasEffect, isAnalyzed, isGeneticEqual, isPureBred, isSecretprotected IndividualLiving()
protected IndividualLiving(int newHealth)
protected IndividualLiving(net.minecraft.nbt.NBTTagCompound nbt)
public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in interface INbtWritablewriteToNBT in class Individual@Nullable public abstract IGenome getMate()
getMate in interface IIndividualLivingpublic boolean isAlive()
isAlive in interface IIndividualLivingpublic int getHealth()
getHealth in interface IIndividualLivingpublic final void setHealth(int health)
IIndividualLivingsetHealth in interface IIndividualLivingpublic int getMaxHealth()
getMaxHealth in interface IIndividualLivingpublic void age(net.minecraft.world.World world,
float lifespanModifier)
IIndividualLivingage in interface IIndividualLiving