当前位置: 首页>>代码示例>>Java>>正文


Java IAllele类代码示例

本文整理汇总了Java中forestry.api.genetics.IAllele的典型用法代码示例。如果您正苦于以下问题:Java IAllele类的具体用法?Java IAllele怎么用?Java IAllele使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IAllele类属于forestry.api.genetics包,在下文中一共展示了IAllele类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


注:本文中的forestry.api.genetics.IAllele类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。