當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。