Lower case methods
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Applied Energistics 2.
|
* This file is part of Applied Energistics 2.
|
||||||
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
||||||
*
|
*
|
||||||
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
@@ -117,7 +117,7 @@ public class SlotCraftingTerm extends AppEngCraftingSlot
|
|||||||
maxTimesToCraft = 1;
|
maxTimesToCraft = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
maxTimesToCraft = this.CapCraftingAttempts( maxTimesToCraft );
|
maxTimesToCraft = this.capCraftingAttempts( maxTimesToCraft );
|
||||||
|
|
||||||
if( ia == null )
|
if( ia == null )
|
||||||
{
|
{
|
||||||
@@ -147,7 +147,7 @@ public class SlotCraftingTerm extends AppEngCraftingSlot
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int CapCraftingAttempts( int maxTimesToCraft )
|
protected int capCraftingAttempts( int maxTimesToCraft )
|
||||||
{
|
{
|
||||||
return maxTimesToCraft;
|
return maxTimesToCraft;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Applied Energistics 2.
|
* This file is part of Applied Energistics 2.
|
||||||
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
||||||
*
|
*
|
||||||
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
@@ -44,7 +44,7 @@ public class BlockPhantomNode extends AEBaseBlock
|
|||||||
public boolean onActivated( World w, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ )
|
public boolean onActivated( World w, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ )
|
||||||
{
|
{
|
||||||
TilePhantomNode tpn = this.getTileEntity( w, x, y, z );
|
TilePhantomNode tpn = this.getTileEntity( w, x, y, z );
|
||||||
tpn.BOOM();
|
tpn.triggerCrashMode();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Applied Energistics 2.
|
* This file is part of Applied Energistics 2.
|
||||||
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
||||||
*
|
*
|
||||||
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
@@ -46,7 +46,7 @@ public class TileChunkLoader extends AEBaseTile
|
|||||||
Ticket ct;
|
Ticket ct;
|
||||||
|
|
||||||
@TileEvent( TileEventType.TICK )
|
@TileEvent( TileEventType.TICK )
|
||||||
public void Tick_TileChunkLoader()
|
public void onTickEvent()
|
||||||
{
|
{
|
||||||
if( this.requestTicket )
|
if( this.requestTicket )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Applied Energistics 2.
|
* This file is part of Applied Energistics 2.
|
||||||
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
||||||
*
|
*
|
||||||
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
@@ -41,7 +41,7 @@ public class TileCubeGenerator extends AEBaseTile
|
|||||||
EntityPlayer who;
|
EntityPlayer who;
|
||||||
|
|
||||||
@TileEvent( TileEventType.TICK )
|
@TileEvent( TileEventType.TICK )
|
||||||
public void TCG_Tick()
|
public void onTickEvent()
|
||||||
{
|
{
|
||||||
if( this.is != null && Platform.isServer() )
|
if( this.is != null && Platform.isServer() )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Applied Energistics 2.
|
* This file is part of Applied Energistics 2.
|
||||||
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
||||||
*
|
*
|
||||||
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
@@ -54,7 +54,7 @@ public class TilePhantomNode extends AENetworkTile
|
|||||||
this.crashMode = true;
|
this.crashMode = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void BOOM()
|
public void triggerCrashMode()
|
||||||
{
|
{
|
||||||
if( this.proxy != null )
|
if( this.proxy != null )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Applied Energistics 2.
|
* This file is part of Applied Energistics 2.
|
||||||
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
||||||
*
|
*
|
||||||
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
@@ -50,20 +50,20 @@ public class RF extends BaseModule
|
|||||||
@Override
|
@Override
|
||||||
public void postInit()
|
public void postInit()
|
||||||
{
|
{
|
||||||
this.RFStack( "ExtraUtilities", "extractor_base", 12 );
|
this.registerRFAttunement( "ExtraUtilities", "extractor_base", 12 );
|
||||||
this.RFStack( "ExtraUtilities", "pipes", 11 );
|
this.registerRFAttunement( "ExtraUtilities", "pipes", 11 );
|
||||||
this.RFStack( "ExtraUtilities", "pipes", 14 );
|
this.registerRFAttunement( "ExtraUtilities", "pipes", 14 );
|
||||||
this.RFStack( "ExtraUtilities", "generator", OreDictionary.WILDCARD_VALUE );
|
this.registerRFAttunement( "ExtraUtilities", "generator", OreDictionary.WILDCARD_VALUE );
|
||||||
|
|
||||||
this.RFStack( "ThermalExpansion", "Cell", OreDictionary.WILDCARD_VALUE );
|
this.registerRFAttunement( "ThermalExpansion", "Cell", OreDictionary.WILDCARD_VALUE );
|
||||||
this.RFStack( "ThermalExpansion", "Dynamo", OreDictionary.WILDCARD_VALUE );
|
this.registerRFAttunement( "ThermalExpansion", "Dynamo", OreDictionary.WILDCARD_VALUE );
|
||||||
|
|
||||||
this.RFStack( "EnderIO", "itemPowerConduit", OreDictionary.WILDCARD_VALUE );
|
this.registerRFAttunement( "EnderIO", "itemPowerConduit", OreDictionary.WILDCARD_VALUE );
|
||||||
this.RFStack( "EnderIO", "blockCapacitorBank", 0 );
|
this.registerRFAttunement( "EnderIO", "blockCapacitorBank", 0 );
|
||||||
this.RFStack( "EnderIO", "blockPowerMonitor", 0 );
|
this.registerRFAttunement( "EnderIO", "blockPowerMonitor", 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
void RFStack( String mod, String name, int dmg )
|
void registerRFAttunement( String mod, String name, int dmg )
|
||||||
{
|
{
|
||||||
ItemStack modItem = GameRegistry.findItemStack( mod, name, 1 );
|
ItemStack modItem = GameRegistry.findItemStack( mod, name, 1 );
|
||||||
if( modItem != null )
|
if( modItem != null )
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Applied Energistics 2.
|
* This file is part of Applied Energistics 2.
|
||||||
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
||||||
*
|
*
|
||||||
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
@@ -201,7 +201,7 @@ public class PartP2PIC2Power extends PartP2PTunnel<PartP2PIC2Power> implements i
|
|||||||
|
|
||||||
if( x != null && x.OutputEnergyA <= 0.001 )
|
if( x != null && x.OutputEnergyA <= 0.001 )
|
||||||
{
|
{
|
||||||
this.QueueTunnelDrain( PowerUnits.EU, amount );
|
this.queueTunnelDrain( PowerUnits.EU, amount );
|
||||||
x.OutputEnergyA = amount;
|
x.OutputEnergyA = amount;
|
||||||
x.OutputVoltageA = voltage;
|
x.OutputVoltageA = voltage;
|
||||||
return 0;
|
return 0;
|
||||||
@@ -209,7 +209,7 @@ public class PartP2PIC2Power extends PartP2PTunnel<PartP2PIC2Power> implements i
|
|||||||
|
|
||||||
if( x != null && x.OutputEnergyB <= 0.001 )
|
if( x != null && x.OutputEnergyB <= 0.001 )
|
||||||
{
|
{
|
||||||
this.QueueTunnelDrain( PowerUnits.EU, amount );
|
this.queueTunnelDrain( PowerUnits.EU, amount );
|
||||||
x.OutputEnergyB = amount;
|
x.OutputEnergyB = amount;
|
||||||
x.OutputVoltageB = voltage;
|
x.OutputVoltageB = voltage;
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Applied Energistics 2.
|
* This file is part of Applied Energistics 2.
|
||||||
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
||||||
*
|
*
|
||||||
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
@@ -133,7 +133,7 @@ public final class PartP2PRFPower extends PartP2PTunnel<PartP2PRFPower> implemen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.QueueTunnelDrain( PowerUnits.RF, total );
|
this.queueTunnelDrain( PowerUnits.RF, total );
|
||||||
}
|
}
|
||||||
catch( GridAccessException ignored )
|
catch( GridAccessException ignored )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Applied Energistics 2.
|
* This file is part of Applied Energistics 2.
|
||||||
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
||||||
*
|
*
|
||||||
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
@@ -439,7 +439,7 @@ public abstract class PartP2PTunnel<T extends PartP2PTunnel> extends PartBasicSt
|
|||||||
return CableBusTextures.BlockP2PTunnel2.getIcon();
|
return CableBusTextures.BlockP2PTunnel2.getIcon();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void QueueTunnelDrain( PowerUnits unit, double f )
|
protected void queueTunnelDrain( PowerUnits unit, double f )
|
||||||
{
|
{
|
||||||
double ae_to_tax = unit.convertTo( PowerUnits.AE, f * AEConfig.TUNNEL_POWER_LOSS );
|
double ae_to_tax = unit.convertTo( PowerUnits.AE, f * AEConfig.TUNNEL_POWER_LOSS );
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Applied Energistics 2.
|
* This file is part of Applied Energistics 2.
|
||||||
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
||||||
*
|
*
|
||||||
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
@@ -39,11 +39,11 @@ public class ChunkLogger implements ISubCommand
|
|||||||
boolean enabled = false;
|
boolean enabled = false;
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void ChunkLoad( ChunkEvent.Load load )
|
public void onChunkLoadEvent( ChunkEvent.Load event )
|
||||||
{
|
{
|
||||||
if( !load.world.isRemote )
|
if( !event.world.isRemote )
|
||||||
{
|
{
|
||||||
AELog.info( "Chunk Loaded: " + load.getChunk().xPosition + ", " + load.getChunk().zPosition );
|
AELog.info( "Chunk Loaded: " + event.getChunk().xPosition + ", " + event.getChunk().zPosition );
|
||||||
this.displayStack();
|
this.displayStack();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -68,7 +68,7 @@ public class ChunkLogger implements ISubCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void ChunkLoad( ChunkEvent.Unload unload )
|
public void onChunkUnloadEvent( ChunkEvent.Unload unload )
|
||||||
{
|
{
|
||||||
if( !unload.world.isRemote )
|
if( !unload.world.isRemote )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user