本文整理汇总了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 );
}
示例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();
}
示例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();
}
示例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 );
}
示例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();
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例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 );
}
示例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);
}
示例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);
}
}
示例15: grinder
import appeng.core.AEConfig; //导入依赖的package包/类
public static void grinder(String o) {
if (AEConfig.instance.isFeatureEnabled(AEFeature.GrinderLogging)) {
log(Level.DEBUG, "grinder: " + o);
}
}