public class ButterflyRoot extends SpeciesRoot implements IButterflyRoot
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
UID |
speciesTemplates| Constructor and Description |
|---|
ButterflyRoot() |
| Modifier and Type | Method and Description |
|---|---|
IAlyzerPlugin |
getAlyzerPlugin()
Plugin to add information for the handheld genetic analyzer.
|
ILepidopteristTracker |
getBreedingTracker(net.minecraft.world.World world,
com.mojang.authlib.GameProfile player) |
IAllele[] |
getDefaultTemplate() |
EnumFlutterType |
getIconType()
Species type used to represent this species in icons
|
java.util.List<IButterfly> |
getIndividualTemplates() |
IChromosomeType[] |
getKaryotype() |
IButterfly |
getMember(net.minecraft.item.ItemStack stack) |
IButterfly |
getMember(net.minecraft.nbt.NBTTagCompound compound) |
java.lang.Class<? extends IIndividual> |
getMemberClass() |
net.minecraft.item.ItemStack |
getMemberStack(IIndividual butterfly,
ISpeciesType type) |
java.util.List<IButterflyMutation> |
getMutations(boolean shuffle) |
IChromosomeType |
getSpeciesChromosomeType() |
int |
getSpeciesCount() |
IDatabasePlugin |
getSpeciesPlugin()
Plugin to add information for the handheld genetic analyzer and the database.
|
EnumFlutterType |
getType(net.minecraft.item.ItemStack stack) |
ISpeciesType[] |
getTypes() |
java.lang.String |
getUID() |
boolean |
isMated(net.minecraft.item.ItemStack stack) |
boolean |
isMember(IIndividual individual)
Used to check whether the given
IIndividual is member of this class. |
boolean |
isMember(net.minecraft.item.ItemStack stack)
Used to check whether a given itemstack contains genetic data corresponding to an
IIndividual of this class. |
boolean |
isMember(net.minecraft.item.ItemStack stack,
ISpeciesType type)
Used to check whether a given itemstack contains genetic data corresponding to an
IIndividual of this class and matches the given type. |
boolean |
isPositionValid(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
IButterfly caterpillar,
com.mojang.authlib.GameProfile gameProfile,
boolean createNursery)
Deprecated.
Call
isPositionValid(World, BlockPos, GameProfile, boolean) without a caterpillar parameter. |
net.minecraft.util.math.BlockPos |
plantCocoon(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos coordinates,
IButterfly caterpillar,
com.mojang.authlib.GameProfile owner,
int age,
boolean createNursery) |
void |
registerMutation(IMutation mutation)
Use to register mutations.
|
void |
registerTemplate(java.lang.String identifier,
IAllele[] template)
Registers a bee template using the passed identifier.
|
EntityButterfly |
spawnButterflyInWorld(net.minecraft.world.World world,
IButterfly butterfly,
double x,
double y,
double z)
Spawns the given butterfly in the world.
|
IButterflyGenome |
templateAsGenome(IAllele[] template) |
IButterflyGenome |
templateAsGenome(IAllele[] templateActive,
IAllele[] templateInactive) |
IButterfly |
templateAsIndividual(IAllele[] template) |
IButterfly |
templateAsIndividual(IAllele[] templateActive,
IAllele[] templateInactive) |
getCombinations, getCombinations, getGenomeTemplates, getPaths, getRandomTemplate, getResearchCatalysts, getResultantMutations, getTemplate, getTemplate, getTranslator, registerTemplate, registerTranslator, setResearchSuitability, templateAsChromosomes, templateAsChromosomes, translateMemberclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCombinations, getCombinations, getGenomeTemplates, getMemberStack, getMemberStack, getPaths, getRandomTemplate, getResearchCatalysts, getResultantMutations, getTemplate, getTemplate, getTranslator, getTypeForMutation, registerTemplate, registerTranslator, setResearchSuitability, templateAsChromosomes, templateAsChromosomes, translateMemberpublic static final java.lang.String UID
public java.lang.String getUID()
getUID in interface ISpeciesRootpublic java.lang.Class<? extends IIndividual> getMemberClass()
getMemberClass in interface ISpeciesRootIIndividual.public int getSpeciesCount()
getSpeciesCount in interface ISpeciesRootpublic boolean isMember(net.minecraft.item.ItemStack stack)
ISpeciesRootIIndividual of this class.isMember in interface ISpeciesRootisMember in interface IButterflyRootstack - itemstack to check.IIndividual of this class, false otherwise.@Nullable public EnumFlutterType getType(net.minecraft.item.ItemStack stack)
getType in interface ISpeciesRootgetType in interface IButterflyRootpublic EnumFlutterType getIconType()
ISpeciesRootgetIconType in interface ISpeciesRootpublic ISpeciesType[] getTypes()
getTypes in interface ISpeciesRootpublic boolean isMember(net.minecraft.item.ItemStack stack,
ISpeciesType type)
ISpeciesRootIIndividual of this class and matches the given type.isMember in interface ISpeciesRootstack - itemstack to check.type - Integer denoting the type needed to match. (i.e. butterfly vs. butterfly serum; bee queens, princesses, drones; etc.)IIndividual of this class, false otherwise.public boolean isMember(IIndividual individual)
ISpeciesRootIIndividual is member of this class.isMember in interface ISpeciesRootindividual - IIndividual to check.public IButterfly getMember(net.minecraft.item.ItemStack stack)
getMember in interface ISpeciesRootgetMember in interface IButterflyRootpublic IButterfly getMember(net.minecraft.nbt.NBTTagCompound compound)
getMember in interface ISpeciesRootgetMember in interface IButterflyRootpublic net.minecraft.item.ItemStack getMemberStack(IIndividual butterfly, ISpeciesType type)
getMemberStack in interface ISpeciesRootpublic EntityButterfly spawnButterflyInWorld(net.minecraft.world.World world, IButterfly butterfly, double x, double y, double z)
IButterflyRootspawnButterflyInWorld in interface IButterflyRootpublic net.minecraft.util.math.BlockPos plantCocoon(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos coordinates,
@Nullable
IButterfly caterpillar,
com.mojang.authlib.GameProfile owner,
int age,
boolean createNursery)
plantCocoon in interface IButterflyRoot@Deprecated
public boolean isPositionValid(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
@Nullable
IButterfly caterpillar,
com.mojang.authlib.GameProfile gameProfile,
boolean createNursery)
isPositionValid(World, BlockPos, GameProfile, boolean) without a caterpillar parameter.public boolean isMated(net.minecraft.item.ItemStack stack)
isMated in interface IButterflyRootpublic IButterfly templateAsIndividual(IAllele[] template)
templateAsIndividual in interface ISpeciesRoottemplateAsIndividual in interface IButterflyRootpublic IButterfly templateAsIndividual(IAllele[] templateActive, IAllele[] templateInactive)
templateAsIndividual in interface ISpeciesRoottemplateAsIndividual in interface IButterflyRootpublic IButterflyGenome templateAsGenome(IAllele[] template)
templateAsGenome in interface ISpeciesRoottemplateAsGenome in interface IButterflyRootpublic IButterflyGenome templateAsGenome(IAllele[] templateActive, IAllele[] templateInactive)
templateAsGenome in interface ISpeciesRoottemplateAsGenome in interface IButterflyRootpublic java.util.List<IButterfly> getIndividualTemplates()
getIndividualTemplates in interface ISpeciesRootgetIndividualTemplates in interface IButterflyRootpublic IAllele[] getDefaultTemplate()
getDefaultTemplate in interface ISpeciesRootpublic void registerTemplate(java.lang.String identifier,
IAllele[] template)
ISpeciesRootregisterTemplate in interface ISpeciesRootpublic void registerMutation(IMutation mutation)
ISpeciesRootregisterMutation in interface ISpeciesRootpublic java.util.List<IButterflyMutation> getMutations(boolean shuffle)
getMutations in interface ISpeciesRootgetMutations in interface IButterflyRootpublic ILepidopteristTracker getBreedingTracker(net.minecraft.world.World world, @Nullable com.mojang.authlib.GameProfile player)
getBreedingTracker in interface ISpeciesRootgetBreedingTracker in interface IButterflyRootpublic IChromosomeType[] getKaryotype()
getKaryotype in interface ISpeciesRootIChromosomeType which are in this species genomepublic IChromosomeType getSpeciesChromosomeType()
getSpeciesChromosomeType in interface ISpeciesRootIChromosomeType which is the "key" for this species class, the species chromosome.public IAlyzerPlugin getAlyzerPlugin()
ISpeciesRootgetAlyzerPlugin in interface ISpeciesRootpublic IDatabasePlugin getSpeciesPlugin()
ISpeciesRootgetSpeciesPlugin in interface ISpeciesRoot