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


Java AEConfig类代码示例

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


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

示例1: GuiArcaneCraftingTerminal

import appeng.core.AEConfig; //导入依赖的package包/类
public GuiArcaneCraftingTerminal( final PartArcaneCraftingTerminal part, final EntityPlayer player )
{
	// Call super
	super( new ContainerPartArcaneCraftingTerminal( part, player ) );

	// Set the player
	this.player = player;

	// Set the width and height
	this.xSize = GuiConstants_ACT.GUI_WIDTH;
	this.ySize = GuiConstants_ACT.GUI_HEIGHT;

	// Set the title
	this.guiTitle = ThEStrings.Gui_TitleArcaneCraftingTerminal.getLocalized();

	// Create the repo
	this.repo = new ItemRepo( this.scrollBar, this );

	// Get the terminal style
	this.terminalStyle = (TerminalStyle)AEConfig.instance.getConfigManager().getSetting( Settings.TERMINAL_STYLE );

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

示例2: checkConfigs

import appeng.core.AEConfig; //导入依赖的package包/类
@Override
protected boolean checkConfigs( final IThEConfig theConfig )
{
	// Depends on quartz tools
	if( !AEConfig.instance.isFeatureEnabled( AEFeature.CertusQuartzTools ) )
	{
		return false;
	}

	// Depends on quartz wrench
	if( !AEConfig.instance.isFeatureEnabled( AEFeature.QuartzWrench ) )
	{
		return false;
	}

	return theConfig.enableWrenchFocus();
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:18,代码来源:FeatureWrenchFocus.java

示例3: checkConfigs

import appeng.core.AEConfig; //导入依赖的package包/类
@Override
protected boolean checkConfigs( final IThEConfig theConfig )
{
	// Depends on crafting CPU's
	if( !AEConfig.instance.isFeatureEnabled( AEFeature.CraftingCPU ) )
	{
		return false;
	}

	// Depends on assembler
	if( !AEConfig.instance.isFeatureEnabled( AEFeature.MolecularAssembler ) )
	{
		return false;
	}

	return theConfig.craftArcaneAssembler();
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:18,代码来源:FeatureAutocrafting_Arcane.java

示例4: mouseClicked

import appeng.core.AEConfig; //导入依赖的package包/类
/**
 * Called when the mouse is clicked while the gui is open
 */
@Override
protected void mouseClicked( final int mouseX, final int mouseY, final int mouseButton )
{
	// Handled by the widget area?
	if( this.clickHandler_Widgets( mouseX, mouseY, mouseButton ) )
	{
		return;
	}

	// Handled by region deposit?
	if( this.clickHandler_RegionDeposit( mouseX, mouseY ) )
	{
		return;
	}

	// Handled by search box?
	if( this.clickHandler_SearchBox( mouseX, mouseY, mouseButton ) )
	{
		return;
	}

	// Get search mode
	SearchBoxMode searchBoxMode = (SearchBoxMode)AEConfig.instance.settings.getSetting( Settings.SEARCH_MODE );

	// Inform search field of click if auto mode is not on
	if( !( ( searchBoxMode == SearchBoxMode.AUTOSEARCH ) || ( searchBoxMode == SearchBoxMode.NEI_AUTOSEARCH ) ) )
	{
		this.searchField.mouseClicked( mouseX - this.guiLeft, mouseY - this.guiTop, mouseButton );
	}

	// Pass to super
	super.mouseClicked( mouseX, mouseY, mouseButton );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:37,代码来源:GuiArcaneCraftingTerminal.java

示例5: checkConfigs

import appeng.core.AEConfig; //导入依赖的package包/类
@Override
protected boolean checkConfigs( final IThEConfig theConfig )
{
	// Depends on cells
	if( !AEConfig.instance.isFeatureEnabled( AEFeature.StorageCells ) )
	{
		return false;
	}

	return theConfig.craftEssentiaCells();
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:12,代码来源:FeatureCells.java

示例6: checkConfigs

import appeng.core.AEConfig; //导入依赖的package包/类
@Override
protected boolean checkConfigs( final IThEConfig theConfig )
{
	this.isConversionEnabled = AEConfig.instance.isFeatureEnabled( AEFeature.PartConversionMonitor );
	this.isWirelessEnabled = AEConfig.instance.isFeatureEnabled( AEFeature.WirelessAccessTerminal ) && theConfig.craftWirelessEssentiaTerminal();
	return true;
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:8,代码来源:FeatureEssentiaMonitoring.java

示例7: checkConfigs

import appeng.core.AEConfig; //导入依赖的package包/类
@Override
protected boolean checkConfigs( final IThEConfig theConfig )
{
	// Depends on P2P
	if( !AEConfig.instance.isFeatureEnabled( AEFeature.P2PTunnel ) )
	{
		return false;
	}

	return theConfig.craftVisRelayInterface();
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:12,代码来源:FeatureVisRelayInterface.java

示例8: checkConfigs

import appeng.core.AEConfig; //导入依赖的package包/类
@Override
protected boolean checkConfigs( final IThEConfig theConfig )
{
	// Depends on crafting terminal
	if( !AEConfig.instance.isFeatureEnabled( AEFeature.CraftingTerminal ) )
	{
		return false;
	}

	return theConfig.craftArcaneCraftingTerminal();
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:12,代码来源:FeatureACT.java

示例9: checkConfigs

import appeng.core.AEConfig; //导入依赖的package包/类
@Override
protected boolean checkConfigs( final IThEConfig theConfig )
{
	// Depends on power generation
	if( !AEConfig.instance.isFeatureEnabled( AEFeature.PowerGen ) )
	{
		return false;
	}

	return theConfig.craftEssentiaVibrationChamber();
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:12,代码来源:FeatureEssentiaVibrationChamber.java

示例10: checkConfigs

import appeng.core.AEConfig; //导入依赖的package包/类
@Override
protected boolean checkConfigs( final IThEConfig theConfig )
{
	// Depends on crafting CPU's
	if( !AEConfig.instance.isFeatureEnabled( AEFeature.CraftingCPU ) )
	{
		return false;
	}

	return theConfig.craftDistillationPatternEncoder();
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:12,代码来源:FeatureAutocrafting_Essentia.java

示例11: checkConfigs

import appeng.core.AEConfig; //导入依赖的package包/类
@Override
protected boolean checkConfigs( final IThEConfig theConfig )
{
	this.isImportExportEnabled = theConfig.craftIOBuses() && ( AEConfig.instance.isFeatureEnabled( AEFeature.ImportBus ) || AEConfig.instance
					.isFeatureEnabled( AEFeature.ExportBus ) );

	return true;
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:9,代码来源:FeatureEssentiaIOBuses.java

示例12: updatePowerMultiplier

import appeng.core.AEConfig; //导入依赖的package包/类
/**
 * Updates the power multiplier for wireless operations.
 *
 * @return
 */
public void updatePowerMultiplier()
{
	// Get the squared distance
	double distance = WirelessAELink.getSquaredDistanceFromAP( this.apLocation,
		this.getUserPositionX(),
		this.getUserPositionY(),
		this.getUserPositionZ() );

	// Calculate the distance
	distance = Math.sqrt( distance );

	// Calculate the power multiplier
	this.wirelessPowerMultiplier = AEConfig.instance.wireless_getDrainRate( distance );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:20,代码来源:HandlerWirelessEssentiaTerminal.java

示例13: registerCrushingRecipe

import appeng.core.AEConfig; //导入依赖的package包/类
@Override
public void registerCrushingRecipe(ItemStack input, ItemStack output, ChanceStack dust, Strength strength) {
	List<ChanceStack> secondaries = new ArrayList<ChanceStack>(2);
	if (output.stackSize > 1) {
		output = output.copy();
		secondaries.add(new ChanceStack(output.splitStack(output.stackSize / 2),
			(float) ( AEConfig.instance.oreDoublePercentage / 100.0 )));
	}
	if (dust != null) {
		secondaries.add(dust);
	}
	this.registerGrindingRecipe(input, output, secondaries, strength);
}
 
开发者ID:lawremi,项目名称:PerFabricaAdAstra,代码行数:14,代码来源:AppliedEnergistics2Integration.java

示例14: log

import appeng.core.AEConfig; //导入依赖的package包/类
private static void log(Level level, String format, Object... data) {
    if (AEConfig.instance == null || AEConfig.instance.isFeatureEnabled(AEFeature.Logging)) {
        FMLRelaunchLog.log("AE2EE3Compat:" + (Platform.isServer() ? "S" : "C"), level, format, data);
    }
}
 
开发者ID:FireBall1725,项目名称:ae2ee3emcaddon,代码行数:6,代码来源:AELog.java

示例15: grinder

import appeng.core.AEConfig; //导入依赖的package包/类
public static void grinder(String o) {
    if (AEConfig.instance.isFeatureEnabled(AEFeature.GrinderLogging)) {
        log(Level.DEBUG, "grinder: " + o);
    }
}
 
开发者ID:FireBall1725,项目名称:ae2ee3emcaddon,代码行数:6,代码来源:AELog.java


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