public class BeeRoot extends SpeciesRoot implements IBeeRoot
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
UID |
speciesTemplates| Constructor and Description |
|---|
BeeRoot() |
| Modifier and Type | Method and Description |
|---|---|
IBeeListener |
createBeeHousingListener(IBeeHousing housing)
Combines multiple listeners from an IBeeHousing into one.
|
IBeeModifier |
createBeeHousingModifier(IBeeHousing housing)
Combines multiple modifiers from an IBeeHousing into one.
|
IBeekeepingLogic |
createBeekeepingLogic(IBeeHousing housing)
Creates beekeepingLogic for a housing.
|
IAlyzerPlugin |
getAlyzerPlugin()
Plugin to add information for the handheld genetic analyzer.
|
IBee |
getBee(IBeeGenome genome) |
IBee |
getBee(net.minecraft.world.World world,
IBeeGenome genome,
IBee mate)
Creates an IBee suitable for a queen containing the necessary second genome for the mate.
|
IBeekeepingMode |
getBeekeepingMode(java.lang.String name) |
IBeekeepingMode |
getBeekeepingMode(net.minecraft.world.World world) |
java.util.List<IBeekeepingMode> |
getBeekeepingModes() |
IApiaristTracker |
getBreedingTracker(net.minecraft.world.World world,
com.mojang.authlib.GameProfile player) |
IAllele[] |
getDefaultTemplate() |
EnumBeeType |
getIconType()
Species type used to represent this species in icons
|
java.util.List<IBee> |
getIndividualTemplates() |
IChromosomeType[] |
getKaryotype() |
IBee |
getMember(net.minecraft.item.ItemStack stack) |
IBee |
getMember(net.minecraft.nbt.NBTTagCompound compound) |
java.lang.Class<? extends IIndividual> |
getMemberClass() |
net.minecraft.item.ItemStack |
getMemberStack(IIndividual individual,
ISpeciesType type) |
java.util.List<IBeeMutation> |
getMutations(boolean shuffle) |
IChromosomeType |
getSpeciesChromosomeType() |
int |
getSpeciesCount() |
IDatabasePlugin |
getSpeciesPlugin()
Plugin to add information for the handheld genetic analyzer and the database.
|
EnumBeeType |
getType(net.minecraft.item.ItemStack stack) |
ISpeciesType |
getTypeForMutation(int position)
The type of the species that will be used at the given position of the mutation recipe in the gui.
|
ISpeciesType[] |
getTypes() |
java.lang.String |
getUID() |
boolean |
isDrone(net.minecraft.item.ItemStack stack) |
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. |
void |
registerBeekeepingMode(IBeekeepingMode mode) |
void |
registerMutation(IMutation mutation)
Use to register mutations.
|
void |
registerTemplate(java.lang.String identifier,
IAllele[] template)
Registers a bee template using the passed identifier.
|
void |
resetBeekeepingMode() |
void |
setBeekeepingMode(net.minecraft.world.World world,
IBeekeepingMode mode) |
IBeeGenome |
templateAsGenome(IAllele[] template) |
IBeeGenome |
templateAsGenome(IAllele[] templateActive,
IAllele[] templateInactive) |
IBee |
templateAsIndividual(IAllele[] template) |
IBee |
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, 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 IBeeRootisMember in interface ISpeciesRootstack - itemstack to check.public 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 net.minecraft.item.ItemStack getMemberStack(IIndividual individual, ISpeciesType type)
getMemberStack in interface ISpeciesRoot@Nullable public EnumBeeType getType(net.minecraft.item.ItemStack stack)
getType in interface IBeeRootgetType in interface ISpeciesRootpublic EnumBeeType getIconType()
ISpeciesRootgetIconType in interface ISpeciesRootpublic ISpeciesType[] getTypes()
getTypes in interface ISpeciesRootpublic ISpeciesType getTypeForMutation(int position)
ISpeciesRootgetTypeForMutation in interface ISpeciesRootposition - 0 = first parent, 1 = second parent, 2 = resultpublic boolean isDrone(net.minecraft.item.ItemStack stack)
public boolean isMated(net.minecraft.item.ItemStack stack)
@Nullable public IBee getMember(net.minecraft.item.ItemStack stack)
getMember in interface IBeeRootgetMember in interface ISpeciesRootIBee pattern parsed from the passed stack's nbt data. Null if the ItemStack is not a valid member.public IBee getMember(net.minecraft.nbt.NBTTagCompound compound)
getMember in interface IBeeRootgetMember in interface ISpeciesRootpublic IBee getBee(IBeeGenome genome)
getBee in interface IBeeRootgenome - Valid IBeeGenomeIBee from the passed genomepublic IBee getBee(net.minecraft.world.World world, IBeeGenome genome, IBee mate)
IBeeRootgetBee in interface IBeeRootgenome - Valid IBeeGenomemate - Valid IBee representing the mate.IBee from the passed genomes.public IBeeGenome templateAsGenome(IAllele[] template)
templateAsGenome in interface IBeeRoottemplateAsGenome in interface ISpeciesRootpublic IBeeGenome templateAsGenome(IAllele[] templateActive, IAllele[] templateInactive)
templateAsGenome in interface IBeeRoottemplateAsGenome in interface ISpeciesRootpublic IBee templateAsIndividual(IAllele[] template)
templateAsIndividual in interface IBeeRoottemplateAsIndividual in interface ISpeciesRootpublic IBee templateAsIndividual(IAllele[] templateActive, IAllele[] templateInactive)
templateAsIndividual in interface IBeeRoottemplateAsIndividual in interface ISpeciesRootpublic java.util.List<IBee> getIndividualTemplates()
getIndividualTemplates in interface IBeeRootgetIndividualTemplates in interface ISpeciesRootpublic void registerTemplate(java.lang.String identifier,
IAllele[] template)
ISpeciesRootregisterTemplate in interface ISpeciesRootpublic IAllele[] getDefaultTemplate()
getDefaultTemplate in interface ISpeciesRootpublic java.util.List<IBeeMutation> getMutations(boolean shuffle)
getMutations in interface IBeeRootgetMutations in interface ISpeciesRootpublic void registerMutation(IMutation mutation)
ISpeciesRootregisterMutation in interface ISpeciesRootpublic void resetBeekeepingMode()
resetBeekeepingMode in interface IBeeRootpublic java.util.List<IBeekeepingMode> getBeekeepingModes()
getBeekeepingModes in interface IBeeRootpublic IBeekeepingMode getBeekeepingMode(net.minecraft.world.World world)
getBeekeepingMode in interface IBeeRootpublic void registerBeekeepingMode(IBeekeepingMode mode)
registerBeekeepingMode in interface IBeeRootpublic void setBeekeepingMode(net.minecraft.world.World world,
IBeekeepingMode mode)
setBeekeepingMode in interface IBeeRootpublic IBeekeepingMode getBeekeepingMode(java.lang.String name)
getBeekeepingMode in interface IBeeRootpublic IApiaristTracker getBreedingTracker(net.minecraft.world.World world, @Nullable com.mojang.authlib.GameProfile player)
getBreedingTracker in interface IBeeRootgetBreedingTracker in interface ISpeciesRootIApiaristTracker associated with the passed world.public IBeekeepingLogic createBeekeepingLogic(IBeeHousing housing)
IBeeRootcreateBeekeepingLogic in interface IBeeRootpublic IBeeModifier createBeeHousingModifier(IBeeHousing housing)
IBeeRootcreateBeeHousingModifier in interface IBeeRootpublic IBeeListener createBeeHousingListener(IBeeHousing housing)
IBeeRootcreateBeeHousingListener in interface IBeeRootpublic 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