本文整理汇总了Java中forestry.api.genetics.IAllele类的典型用法代码示例。如果您正苦于以下问题:Java IAllele类的具体用法?Java IAllele怎么用?Java IAllele使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IAllele类属于forestry.api.genetics包,在下文中一共展示了IAllele类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getTemplateModBase
import forestry.api.genetics.IAllele; //导入依赖的package包/类
private static IAllele[] getTemplateModBase() {
IAllele[] genome = new IAllele[EnumBeeChromosome.values().length];
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.MYSTICAL.getSpecies();
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedSlowest");
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanShorter");
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityNormal");
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolFalse");
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
genome[EnumBeeChromosome.TOLERANT_FLYER.ordinal()] = Allele.getBaseAllele("boolFalse");
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolFalse");
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.getBaseAllele("flowersVanilla");
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringSlowest");
genome[EnumBeeChromosome.TERRITORY.ordinal()] = Allele.getBaseAllele("territoryDefault");
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.getBaseAllele("effectNone");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:20,代码来源:BeeGenomeManager.java
示例2: getTemplateAMLightning
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateAMLightning() {
IAllele[] genome = getTemplateAMBase();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.AM_LIGHTNING.getSpecies();
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanShortest");
genome[EnumBeeChromosome.TERRITORY.ordinal()] = Allele.getBaseAllele("territoryLargest");
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.speedBlinding;
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
if (ExtraBeesHelper.isActive())
{
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.getAllele("extrabees.effect.lightning");
}
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:17,代码来源:BeeGenomeManager.java
示例3: getTemplateTEShocking
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateTEShocking() {
IAllele[] genome = getTemplateTEEnd();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.TE_SHOCKING.getSpecies();
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedFast");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:9,代码来源:BeeGenomeManager.java
示例4: getTemplateUnusual
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateUnusual() {
IAllele[] genome = getTemplateModBase();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.UNUSUAL.getSpecies();
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth2");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:9,代码来源:BeeGenomeManager.java
示例5: getTemplateAttuned
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateAttuned() {
IAllele[] genome = getTemplateModBase();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.ATTUNED.getSpecies();
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityHigh");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:9,代码来源:BeeGenomeManager.java
示例6: getTemplateAMPlant
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateAMPlant() {
IAllele[] genome = getTemplateAMBase();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.AM_PLANT.getSpecies();
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringFastest");
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedNorm");
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth1");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:12,代码来源:BeeGenomeManager.java
示例7: getTemplateArcane
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateArcane() {
IAllele[] genome = getTemplateBaseArcane();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.ARCANE.getSpecies();
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth2");
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityNormal");
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringAverage");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:11,代码来源:BeeGenomeManager.java
示例8: getTemplateBaseSupernatural
import forestry.api.genetics.IAllele; //导入依赖的package包/类
private static IAllele[] getTemplateBaseSupernatural() {
IAllele[] genome = getTemplateModBase();
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedNorm");
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringSlowest");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:10,代码来源:BeeGenomeManager.java
示例9: getTemplateEnchanted
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateEnchanted() {
IAllele[] genome = getTemplateBaseSupernatural();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.ENCHANTED.getSpecies();
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth1");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:9,代码来源:BeeGenomeManager.java
示例10: getTemplateSupernatural
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateSupernatural() {
IAllele[] genome = getTemplateBaseSupernatural();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.SUPERNATURAL.getSpecies();
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth2");
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth1");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:10,代码来源:BeeGenomeManager.java
示例11: getTemplateEthereal
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateEthereal() {
IAllele[] genome = getTemplateModBase();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.ETHEREAL.getSpecies();
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedNorm");
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanShortened");
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringAverage");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:11,代码来源:BeeGenomeManager.java
示例12: getTemplateBaseElemental
import forestry.api.genetics.IAllele; //导入依赖的package包/类
private static IAllele[] getTemplateBaseElemental() {
IAllele[] genome = getTemplateModBase();
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedNorm");
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanNormal");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:9,代码来源:BeeGenomeManager.java
示例13: getTemplateWatery
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateWatery() {
IAllele[] genome = getTemplateBaseElemental();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.WATERY.getSpecies();
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceUp1");
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceDown2");
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.getBaseAllele("flowersSnow");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:11,代码来源:BeeGenomeManager.java
示例14: getTemplateFirey
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateFirey() {
IAllele[] genome = getTemplateBaseElemental();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.FIREY.getSpecies();
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceDown1");
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceUp2");
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.getBaseAllele("flowersCacti");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:11,代码来源:BeeGenomeManager.java
示例15: addGeneToCompound
import forestry.api.genetics.IAllele; //导入依赖的package包/类
private static void addGeneToCompound(EnumBeeChromosome gene, IAllele allele, NBTTagCompound compound) {
NBTTagCompound geneRoot = new NBTTagCompound();
compound.setTag("Genome", geneRoot);
NBTTagList chromosomes = new NBTTagList();
geneRoot.setTag("Chromosomes", chromosomes);
NBTTagCompound selectedGene = new NBTTagCompound();
chromosomes.appendTag(selectedGene);
selectedGene.setByte("Slot", (byte)gene.ordinal());
selectedGene.setString("UID0", allele.getUID());
selectedGene.setString("UID1", allele.getUID());
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:14,代码来源:BeeGenomeManager.java
示例16: getTemplateWindy
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateWindy() {
IAllele[] genome = getTemplateBaseElemental();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.WINDY.getSpecies();
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth2");
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedFaster");
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringFaster");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:11,代码来源:BeeGenomeManager.java
示例17: getTemplateBaseScholarly
import forestry.api.genetics.IAllele; //导入依赖的package包/类
private static IAllele[] getTemplateBaseScholarly() {
IAllele[] genome = getTemplateModBase();
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedSlow");
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanElongated");
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceUp2");
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.flowerBookshelf;
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:13,代码来源:BeeGenomeManager.java
示例18: getTemplateTEGelid
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateTEGelid() {
IAllele[] genome = getTemplateTEBlizzy();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.TE_GELID.getSpecies();
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.spawnBlizz;
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:9,代码来源:BeeGenomeManager.java
示例19: getTemplateTERocking
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateTERocking() {
IAllele[] genome = getTemplateTEGrounded();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.TE_ROCKING.getSpecies();
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedFaster");
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.spawnBasalz;
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:10,代码来源:BeeGenomeManager.java
示例20: getTemplateSavant
import forestry.api.genetics.IAllele; //导入依赖的package包/类
public static IAllele[] getTemplateSavant() {
IAllele[] genome = getTemplateBaseScholarly();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.SAVANT.getSpecies();
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedNorm");
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityLow");
return genome;
}
开发者ID:MagicBees,项目名称:MagicBees,代码行数:10,代码来源:BeeGenomeManager.java
注:本文中的forestry.api.genetics.IAllele类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论