public interface IButterfly extends IIndividualLiving
| Modifier and Type | Method and Description |
|---|---|
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) |
IButterfly |
spawnCaterpillar(net.minecraft.world.World world,
IButterflyNursery nursery) |
age, getHealth, getMaxHealth, isAlive, mate, setHealthaddTooltip, analyze, getDisplayName, getIdent, hasEffect, isAnalyzed, isGeneticEqual, isPureBred, isSecretwriteToNBTIButterflyGenome getGenome()
getGenome in interface IIndividualIButterflyGenome getMate()
getMate in interface IIndividualLivingfloat getSize()
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)
boolean isAcceptedEnvironment(net.minecraft.world.World world,
double x,
double y,
double z)
@Nullable IButterfly spawnCaterpillar(net.minecraft.world.World world, IButterflyNursery nursery)
java.util.Set<IErrorState> getCanGrow(IButterflyNursery nursery, @Nullable IButterflyCocoon cocoon)
cocoon - the IButterflyCocoon the caterpillar resides in.nursery - the IButterflyNursery of the caterpillar.java.util.Set<IErrorState> getCanSpawn(IButterflyNursery nursery, @Nullable IButterflyCocoon cocoon)
cocoon - the IButterflyCocoon the caterpillar resides in.nursery - the IButterflyNursery of the caterpillar.net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getLootDrop(IEntityButterfly entity, boolean playerKill, int lootLevel)
playerKill - Whether or not the butterfly was killed by a player.lootLevel - Loot level according to the weapon used to kill the butterfly.net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getCaterpillarDrop(IButterflyNursery nursery, boolean playerKill, int lootLevel)
playerKill - Whether or not the nursery was broken by a player.lootLevel - Fortune level.net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getCocoonDrop(IButterflyCocoon cocoon)
IButterfly copy()
copy in interface IIndividual