public class TreeRoot extends SpeciesRoot implements ITreeRoot
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<ITree> |
treeTemplates |
static java.lang.String |
UID |
speciesTemplates| Constructor and Description |
|---|
TreeRoot() |
| Modifier and Type | Method and Description |
|---|---|
ICheckPollinatable |
createPollinatable(IIndividual individual) |
IAlyzerPlugin |
getAlyzerPlugin()
Plugin to add information for the handheld genetic analyzer.
|
IArboristTracker |
getBreedingTracker(net.minecraft.world.World world,
com.mojang.authlib.GameProfile player) |
IAllele[] |
getDefaultTemplate() |
java.util.Collection<IFruitProvider> |
getFruitProvidersForFruitFamily(IFruitFamily fruitFamily) |
EnumGermlingType |
getIconType()
Species type used to represent this species in icons
|
java.util.List<ITree> |
getIndividualTemplates() |
IChromosomeType[] |
getKaryotype() |
java.util.Collection<ILeafTickHandler> |
getLeafTickHandlers() |
ITree |
getMember(net.minecraft.item.ItemStack itemstack) |
ITree |
getMember(net.minecraft.nbt.NBTTagCompound compound) |
java.lang.Class<? extends IIndividual> |
getMemberClass() |
net.minecraft.item.ItemStack |
getMemberStack(IIndividual tree,
ISpeciesType type) |
java.util.List<ITreeMutation> |
getMutations(boolean shuffle) |
IChromosomeType |
getSpeciesChromosomeType() |
int |
getSpeciesCount() |
IDatabasePlugin |
getSpeciesPlugin()
Plugin to add information for the handheld genetic analyzer and the database.
|
ITree |
getTree(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
ITree |
getTree(net.minecraft.world.World world,
ITreeGenome genome) |
ITreekeepingMode |
getTreekeepingMode(java.lang.String name) |
ITreekeepingMode |
getTreekeepingMode(net.minecraft.world.World world) |
java.util.List<ITreekeepingMode> |
getTreekeepingModes() |
EnumGermlingType |
getType(net.minecraft.item.ItemStack stack) |
ISpeciesType[] |
getTypes() |
java.lang.String |
getUID() |
boolean |
isMember(IIndividual individual)
Used to check whether the given
IIndividual is member of this class. |
boolean |
isMember(net.minecraft.item.ItemStack itemstack)
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 |
plantSapling(net.minecraft.world.World world,
ITree tree,
com.mojang.authlib.GameProfile owner,
net.minecraft.util.math.BlockPos pos) |
void |
registerLeafTickHandler(ILeafTickHandler handler)
Register a leaf tick handler.
|
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 |
registerTreekeepingMode(ITreekeepingMode mode) |
boolean |
setFruitBlock(net.minecraft.world.World world,
ITreeGenome genome,
IAlleleFruit allele,
float yield,
net.minecraft.util.math.BlockPos pos) |
void |
setTreekeepingMode(net.minecraft.world.World world,
ITreekeepingMode mode) |
ITreeGenome |
templateAsGenome(IAllele[] template) |
ITreeGenome |
templateAsGenome(IAllele[] templateActive,
IAllele[] templateInactive) |
ITree |
templateAsIndividual(IAllele[] template) |
ITree |
templateAsIndividual(IAllele[] templateActive,
IAllele[] templateInactive) |
IPollinatable |
tryConvertToPollinatable(com.mojang.authlib.GameProfile owner,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
IIndividual individual) |
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, waittemplateAsChromosomes, templateAsChromosomesgetCombinations, getCombinations, getGenomeTemplates, getMemberStack, getMemberStack, getPaths, getRandomTemplate, getResearchCatalysts, getResultantMutations, getTemplate, getTemplate, getTranslator, getTypeForMutation, registerTemplate, registerTranslator, setResearchSuitability, translateMemberpublic static final java.lang.String UID
public static final java.util.List<ITree> treeTemplates
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 itemstack)
ISpeciesRootIIndividual of this class.isMember in interface ITreeRootisMember in interface ISpeciesRootitemstack - itemstack to check.IIndividual of this class, false otherwise.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.@Nullable public EnumGermlingType getType(net.minecraft.item.ItemStack stack)
getType in interface ITreeRootgetType in interface ISpeciesRootpublic EnumGermlingType getIconType()
ISpeciesRootgetIconType in interface ISpeciesRootpublic ISpeciesType[] getTypes()
getTypes in interface ISpeciesRootpublic ITree getTree(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
@Nullable public ITree getMember(net.minecraft.item.ItemStack itemstack)
getMember in interface ITreeRootgetMember in interface ISpeciesRootpublic ITree getMember(net.minecraft.nbt.NBTTagCompound compound)
getMember in interface ITreeRootgetMember in interface ISpeciesRootpublic ITree getTree(net.minecraft.world.World world, ITreeGenome genome)
public net.minecraft.item.ItemStack getMemberStack(IIndividual tree, ISpeciesType type)
getMemberStack in interface ISpeciesRootpublic boolean plantSapling(net.minecraft.world.World world,
ITree tree,
com.mojang.authlib.GameProfile owner,
net.minecraft.util.math.BlockPos pos)
plantSapling in interface ITreeRootpublic boolean setFruitBlock(net.minecraft.world.World world,
ITreeGenome genome,
IAlleleFruit allele,
float yield,
net.minecraft.util.math.BlockPos pos)
setFruitBlock in interface ITreeRootpublic ITreeGenome templateAsGenome(IAllele[] template)
templateAsGenome in interface ITreeRoottemplateAsGenome in interface ISpeciesRootpublic ITreeGenome templateAsGenome(IAllele[] templateActive, IAllele[] templateInactive)
templateAsGenome in interface ITreeRoottemplateAsGenome in interface ISpeciesRootpublic ITree templateAsIndividual(IAllele[] template)
templateAsIndividual in interface ITreeRoottemplateAsIndividual in interface ISpeciesRootpublic ITree templateAsIndividual(IAllele[] templateActive, IAllele[] templateInactive)
templateAsIndividual in interface ITreeRoottemplateAsIndividual in interface ISpeciesRootpublic IArboristTracker getBreedingTracker(net.minecraft.world.World world, @Nullable com.mojang.authlib.GameProfile player)
getBreedingTracker in interface ITreeRootgetBreedingTracker in interface ISpeciesRootIArboristTracker associated with the passed world.public java.util.List<ITreekeepingMode> getTreekeepingModes()
getTreekeepingModes in interface ITreeRootpublic ITreekeepingMode getTreekeepingMode(net.minecraft.world.World world)
getTreekeepingMode in interface ITreeRootpublic void registerTreekeepingMode(ITreekeepingMode mode)
registerTreekeepingMode in interface ITreeRootpublic void setTreekeepingMode(net.minecraft.world.World world,
ITreekeepingMode mode)
setTreekeepingMode in interface ITreeRootpublic ITreekeepingMode getTreekeepingMode(java.lang.String name)
getTreekeepingMode in interface ITreeRootpublic java.util.List<ITree> getIndividualTemplates()
getIndividualTemplates in interface ITreeRootgetIndividualTemplates in interface ISpeciesRootpublic void registerTemplate(java.lang.String identifier,
IAllele[] template)
ISpeciesRootregisterTemplate in interface ISpeciesRootpublic IAllele[] getDefaultTemplate()
getDefaultTemplate in interface ISpeciesRootpublic java.util.List<ITreeMutation> getMutations(boolean shuffle)
getMutations in interface ITreeRootgetMutations in interface ISpeciesRootpublic void registerMutation(IMutation mutation)
ISpeciesRootregisterMutation in interface ISpeciesRootpublic void registerLeafTickHandler(ILeafTickHandler handler)
ITreeRootregisterLeafTickHandler in interface ITreeRoothandler - the ILeafTickHandler to register.public java.util.Collection<ILeafTickHandler> getLeafTickHandlers()
getLeafTickHandlers in interface ITreeRootpublic 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 ISpeciesRootpublic ICheckPollinatable createPollinatable(IIndividual individual)
createPollinatable in interface ISpeciesRootPollinatable@Nullable public IPollinatable tryConvertToPollinatable(@Nullable com.mojang.authlib.GameProfile owner, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, IIndividual individual)
tryConvertToPollinatable in interface ISpeciesRootPollinatablepublic java.util.Collection<IFruitProvider> getFruitProvidersForFruitFamily(IFruitFamily fruitFamily)
getFruitProvidersForFruitFamily in interface ITreeRoot