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


Java Config.allowMirrors方法代码示例

本文整理汇总了Java中thaumcraft.common.config.Config.allowMirrors方法的典型用法代码示例。如果您正苦于以下问题:Java Config.allowMirrors方法的具体用法?Java Config.allowMirrors怎么用?Java Config.allowMirrors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在thaumcraft.common.config.Config的用法示例。


在下文中一共展示了Config.allowMirrors方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: postInit

import thaumcraft.common.config.Config; //导入方法依赖的package包/类
public static void postInit() {
    ResearchItem researchJar = PseudoResearchItem.create("JARLABEL", -3, -7).registerResearchItem();

    RecipeVisualStickyJar visualRecipe = new RecipeVisualStickyJar();
    ResearchPage page = new ResearchPage(visualRecipe);

    researchStickyJar = new StickyJarResearchItem("STICKYJAR", -5, -5, 2,
            new AspectList().add(Aspect.SLIME, 8).add(Aspect.EARTH, 8))
            .setParents(researchJar.key).setConcealed()
            .setPages(new ResearchPage("gadomancy.research_page.STICKYJAR.1"), page).registerResearchItem();

    if(researchBlockProtector != null) {
        researchBlockProtector.setParents(researchStickyJar.key);
    }

    String[] parents = Config.allowMirrors ? new String[] { researchJar.key, "MIRRORESSENTIA" } : new String[] { researchJar.key };
    researchRemoteJar = new SimpleResearchItem("REMOTEJAR", -4, -3, 3,
            RegisteredRecipes.recipeRemoteJar.getRecipeOutput(),
            new AspectList().add(Aspect.WATER, 4).add(Aspect.MECHANISM, 8).add(Aspect.EARTH, 4).add(Aspect.ORDER, 8))
            .setParents(parents).setConcealed()
            .setPages(new ResearchPage("gadomancy.research_page.REMOTEJAR.1"), new ResearchPage(RegisteredRecipes.recipeRemoteJar), new ResearchPage("gadomancy.research_page.REMOTEJAR.2")).registerResearchItem();

    //Aura researches
    AuraResearchManager.registerAuraResearches();
}
 
开发者ID:makeoo,项目名称:Gadomancy,代码行数:26,代码来源:RegisteredResearches.java

示例2: registerPseudoParents

import thaumcraft.common.config.Config; //导入方法依赖的package包/类
@Override
protected void registerPseudoParents()
{
	PseudoResearchTypes.INFUSION.registerPsudeoResearch();
	if( Config.allowMirrors )
	{
		PseudoResearchTypes.MIRROR.registerPsudeoResearch();
	}
	else
	{
		PseudoResearchTypes.JAR.registerPsudeoResearch();
	}

}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:15,代码来源:FeatureInfusionProvider.java

示例3: registerResearch

import thaumcraft.common.config.Config; //导入方法依赖的package包/类
@Override
protected void registerResearch()
{
	// Set the research aspects
	AspectList infusionProviderList = new AspectList();
	infusionProviderList.add( Aspect.MECHANISM, 3 );
	infusionProviderList.add( Aspect.MAGIC, 3 );
	infusionProviderList.add( Aspect.EXCHANGE, 7 );
	infusionProviderList.add( Aspect.MOTION, 7 );
	infusionProviderList.add( Aspect.SENSES, 5 );

	// Set the icon
	ItemStack infusionProviderIcon = new ItemStack( BlockEnum.INFUSION_PROVIDER.getBlock(), 1 );

	// Set the pages
	ResearchPage[] infusionProviderPages = new ResearchPage[] { new ResearchPage( ResearchTypes.INFUSION_PROVIDER.getPageName( 1 ) ),
					new ResearchPage( RecipeRegistry.BLOCK_INFUSION_PROVIDER ) };

	// Are mirrors allowed?
	String researchKeyMirrorOrJar = ( Config.allowMirrors ? "MIRROR" : "JARLABEL" );
	String pseudoKeyMirrorOrJar = ( Config.allowMirrors ? PseudoResearchTypes.MIRROR.getKey() : PseudoResearchTypes.JAR.getKey() );

	// Create the infusion provider research
	ResearchTypes.INFUSION_PROVIDER.createResearchItem( infusionProviderList, ResearchRegistry.COMPLEXITY_LARGE, infusionProviderIcon,
		infusionProviderPages );
	ResearchTypes.INFUSION_PROVIDER.researchItem.setParents( this.getFirstValidParentKey( false ), pseudoKeyMirrorOrJar,
		PseudoResearchTypes.INFUSION.getKey() );
	ResearchTypes.INFUSION_PROVIDER.researchItem.setParentsHidden( researchKeyMirrorOrJar, "INFUSION" );
	ResearchTypes.INFUSION_PROVIDER.researchItem.setConcealed().setSpecial();
	ResearchTypes.INFUSION_PROVIDER.researchItem.registerResearchItem();
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:32,代码来源:FeatureInfusionProvider.java

示例4: registerAdditional

import thaumcraft.common.config.Config; //导入方法依赖的package包/类
@Override
protected void registerAdditional()
{
	// Call super
	super.registerAdditional();

	// Amber block
	this.forceEnabled( ConfigBlocks.blockCosmeticOpaque, 0 );

	// Amber brick
	this.forceEnabled( ConfigBlocks.blockCosmeticOpaque, 1 );

	// Warded glass
	if( Config.allowMirrors )
	{
		this.forceEnabled( ConfigBlocks.blockCosmeticOpaque, 2 );
	}

	// Obsidian tile
	this.forceEnabled( ConfigBlocks.blockCosmeticSolid, 1 );

	// Thaumium block
	this.forceEnabled( ConfigBlocks.blockCosmeticSolid, 4 );

	// Tallow block
	this.forceEnabled( ConfigBlocks.blockCosmeticSolid, 5 );

	// Arcane stone block
	this.forceEnabled( ConfigBlocks.blockCosmeticSolid, 6 );

	// Arcane stone brick
	this.forceEnabled( ConfigBlocks.blockCosmeticSolid, 7 );

	// Ancient stone
	this.forceEnabled( ConfigBlocks.blockCosmeticSolid, 11 );

	// Ancient rock
	this.forceEnabled( ConfigBlocks.blockCosmeticSolid, 12 );

	// Crusted stone
	this.forceEnabled( ConfigBlocks.blockCosmeticSolid, 14 );

	// Greatwood planks
	this.forceEnabled( ConfigBlocks.blockWoodenDevice, 6 );

	// Silverwood planks
	this.forceEnabled( ConfigBlocks.blockWoodenDevice, 7 );

	// Crusted taint
	this.forceEnabled( ConfigBlocks.blockTaint, 0 );

	// Flesh block :<
	this.forceEnabled( ConfigBlocks.blockTaint, 2 );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:55,代码来源:FeatureThaumcraftFacades.java


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