public class Butterfly extends IndividualLiving implements IButterfly
isAnalyzed| Constructor and Description |
|---|
Butterfly(IButterflyGenome genome) |
Butterfly(net.minecraft.nbt.NBTTagCompound nbt) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTooltip(java.util.List<java.lang.String> list)
Adds some information about the individual to the list.
|
boolean |
canSpawn(net.minecraft.world.World world,
double x,
double y,
double z) |
boolean |
canTakeFlight(net.minecraft.world.World world,
double x,
double y,
double z) |
IButterfly |
copy()
Create an exact copy of this butterfly.
|
java.util.Set<IErrorState> |
getCanGrow(IButterflyNursery nursery,
IButterflyCocoon cocoon)
Determines whether the caterpillar can grow.
|
java.util.Set<IErrorState> |
getCanSpawn(IButterflyNursery nursery,
IButterflyCocoon cocoon)
Determines whether the caterpillar can spawn.
|
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getCaterpillarDrop(IButterflyNursery nursery,
boolean playerKill,
int lootLevel) |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getCocoonDrop(IButterflyCocoon cocoon) |
IButterflyGenome |
getGenome() |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getLootDrop(IEntityButterfly entity,
boolean playerKill,
int lootLevel) |
IButterflyGenome |
getMate() |
float |
getSize() |
boolean |
isAcceptedEnvironment(net.minecraft.world.World world,
double x,
double y,
double z) |
void |
mate(IIndividual individual)
Mate with the given individual.
|
IButterfly |
spawnCaterpillar(net.minecraft.world.World world,
IButterflyNursery nursery) |
age, getHealth, getMaxHealth, isAlive, setHealth, writeToNBTanalyze, getDisplayName, getIdent, hasEffect, isAnalyzed, isGeneticEqual, isPureBred, isSecretclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitage, getHealth, getMaxHealth, isAlive, setHealthanalyze, getDisplayName, getIdent, hasEffect, isAnalyzed, isGeneticEqual, isPureBred, isSecretwriteToNBTpublic Butterfly(net.minecraft.nbt.NBTTagCompound nbt)
public Butterfly(IButterflyGenome genome)
public void addTooltip(java.util.List<java.lang.String> list)
IIndividualaddTooltip in interface IIndividualpublic IButterfly copy()
IButterflycopy in interface IIndividualcopy in interface IButterflypublic IButterflyGenome getGenome()
getGenome in interface IIndividualgetGenome in interface IButterfly@Nullable public IButterflyGenome getMate()
getMate in interface IIndividualLivinggetMate in interface IButterflygetMate in class IndividualLivingpublic java.util.Set<IErrorState> getCanSpawn(IButterflyNursery nursery, @Nullable IButterflyCocoon cocoon)
IButterflygetCanSpawn in interface IButterflynursery - the IButterflyNursery of the caterpillar.cocoon - the IButterflyCocoon the caterpillar resides in.public java.util.Set<IErrorState> getCanGrow(IButterflyNursery nursery, @Nullable IButterflyCocoon cocoon)
IButterflygetCanGrow in interface IButterflynursery - the IButterflyNursery of the caterpillar.cocoon - the IButterflyCocoon the caterpillar resides in.public boolean canSpawn(net.minecraft.world.World world,
double x,
double y,
double z)
canSpawn in interface IButterflypublic boolean canTakeFlight(net.minecraft.world.World world,
double x,
double y,
double z)
canTakeFlight in interface IButterflypublic boolean isAcceptedEnvironment(net.minecraft.world.World world,
double x,
double y,
double z)
isAcceptedEnvironment in interface IButterfly@Nullable public IButterfly spawnCaterpillar(net.minecraft.world.World world, IButterflyNursery nursery)
spawnCaterpillar in interface IButterflypublic float getSize()
getSize in interface IButterflypublic void mate(IIndividual individual)
IIndividualLivingmate in interface IIndividualLivingindividual - the IIndividual to mate this one with.public net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getLootDrop(IEntityButterfly entity, boolean playerKill, int lootLevel)
getLootDrop in interface IButterflyplayerKill - Whether or not the butterfly was killed by a player.lootLevel - Loot level according to the weapon used to kill the butterfly.public net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getCaterpillarDrop(IButterflyNursery nursery, boolean playerKill, int lootLevel)
getCaterpillarDrop in interface IButterflyplayerKill - Whether or not the nursery was broken by a player.lootLevel - Fortune level.public net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getCocoonDrop(IButterflyCocoon cocoon)
getCocoonDrop in interface IButterfly