Compare commits

...

26 Commits

Author SHA1 Message Date
yueh bcba2329b7 Merge pull request #1902 from yueh/fix-1896
Fixes 1896: Only update a monitor if the text would change
2015-09-23 23:46:43 +02:00
yueh 597e17b52b Fixes 1896: Only update a monitor if the text would change 2015-09-23 22:28:50 +02:00
yueh 4b055a7f21 Merge pull request #1894 from yueh/update-readme
Updated README.md and CONTRIBIBUTING.md
2015-09-23 15:28:23 +02:00
yueh 759b6daa59 Merge pull request #1893 from yueh/fix-1892
Fixes incorrect handling of prioritized inventories
2015-09-23 15:28:13 +02:00
yueh e1f03db7b3 Updated README.md and CONTRIBIBUTING.md 2015-09-23 14:27:11 +02:00
yueh 72518ad977 Merge pull request #1772 from yueh/feature-1569
Feature 1569 Typesafe Integration Modules
2015-09-23 00:20:00 +02:00
yueh 21fa2718f8 Merge pull request #1879 from yueh/fix-1878
Fixes #1878: Now saves the dimensionlist correctly
2015-09-23 00:15:36 +02:00
yueh 777bec184a Fixes 1878: Now saves worlddata more reliable. 2015-09-23 00:12:53 +02:00
yueh b9d615c4ba Fixes incorrect handling of prioritized inventories
Prioritized inventories are not longer used twice for storing leftover
items and thus finally reporting twice the amount of storable items when
they are the only possible option to store something.

Also fixes import buses now respecting the amount of storable items inside
the network instead of trying to place the exported items back and failing
on any restricted inventory, potentially voiding the overflow.

Fixes #1892
2015-09-23 00:09:27 +02:00
yueh 40d339e173 Merge pull request #1888 from asd0210a/patch-3
zh_tw.lang Updated
2015-09-22 19:39:56 +02:00
asd0210a 20c1c4529a zh_tw.lang Updated 2015-09-21 10:15:20 +08:00
yueh 72399e5789 Merge pull request #1866 from yueh/fix-1865
Fixes #1865: Spawn overflow items into the world
2015-09-16 20:41:57 +02:00
yueh f303c17ae0 First iteration of making integrations typesafe 2015-09-16 15:59:33 +02:00
yueh 26f13d4109 Fixes #1865: Spawn overflow items into the world 2015-09-11 20:05:17 +02:00
yueh 0df445c6a8 Merge pull request #1862 from yueh/feature-interface-9-slots
Changed the interface to 9 slots to be consistent with every other machine
2015-09-11 20:04:29 +02:00
thatsIch 8c817b2f85 Merge pull request #1851 from thatsIch/b-1850-add-second-optional-to-grindstone
Fixes #1850: Fixed support for second optional output of the AE2 Grindstone
2015-09-10 19:15:29 +02:00
yueh 7bd8cf3f59 Changed the interface to 9 slots to be consistent with every other machine 2015-09-08 00:19:05 +02:00
yueh 3ab6758e6c Merge pull request #1839 from yueh/fix-1833
Fixed the order craftinglinks are notified for the last item.
2015-09-05 18:00:41 +02:00
yueh 3dd948e4a4 Merge pull request #1854 from yueh/feature-recipes-refactoring
Added a missing whitespace and removed duplicate ones.
2015-09-05 18:00:22 +02:00
thatsIch 3bb9e4df97 Merge pull request #1634 from thatsIch/b-1588-wrong-oredict-name
Fixes #1588: Charged Certus Quartz Ore was given a wrong name
2015-09-03 23:50:53 +02:00
thatsIch d17f045339 Merge pull request #1852 from Mazdallier/patch-1
Update fr_FR.lang
2015-09-02 17:03:16 +02:00
yueh 5817cde56b Added a missing whitespace and removed duplicate ones. 2015-09-02 16:51:37 +02:00
Mazdallier 45d94d4c2c Update fr_FR.lang 2015-09-02 10:00:16 +02:00
thatsIch d893e52eb0 Fixes #1850: Fixed support for second optional output of the AE2 Grindstone 2015-09-01 23:58:40 +02:00
thatsIch 464a56ffc5 Fixes #1588: Charged Certus Quartz Ore was given a wrong name 2015-08-31 16:54:29 +02:00
yueh 40dcf711f6 Fixed the order craftinglinks are notified for the last item.
Fixes #1833
2015-08-28 13:29:24 +02:00
72 changed files with 809 additions and 463 deletions
+29 -16
View File
@@ -11,20 +11,32 @@ top of things.
Applied Energistics 2 crashing, have a suggestion, found a bug? Create an issue now! Applied Energistics 2 crashing, have a suggestion, found a bug? Create an issue now!
1. Make sure your issue hasn't already been answered or fixed. Also think about whether your issue is a valid one before submitting it. 1. Make sure your issue has not already been answered or fixed and you are using the latest version. Also think about whether your issue is a valid one before submitting it.
2. Go to [the issues page](https://github.com/AppliedEnergistics/Applied-Energistics-2/issues) 2. Go to [the issues page](https://github.com/AppliedEnergistics/Applied-Energistics-2/issues) and click [new issue](https://github.com/AppliedEnergistics/Applied-Energistics-2/issues/new)
3. Click new issue 3. Enter your a title of your issue (something that summarizes your issue), and then create a detailed description of the issue.
4. Enter your Issue's title (something that summarizes your issue), and then create a detailed description of the issue. * Do not tag it with something like `[Feature]` or `[Bug]`. When it is applicable, we will take care of it.
* To help in resolving your issues please try to include the follow if applicable: * The following details are required. Not including them can cause the issue to be closed.
* The problem that is happening? * Forge version
* What was expected? * AE2 version
* How to reproduce the problem? * Crash log, when reporting a crash (Please make sure to use [pastebin](http://pastebin.com/))
* Server or Single Player? * Do not post an excerpt of what you consider important, instead:
* Mod Pack using and version? * Post the full log
* Crash log (Please make sure to use [pastebin](http://pastebin.com/) for the log file) * Other mods and their version, when reporting an issue between AE and another mod
* Screen shots or Pictures of the problem * Also consider updating these before submitting a new issue, it might be already fixed
* A detailed description of the bug or feature
* To further help in resolving your issues please try to include the follow if applicable:
* What was expected?
* How to reproduce the problem?
* This is usually a great detail and allows us to fix it way faster
* Server or Single Player?
* Screen shots or Pictures of the problem
* Mod Pack using and version?
* Keep in mind that some mods might use an outdated version of AE2
* If so you should report it to your modpack
5. Click `Submit New Issue`, and wait for feedback! 5. Click `Submit New Issue`, and wait for feedback!
Providing as many details as possible does help us to find and resolve the issue faster and also you getting a fixed version as fast as possible.
### Submitting Changes ### Submitting Changes
* Submit an issue to the github project, assuming one does not already exist. * Submit an issue to the github project, assuming one does not already exist.
@@ -55,10 +67,8 @@ Applied Energistics 2 crashing, have a suggestion, found a bug? Create an issue
from our issue tracker. The body describes the behavior without the patch, from our issue tracker. The body describes the behavior without the patch,
why this is a problem, and how the patch fixes the problem when applied. why this is a problem, and how the patch fixes the problem when applied.
```` ````
* Always fully test your changes. If they are large engouh in scope, then fully * Always fully test your changes. If they are large engouh in scope, then fully test AE2.
test AE2. * Describing the process you used to test your changes in detail will help speed up this process.
* Describing the process you used to test your changes in detail will help speed
up this process.
## Making Trivial Changes ## Making Trivial Changes
@@ -97,6 +107,9 @@ the styling guidelines used by AE.
PRs that do not conform to these standards will be rejected. PRs that do not conform to these standards will be rejected.
You can find presets for Eclipse and IntelliJ IDEA in the `codeformat` folder.
We try to keep them up to date, but in case you find them not formatting it correctly, then please report it
### Whitespace ### Whitespace
#### Tabs or spaces #### Tabs or spaces
+27 -13
View File
@@ -54,20 +54,32 @@ You install this mod by putting it into the `minecraft/mods/` folder. It has no
Applied Energistics 2 crashing, have a suggestion, found a bug? Create an issue now! Applied Energistics 2 crashing, have a suggestion, found a bug? Create an issue now!
1. Make sure your issue hasn't already been answered or fixed. Also think about whether your issue is a valid one before submitting it. 1. Make sure your issue has not already been answered or fixed and you are using the latest version. Also think about whether your issue is a valid one before submitting it.
2. Go to [the issues page](https://github.com/AppliedEnergistics/Applied-Energistics-2/issues) 2. Go to [the issues page](https://github.com/AppliedEnergistics/Applied-Energistics-2/issues) and click [new issue](https://github.com/AppliedEnergistics/Applied-Energistics-2/issues/new)
3. Click new issue 3. Enter your a title of your issue (something that summarizes your issue), and then create a detailed description of the issue.
4. Enter your Issue's title (something that summarizes your issue), and then create a detailed description of the issue. * Do not tag it with something like `[Feature]` or `[Bug]`. When it is applicable, we will take care of it.
* To help in resolving your issues please try to include the follow if applicable: * The following details are required. Not including them can cause the issue to be closed.
* The problem that is happening? * Forge version
* What was expected? * AE2 version
* How to reproduce the problem? * Crash log, when reporting a crash (Please make sure to use [pastebin](http://pastebin.com/))
* Server or Single Player? * Do not post an excerpt of what you consider important, instead:
* Mod Pack using and version? * Post the full log
* Crash log (Please make sure to use [pastebin](http://pastebin.com/) for the log file) * Other mods and their version, when reporting an issue between AE and another mod
* Screen shots or Pictures of the problem * Also consider updating these before submitting a new issue, it might be already fixed
* A detailed description of the bug or feature
* To further help in resolving your issues please try to include the follow if applicable:
* What was expected?
* How to reproduce the problem?
* This is usually a great detail and allows us to fix it way faster
* Server or Single Player?
* Screen shots or Pictures of the problem
* Mod Pack using and version?
* Keep in mind that some mods might use an outdated version of AE2
* If so you should report it to your modpack
5. Click `Submit New Issue`, and wait for feedback! 5. Click `Submit New Issue`, and wait for feedback!
Providing as many details as possible does help us to find and resolve the issue faster and also you getting a fixed version as fast as possible.
## Building ## Building
1. Clone this repository via 1. Clone this repository via
@@ -90,6 +102,8 @@ Applied Energistics 2 crashing, have a suggestion, found a bug? Create an issue
Before you want to add major changes, you might want to discuss them with us first, before wasting your time. Before you want to add major changes, you might want to discuss them with us first, before wasting your time.
If you are still willing to contribute to this project, you can contribute via [Pull-Request](https://help.github.com/articles/creating-a-pull-request). If you are still willing to contribute to this project, you can contribute via [Pull-Request](https://help.github.com/articles/creating-a-pull-request).
The [guidelines for contributing](https://github.com/AppliedEnergistics/Applied-Energistics-2/blob/master/CONTRIBUTING.md) contain more detailed information about topics like the used code style and should also be considered.
Here are a few things to keep in mind that will help get your PR approved. Here are a few things to keep in mind that will help get your PR approved.
* A PR should be focused on content. Any PRs where the changes are only syntax will be rejected. * A PR should be focused on content. Any PRs where the changes are only syntax will be rejected.
@@ -127,7 +141,7 @@ Development and standard builds can be obtained [Here](http://ae2.ae-mod.info/Do
When compiling against the AE2 API you can use gradle dependencies, just add When compiling against the AE2 API you can use gradle dependencies, just add
dependencies { dependencies {
compile "appeng:appliedenergistics2:rv_-_____-__:dev" compile "appeng:appliedenergistics2:rv_-_____-__:dev"
} }
or add the compile line to your existing dependencies task to your build.gradle or add the compile line to your existing dependencies task to your build.gradle
+2 -2
View File
@@ -1,6 +1,6 @@
#Sat May 16 13:19:14 CEST 2015 #Mon Aug 31 16:41:19 CEST 2015
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
@@ -77,7 +77,7 @@ import appeng.transformer.annotations.Integration.Method;
import appeng.util.Platform; import appeng.util.Platform;
@Interface( iface = "powercrystals.minefactoryreloaded.api.rednet.connectivity.IRedNetConnection", iname = "MFR" ) @Interface( iface = "powercrystals.minefactoryreloaded.api.rednet.connectivity.IRedNetConnection", iname = IntegrationType.MFR )
public class BlockCableBus extends AEBaseTileBlock implements IRedNetConnection public class BlockCableBus extends AEBaseTileBlock implements IRedNetConnection
{ {
@@ -506,7 +506,7 @@ public class BlockCableBus extends AEBaseTileBlock implements IRedNetConnection
} }
@Override @Override
@Method( iname = "MFR" ) @Method( iname = IntegrationType.MFR )
public RedNetConnectionType getConnectionType( World world, int x, int y, int z, ForgeDirection side ) public RedNetConnectionType getConnectionType( World world, int x, int y, int z, ForgeDirection side )
{ {
return this.cb( world, x, y, z ).canConnectRedstone( EnumSet.allOf( ForgeDirection.class ) ) ? RedNetConnectionType.CableSingle : RedNetConnectionType.None; return this.cb( world, x, y, z ).canConnectRedstone( EnumSet.allOf( ForgeDirection.class ) ) ? RedNetConnectionType.CableSingle : RedNetConnectionType.None;
@@ -50,19 +50,19 @@ public class ContainerInterface extends ContainerUpgradeable
this.myDuality = te.getInterfaceDuality(); this.myDuality = te.getInterfaceDuality();
for( int x = 0; x < 9; x++ ) for( int x = 0; x < DualityInterface.NUMBER_OF_PATTERN_SLOTS; x++ )
{ {
this.addSlotToContainer( new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.ENCODED_PATTERN, this.myDuality.getPatterns(), x, 8 + 18 * x, 90 + 7, this.invPlayer ) ); this.addSlotToContainer( new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.ENCODED_PATTERN, this.myDuality.getPatterns(), x, 8 + 18 * x, 90 + 7, this.invPlayer ) );
} }
for( int x = 0; x < 8; x++ ) for( int x = 0; x < DualityInterface.NUMBER_OF_CONFIG_SLOTS; x++ )
{ {
this.addSlotToContainer( new SlotFake( this.myDuality.getConfig(), x, 17 + 18 * x, 35 ) ); this.addSlotToContainer( new SlotFake( this.myDuality.getConfig(), x, 8 + 18 * x, 35 ) );
} }
for( int x = 0; x < 8; x++ ) for( int x = 0; x < DualityInterface.NUMBER_OF_STORAGE_SLOTS; x++ )
{ {
this.addSlotToContainer( new SlotNormal( this.myDuality.getStorage(), x, 17 + 18 * x, 35 + 18 ) ); this.addSlotToContainer( new SlotNormal( this.myDuality.getStorage(), x, 8 + 18 * x, 35 + 18 ) );
} }
} }
@@ -521,22 +521,6 @@ public final class Registration
partHelper.registerNewLayer( "appeng.parts.layers.LayerIFluidHandler", "net.minecraftforge.fluids.IFluidHandler" ); partHelper.registerNewLayer( "appeng.parts.layers.LayerIFluidHandler", "net.minecraftforge.fluids.IFluidHandler" );
partHelper.registerNewLayer( "appeng.parts.layers.LayerITileStorageMonitorable", "appeng.api.implementations.tiles.ITileStorageMonitorable" ); partHelper.registerNewLayer( "appeng.parts.layers.LayerITileStorageMonitorable", "appeng.api.implementations.tiles.ITileStorageMonitorable" );
if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.IC2 ) )
{
partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergySink", "ic2.api.energy.tile.IEnergySink" );
partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergySource", "ic2.api.energy.tile.IEnergySource" );
}
if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.RF ) )
{
partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergyHandler", "cofh.api.energy.IEnergyReceiver" );
}
if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.OpenComputers ) )
{
partHelper.registerNewLayer( "appeng.parts.layers.LayerSidedEnvironment", "li.cil.oc.api.network.SidedEnvironment" );
}
FMLCommonHandler.instance().bus().register( TickHandler.INSTANCE ); FMLCommonHandler.instance().bus().register( TickHandler.INSTANCE );
MinecraftForge.EVENT_BUS.register( TickHandler.INSTANCE ); MinecraftForge.EVENT_BUS.register( TickHandler.INSTANCE );
@@ -118,7 +118,7 @@ public final class GrinderRecipeManager implements IGrinderRegistry, IOreListene
} }
this.log( "Allow Grinding of " + Platform.getItemDisplayName( in ) + " to " + Platform.getItemDisplayName( out ) + " with optional " + Platform.getItemDisplayName( optional ) + " for " + cost ); this.log( "Allow Grinding of " + Platform.getItemDisplayName( in ) + " to " + Platform.getItemDisplayName( out ) + " with optional " + Platform.getItemDisplayName( optional ) + " for " + cost );
this.injectRecipe( new AppEngGrinderRecipe( this.copy( in ), this.copy( out ), this.copy( optional ), chance, cost ) ); this.injectRecipe( new AppEngGrinderRecipe( this.copy( in ), this.copy( out ), this.copy( optional ), this.copy( optional2 ), chance, chance2, cost ) );
} }
private void injectRecipe( AppEngGrinderRecipe appEngGrinderRecipe ) private void injectRecipe( AppEngGrinderRecipe appEngGrinderRecipe )
@@ -55,9 +55,13 @@ public enum GuiText
inWorldFluix, inWorldPurificationCertus, inWorldPurificationNether, inWorldFluix, inWorldPurificationCertus, inWorldPurificationNether,
inWorldPurificationFluix, inWorldSingularity, ChargedQuartz, OfSecondOutput, inWorldPurificationFluix, inWorldSingularity, ChargedQuartz,
NoSecondOutput, Stores, Next, SelectAmount, Lumen, Empty, NoSecondOutput,
OfSecondOutput,
MultipleOutputs,
Stores, Next, SelectAmount, Lumen, Empty,
ConfirmCrafting, Stored, Crafting, Scheduled, CraftingStatus, Cancel, ETA, ETAFormat, ConfirmCrafting, Stored, Crafting, Scheduled, CraftingStatus, Cancel, ETA, ETAFormat,
@@ -19,7 +19,6 @@
package appeng.core.worlddata; package appeng.core.worlddata;
import java.io.File;
import java.util.List; import java.util.List;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
@@ -64,13 +63,11 @@ final class DimensionData implements IWorldDimensionData, IOnWorldStartable, IOn
private final Configuration config; private final Configuration config;
private final List<Integer> storageCellDimensionIDs; private final List<Integer> storageCellDimensionIDs;
DimensionData( @Nonnull final File parentFile, @Nonnull final String configVersion ) DimensionData( @Nonnull final Configuration parentFile )
{ {
Preconditions.checkNotNull( parentFile ); Preconditions.checkNotNull( parentFile );
Preconditions.checkNotNull( configVersion );
Preconditions.checkArgument( !configVersion.isEmpty() );
this.config = new Configuration( parentFile, configVersion ); this.config = parentFile;
final int[] storageCellIDs = this.storageCellIDsProperty().getIntList(); final int[] storageCellIDs = this.storageCellIDsProperty().getIntList();
@@ -19,7 +19,6 @@
package appeng.core.worlddata; package appeng.core.worlddata;
import java.io.File;
import java.util.UUID; import java.util.UUID;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
@@ -58,13 +57,11 @@ final class PlayerData implements IWorldPlayerData, IOnWorldStartable, IOnWorldS
private int lastPlayerID; private int lastPlayerID;
public PlayerData( @Nonnull final File configFile, @Nonnull final String configVersion ) public PlayerData( @Nonnull final Configuration configFile )
{ {
Preconditions.checkNotNull( configFile ); Preconditions.checkNotNull( configFile );
Preconditions.checkNotNull( configVersion );
Preconditions.checkArgument( !configVersion.isEmpty() );
this.config = new Configuration( configFile, configVersion ); this.config = configFile;
final ConfigCategory playerList = this.config.getCategory( "players" ); final ConfigCategory playerList = this.config.getCategory( "players" );
this.playerMapping = new PlayerMapping( playerList, AELog.INSTANCE ); this.playerMapping = new PlayerMapping( playerList, AELog.INSTANCE );
@@ -19,7 +19,6 @@
package appeng.core.worlddata; package appeng.core.worlddata;
import java.io.File;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
import java.util.Map; import java.util.Map;
import java.util.WeakHashMap; import java.util.WeakHashMap;
@@ -55,13 +54,11 @@ final class StorageData implements IWorldGridStorageData, IOnWorldStartable, IOn
private long lastGridStorage; private long lastGridStorage;
public StorageData( @Nonnull final File settingsFile, @Nonnull final String version ) public StorageData( @Nonnull final Configuration settingsFile )
{ {
Preconditions.checkNotNull( settingsFile ); Preconditions.checkNotNull( settingsFile );
Preconditions.checkNotNull( version );
Preconditions.checkArgument( !version.isEmpty() );
this.config = new Configuration( settingsFile, version ); this.config = settingsFile;
} }
/** /**
@@ -30,6 +30,7 @@ import com.google.common.base.Preconditions;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import net.minecraftforge.common.DimensionManager; import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.config.Configuration;
import appeng.core.AEConfig; import appeng.core.AEConfig;
import appeng.services.CompassService; import appeng.services.CompassService;
@@ -39,7 +40,8 @@ import appeng.services.compass.CompassThreadFactory;
/** /**
* Singleton access to anything related to world-based data. * Singleton access to anything related to world-based data.
* *
* Data will change depending which world is loaded. Will probably not affect SMP at all since only one world is loaded, but SSP more, cause they play on * Data will change depending which world is loaded. Will probably not affect SMP at all since only one world is loaded,
* but SSP more, cause they play on
* different worlds. * different worlds.
* *
* @author thatsIch * @author thatsIch
@@ -69,6 +71,8 @@ public final class WorldData implements IWorldData
private final File spawnDirectory; private final File spawnDirectory;
private final File compassDirectory; private final File compassDirectory;
private final Configuration sharedConfig;
private WorldData( @Nonnull final File worldDirectory ) private WorldData( @Nonnull final File worldDirectory )
{ {
Preconditions.checkNotNull( worldDirectory ); Preconditions.checkNotNull( worldDirectory );
@@ -79,10 +83,11 @@ public final class WorldData implements IWorldData
this.compassDirectory = new File( this.ae2directory, COMPASS_DIR_NAME ); this.compassDirectory = new File( this.ae2directory, COMPASS_DIR_NAME );
final File settingsFile = new File( this.ae2directory, SETTING_FILE_NAME ); final File settingsFile = new File( this.ae2directory, SETTING_FILE_NAME );
this.sharedConfig = new Configuration( settingsFile, AEConfig.VERSION );
final PlayerData playerData = new PlayerData( settingsFile, AEConfig.VERSION ); final PlayerData playerData = new PlayerData( this.sharedConfig );
final DimensionData dimensionData = new DimensionData( settingsFile, AEConfig.VERSION ); final DimensionData dimensionData = new DimensionData( this.sharedConfig );
final StorageData storageData = new StorageData( settingsFile, AEConfig.VERSION ); final StorageData storageData = new StorageData( this.sharedConfig );
final ThreadFactory compassThreadFactory = new CompassThreadFactory(); final ThreadFactory compassThreadFactory = new CompassThreadFactory();
final CompassService compassService = new CompassService( this.compassDirectory, compassThreadFactory ); final CompassService compassService = new CompassService( this.compassDirectory, compassThreadFactory );
@@ -100,18 +100,22 @@ import appeng.util.item.AEItemStack;
public class DualityInterface implements IGridTickable, IStorageMonitorable, IInventoryDestination, IAEAppEngInventory, IConfigManagerHost, ICraftingProvider, IUpgradeableHost, IPriorityHost public class DualityInterface implements IGridTickable, IStorageMonitorable, IInventoryDestination, IAEAppEngInventory, IConfigManagerHost, ICraftingProvider, IUpgradeableHost, IPriorityHost
{ {
public static final int NUMBER_OF_STORAGE_SLOTS = 9;
public static final int NUMBER_OF_CONFIG_SLOTS = 9;
public static final int NUMBER_OF_PATTERN_SLOTS = 9;
private static final Collection<Block> BAD_BLOCKS = new HashSet<Block>( 100 ); private static final Collection<Block> BAD_BLOCKS = new HashSet<Block>( 100 );
final int[] sides = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 }; final int[] sides = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8 };
final IAEItemStack[] requireWork = new IAEItemStack[] { null, null, null, null, null, null, null, null }; final IAEItemStack[] requireWork = new IAEItemStack[] { null, null, null, null, null, null, null, null, null };
final MultiCraftingTracker craftingTracker; final MultiCraftingTracker craftingTracker;
final AENetworkProxy gridProxy; final AENetworkProxy gridProxy;
final IInterfaceHost iHost; final IInterfaceHost iHost;
final BaseActionSource mySource; final BaseActionSource mySource;
final BaseActionSource interfaceRequestSource; final BaseActionSource interfaceRequestSource;
final ConfigManager cm = new ConfigManager( this ); final ConfigManager cm = new ConfigManager( this );
final AppEngInternalAEInventory config = new AppEngInternalAEInventory( this, 8 ); final AppEngInternalAEInventory config = new AppEngInternalAEInventory( this, NUMBER_OF_CONFIG_SLOTS );
final AppEngInternalInventory storage = new AppEngInternalInventory( this, 8 ); final AppEngInternalInventory storage = new AppEngInternalInventory( this, NUMBER_OF_STORAGE_SLOTS );
final AppEngInternalInventory patterns = new AppEngInternalInventory( this, 9 ); final AppEngInternalInventory patterns = new AppEngInternalInventory( this, NUMBER_OF_PATTERN_SLOTS );
final WrapperInvSlot slotInv = new WrapperInvSlot( this.storage ); final WrapperInvSlot slotInv = new WrapperInvSlot( this.storage );
final MEMonitorPassThrough<IAEItemStack> items = new MEMonitorPassThrough<IAEItemStack>( new NullInventory<IAEItemStack>(), StorageChannel.ITEMS ); final MEMonitorPassThrough<IAEItemStack> items = new MEMonitorPassThrough<IAEItemStack>( new NullInventory<IAEItemStack>(), StorageChannel.ITEMS );
final MEMonitorPassThrough<IAEFluidStack> fluids = new MEMonitorPassThrough<IAEFluidStack>( new NullInventory<IAEFluidStack>(), StorageChannel.FLUIDS ); final MEMonitorPassThrough<IAEFluidStack> fluids = new MEMonitorPassThrough<IAEFluidStack>( new NullInventory<IAEFluidStack>(), StorageChannel.FLUIDS );
@@ -279,7 +283,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
boolean had = this.hasWorkToDo(); boolean had = this.hasWorkToDo();
for( int x = 0; x < 8; x++ ) for( int x = 0; x < NUMBER_OF_CONFIG_SLOTS; x++ )
{ {
this.updatePlan( x ); this.updatePlan( x );
} }
@@ -616,7 +620,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
{ {
boolean didSomething = false; boolean didSomething = false;
for( int x = 0; x < 8; x++ ) for( int x = 0; x < NUMBER_OF_STORAGE_SLOTS; x++ )
{ {
if( this.requireWork[x] != null ) if( this.requireWork[x] != null )
{ {
@@ -21,12 +21,6 @@ package appeng.integration;
public abstract class BaseModule implements IIntegrationModule public abstract class BaseModule implements IIntegrationModule
{ {
protected void testClassExistence( Class<?> clz )
{
clz.isInstance( this );
}
@Override @Override
public abstract void init() throws Throwable; public abstract void init() throws Throwable;
@@ -0,0 +1,29 @@
/*
* This file is part of Applied Energistics 2.
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
*
* 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
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Applied Energistics 2 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
*/
package appeng.integration;
public class IntegrationHelper
{
public static void testClassExistence( Object o, Class<?> clz )
{
clz.isInstance( o );
}
}
@@ -39,7 +39,7 @@ public final class IntegrationNode
IntegrationStage failedStage = IntegrationStage.PRE_INIT; IntegrationStage failedStage = IntegrationStage.PRE_INIT;
Throwable exception = null; Throwable exception = null;
String name = null; String name = null;
Class classValue = null; Class<?> classValue = null;
Object instance; Object instance;
IIntegrationModule mod = null; IIntegrationModule mod = null;
@@ -32,6 +32,8 @@ public enum IntegrationRegistry
{ {
INSTANCE; INSTANCE;
private static final String PACKAGE_PREFIX = "appeng.integration.modules.";
private final Collection<IntegrationNode> modules = new LinkedList<IntegrationNode>(); private final Collection<IntegrationNode> modules = new LinkedList<IntegrationNode>();
public void add( IntegrationType type ) public void add( IntegrationType type )
@@ -46,7 +48,7 @@ public enum IntegrationRegistry
return; return;
} }
this.modules.add( new IntegrationNode( type.dspName, type.modID, type, "appeng.integration.modules." + type.name() ) ); this.modules.add( new IntegrationNode( type.dspName, type.modID, type, PACKAGE_PREFIX + type.name() ) );
} }
public void init() public void init()
@@ -23,8 +23,10 @@ import net.mcft.copy.betterstorage.api.crate.ICrateStorage;
import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.common.util.ForgeDirection;
import appeng.api.AEApi; import appeng.api.AEApi;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IIntegrationModule; import appeng.integration.IIntegrationModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.abstraction.IBetterStorage; import appeng.integration.abstraction.IBetterStorage;
import appeng.integration.modules.helpers.BSCrateHandler; import appeng.integration.modules.helpers.BSCrateHandler;
import appeng.integration.modules.helpers.BSCrateStorageAdaptor; import appeng.integration.modules.helpers.BSCrateStorageAdaptor;
@@ -33,12 +35,13 @@ import appeng.util.InventoryAdaptor;
public class BetterStorage extends BaseModule implements IIntegrationModule, IBetterStorage public class BetterStorage extends BaseModule implements IIntegrationModule, IBetterStorage
{ {
@Reflected
public static BetterStorage instance; public static BetterStorage instance;
@Reflected
public BetterStorage() public BetterStorage()
{ {
this.testClassExistence( net.mcft.copy.betterstorage.api.crate.ICrateStorage.class ); IntegrationHelper.testClassExistence( this, net.mcft.copy.betterstorage.api.crate.ICrateStorage.class );
} }
@Override @Override
@@ -60,7 +63,6 @@ public class BetterStorage extends BaseModule implements IIntegrationModule, IBe
@Override @Override
public void init() public void init()
{ {
} }
@Override @Override
@@ -28,10 +28,7 @@ import net.minecraft.block.Block;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import buildcraft.api.blueprints.BuilderAPI; import buildcraft.api.blueprints.BuilderAPI;
import buildcraft.api.blueprints.IBuilderContext;
import buildcraft.api.blueprints.ISchematicRegistry; import buildcraft.api.blueprints.ISchematicRegistry;
import buildcraft.api.blueprints.SchematicBlock;
import buildcraft.api.blueprints.SchematicTile;
import appeng.api.AEApi; import appeng.api.AEApi;
import appeng.api.definitions.IBlockDefinition; import appeng.api.definitions.IBlockDefinition;
@@ -41,6 +38,7 @@ import appeng.api.util.IOrientableBlock;
import appeng.core.AELog; import appeng.core.AELog;
import appeng.helpers.Reflected; import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.modules.BCHelpers.AECableSchematicTile; import appeng.integration.modules.BCHelpers.AECableSchematicTile;
import appeng.integration.modules.BCHelpers.AEGenericSchematicTile; import appeng.integration.modules.BCHelpers.AEGenericSchematicTile;
import appeng.integration.modules.BCHelpers.AERotatableBlockSchematic; import appeng.integration.modules.BCHelpers.AERotatableBlockSchematic;
@@ -62,11 +60,11 @@ public class BuildCraftBuilder extends BaseModule
@Reflected @Reflected
public BuildCraftBuilder() public BuildCraftBuilder()
{ {
this.testClassExistence( BuilderAPI.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.blueprints.BuilderAPI.class );
this.testClassExistence( IBuilderContext.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.blueprints.IBuilderContext.class );
this.testClassExistence( ISchematicRegistry.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.blueprints.ISchematicRegistry.class );
this.testClassExistence( SchematicTile.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.blueprints.SchematicTile.class );
this.testClassExistence( SchematicBlock.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.blueprints.SchematicBlock.class );
} }
@Override @Override
@@ -85,7 +83,6 @@ public class BuildCraftBuilder extends BaseModule
@Override @Override
public void postInit() public void postInit()
{ {
} }
private void initBuilderSupport() private void initBuilderSupport()
@@ -25,7 +25,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import buildcraft.BuildCraftTransport;
import buildcraft.api.tools.IToolWrench; import buildcraft.api.tools.IToolWrench;
import appeng.api.AEApi; import appeng.api.AEApi;
@@ -33,6 +32,7 @@ import appeng.api.config.TunnelType;
import appeng.api.features.IP2PTunnelRegistry; import appeng.api.features.IP2PTunnelRegistry;
import appeng.helpers.Reflected; import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.abstraction.IBuildCraftCore; import appeng.integration.abstraction.IBuildCraftCore;
@@ -45,9 +45,9 @@ public final class BuildCraftCore extends BaseModule implements IBuildCraftCore
@Reflected @Reflected
public BuildCraftCore() public BuildCraftCore()
{ {
this.testClassExistence( buildcraft.BuildCraftCore.class ); IntegrationHelper.testClassExistence( this, buildcraft.BuildCraftCore.class );
this.testClassExistence( BuildCraftTransport.class ); IntegrationHelper.testClassExistence( this, buildcraft.BuildCraftTransport.class );
this.testClassExistence( IToolWrench.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.tools.IToolWrench.class );
} }
@Override @Override
@@ -71,7 +71,6 @@ public final class BuildCraftCore extends BaseModule implements IBuildCraftCore
@Override @Override
public void init() public void init()
{ {
} }
@Override @Override
@@ -33,7 +33,6 @@ import cpw.mods.fml.common.event.FMLInterModComms;
import buildcraft.api.facades.IFacadeItem; import buildcraft.api.facades.IFacadeItem;
import buildcraft.api.transport.IInjectable; import buildcraft.api.transport.IInjectable;
import buildcraft.api.transport.IPipeConnection;
import buildcraft.api.transport.IPipeTile; import buildcraft.api.transport.IPipeTile;
import buildcraft.transport.ItemFacade; import buildcraft.transport.ItemFacade;
import buildcraft.transport.PipeIconProvider; import buildcraft.transport.PipeIconProvider;
@@ -48,6 +47,7 @@ import appeng.api.parts.IFacadePart;
import appeng.facade.FacadePart; import appeng.facade.FacadePart;
import appeng.helpers.Reflected; import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.abstraction.IBuildCraftTransport; import appeng.integration.abstraction.IBuildCraftTransport;
import appeng.integration.modules.BCHelpers.BCPipeHandler; import appeng.integration.modules.BCHelpers.BCPipeHandler;
@@ -66,14 +66,14 @@ public class BuildCraftTransport extends BaseModule implements IBuildCraftTransp
@Reflected @Reflected
public BuildCraftTransport() public BuildCraftTransport()
{ {
this.testClassExistence( buildcraft.BuildCraftTransport.class ); IntegrationHelper.testClassExistence( this, buildcraft.BuildCraftTransport.class );
this.testClassExistence( IFacadeItem.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.facades.IFacadeItem.class );
this.testClassExistence( IInjectable.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.transport.IInjectable.class );
this.testClassExistence( IPipeConnection.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.transport.IPipeConnection.class );
this.testClassExistence( IPipeTile.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.transport.IPipeTile.class );
this.testClassExistence( ItemFacade.class ); IntegrationHelper.testClassExistence( this, buildcraft.api.transport.IPipeTile.PipeType.class );
this.testClassExistence( PipeIconProvider.class ); IntegrationHelper.testClassExistence( this, buildcraft.transport.ItemFacade.class );
this.testClassExistence( IPipeTile.PipeType.class ); IntegrationHelper.testClassExistence( this, buildcraft.transport.PipeIconProvider.class );
} }
@Override @Override
@@ -20,19 +20,26 @@ package appeng.integration.modules;
import appeng.api.util.AEColor; import appeng.api.util.AEColor;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.abstraction.ICLApi; import appeng.integration.abstraction.ICLApi;
public class CLApi extends BaseModule implements ICLApi public class CLApi extends BaseModule implements ICLApi
{ {
@Reflected
public static CLApi instance; public static CLApi instance;
@Reflected
public CLApi()
{
IntegrationHelper.testClassExistence( this, coloredlightscore.src.api.CLApi.class );
}
@Override @Override
public void init() throws Throwable public void init() throws Throwable
{ {
this.testClassExistence( coloredlightscore.src.api.CLApi.class );
} }
@Override @Override
@@ -56,6 +56,7 @@ import appeng.api.features.IInscriberRecipe;
import appeng.api.recipes.IIngredient; import appeng.api.recipes.IIngredient;
import appeng.helpers.Reflected; import appeng.helpers.Reflected;
import appeng.integration.IIntegrationModule; import appeng.integration.IIntegrationModule;
import appeng.integration.IntegrationHelper;
import appeng.recipes.game.ShapedRecipe; import appeng.recipes.game.ShapedRecipe;
import appeng.recipes.game.ShapelessRecipe; import appeng.recipes.game.ShapelessRecipe;
@@ -136,6 +137,33 @@ public final class CraftGuide extends CraftGuideAPIObject implements IIntegratio
@Reflected @Reflected
public static CraftGuide instance; public static CraftGuide instance;
public CraftGuide()
{
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.CraftGuideLog.class );
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.DefaultRecipeTemplate.class );
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.RecipeGeneratorImplementation.class );
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.api.ChanceSlot.class );
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.api.CraftGuideAPIObject.class );
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.api.ItemSlot.class );
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.api.RecipeGenerator.class );
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.api.RecipeProvider.class );
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.api.RecipeTemplate.class );
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.api.Slot.class );
IntegrationHelper.testClassExistence( this, uristqwerty.CraftGuide.api.SlotType.class );
IntegrationHelper.testClassExistence( this, uristqwerty.gui_craftguide.texture.DynamicTexture.class );
IntegrationHelper.testClassExistence( this, uristqwerty.gui_craftguide.texture.TextureClip.class );
}
@Override
public void init() throws Throwable
{
}
@Override
public void postInit()
{
}
@Override @Override
public void generateRecipes( RecipeGenerator generator ) public void generateRecipes( RecipeGenerator generator )
{ {
@@ -428,15 +456,4 @@ public final class CraftGuide extends CraftGuideAPIObject implements IIntegratio
return null; return null;
} }
@Override
public void init() throws Throwable
{
}
@Override
public void postInit()
{
}
} }
@@ -25,7 +25,9 @@ import powercrystals.minefactoryreloaded.api.IDeepStorageUnit;
import appeng.api.AEApi; import appeng.api.AEApi;
import appeng.api.storage.IMEInventory; import appeng.api.storage.IMEInventory;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.abstraction.IDSU; import appeng.integration.abstraction.IDSU;
import appeng.integration.modules.helpers.MFRDSUHandler; import appeng.integration.modules.helpers.MFRDSUHandler;
import appeng.integration.modules.helpers.MinefactoryReloadedDeepStorageUnit; import appeng.integration.modules.helpers.MinefactoryReloadedDeepStorageUnit;
@@ -33,8 +35,15 @@ import appeng.integration.modules.helpers.MinefactoryReloadedDeepStorageUnit;
public class DSU extends BaseModule implements IDSU public class DSU extends BaseModule implements IDSU
{ {
@Reflected
public static DSU instance; public static DSU instance;
@Reflected
public DSU()
{
IntegrationHelper.testClassExistence( this, powercrystals.minefactoryreloaded.api.IDeepStorageUnit.class );
}
@Override @Override
public IMEInventory getDSU( TileEntity te ) public IMEInventory getDSU( TileEntity te )
{ {
@@ -50,7 +59,6 @@ public class DSU extends BaseModule implements IDSU
@Override @Override
public void init() public void init()
{ {
this.testClassExistence( IDeepStorageUnit.class );
} }
@Override @Override
@@ -50,6 +50,7 @@ import appeng.fmp.CableBusPart;
import appeng.fmp.FMPEvent; import appeng.fmp.FMPEvent;
import appeng.fmp.FMPPlacementHelper; import appeng.fmp.FMPPlacementHelper;
import appeng.fmp.PartRegistry; import appeng.fmp.PartRegistry;
import appeng.helpers.Reflected;
import appeng.integration.IIntegrationModule; import appeng.integration.IIntegrationModule;
import appeng.integration.abstraction.IFMP; import appeng.integration.abstraction.IFMP;
import appeng.integration.modules.helpers.FMPPacketEvent; import appeng.integration.modules.helpers.FMPPacketEvent;
@@ -58,7 +59,7 @@ import appeng.parts.CableBusContainer;
public class FMP implements IIntegrationModule, IPartFactory, IPartConverter, IFMP public class FMP implements IIntegrationModule, IPartFactory, IPartConverter, IFMP
{ {
@Reflected
public static FMP instance; public static FMP instance;
@Override @Override
@@ -28,6 +28,8 @@ import net.minecraft.tileentity.TileEntity;
import appeng.api.AEApi; import appeng.api.AEApi;
import appeng.api.storage.IMEInventory; import appeng.api.storage.IMEInventory;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule;
import appeng.integration.IIntegrationModule; import appeng.integration.IIntegrationModule;
import appeng.integration.abstraction.IFZ; import appeng.integration.abstraction.IFZ;
import appeng.integration.modules.helpers.FactorizationBarrel; import appeng.integration.modules.helpers.FactorizationBarrel;
@@ -38,9 +40,9 @@ import appeng.util.Platform;
/** /**
* 100% Hacks. * 100% Hacks.
*/ */
public class FZ implements IFZ, IIntegrationModule public class FZ extends BaseModule implements IFZ, IIntegrationModule
{ {
@Reflected
public static FZ instance; public static FZ instance;
private static Class<?> day_BarrelClass; private static Class<?> day_BarrelClass;
@@ -27,25 +27,41 @@ import ic2.api.energy.tile.IEnergyTile;
import ic2.api.recipe.RecipeInputItemStack; import ic2.api.recipe.RecipeInputItemStack;
import appeng.api.AEApi; import appeng.api.AEApi;
import appeng.api.IAppEngApi;
import appeng.api.config.TunnelType; import appeng.api.config.TunnelType;
import appeng.api.features.IP2PTunnelRegistry; import appeng.api.features.IP2PTunnelRegistry;
import appeng.api.parts.IPartHelper;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.IntegrationRegistry;
import appeng.integration.IntegrationType;
import appeng.integration.abstraction.IIC2; import appeng.integration.abstraction.IIC2;
public class IC2 extends BaseModule implements IIC2 public class IC2 extends BaseModule implements IIC2
{ {
@Reflected
public static IC2 instance; public static IC2 instance;
@Reflected
public IC2() public IC2()
{ {
this.testClassExistence( IEnergyTile.class ); IntegrationHelper.testClassExistence( this, ic2.api.energy.tile.IEnergyTile.class );
IntegrationHelper.testClassExistence( this, ic2.api.recipe.RecipeInputItemStack.class );
} }
@Override @Override
public void init() public void init()
{ {
final IAppEngApi api = AEApi.instance();
final IPartHelper partHelper = api.partHelper();
if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.IC2 ) )
{
partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergySink", "ic2.api.energy.tile.IEnergySink" );
partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergySource", "ic2.api.energy.tile.IEnergySource" );
}
} }
@Override @Override
@@ -31,7 +31,6 @@ import net.minecraft.world.World;
import mods.immibis.core.api.multipart.ICoverSystem; import mods.immibis.core.api.multipart.ICoverSystem;
import mods.immibis.core.api.multipart.IMultipartTile; import mods.immibis.core.api.multipart.IMultipartTile;
import mods.immibis.core.api.multipart.IPartContainer;
import appeng.api.AEApi; import appeng.api.AEApi;
import appeng.api.definitions.IBlockDefinition; import appeng.api.definitions.IBlockDefinition;
@@ -40,6 +39,7 @@ import appeng.api.parts.IPartItem;
import appeng.core.AELog; import appeng.core.AELog;
import appeng.helpers.Reflected; import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.abstraction.IImmibisMicroblocks; import appeng.integration.abstraction.IImmibisMicroblocks;
@@ -53,13 +53,17 @@ public class ImmibisMicroblocks extends BaseModule implements IImmibisMicroblock
private Class<?> MicroblockAPIUtils; private Class<?> MicroblockAPIUtils;
private Method mergeIntoMicroblockContainer; private Method mergeIntoMicroblockContainer;
@Reflected
public ImmibisMicroblocks()
{
IntegrationHelper.testClassExistence( this, mods.immibis.core.api.multipart.IMultipartTile.class );
IntegrationHelper.testClassExistence( this, mods.immibis.core.api.multipart.ICoverSystem.class );
IntegrationHelper.testClassExistence( this, mods.immibis.core.api.multipart.IPartContainer.class );
}
@Override @Override
public void init() throws Throwable public void init() throws Throwable
{ {
this.testClassExistence( IMultipartTile.class );
this.testClassExistence( ICoverSystem.class );
this.testClassExistence( IPartContainer.class );
try try
{ {
this.MicroblockAPIUtils = Class.forName( "mods.immibis.microblocks.api.MicroblockAPIUtils" ); this.MicroblockAPIUtils = Class.forName( "mods.immibis.microblocks.api.MicroblockAPIUtils" );
@@ -25,17 +25,25 @@ import cpw.mods.fml.common.Loader;
import invtweaks.api.InvTweaksAPI; import invtweaks.api.InvTweaksAPI;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.abstraction.IInvTweaks; import appeng.integration.abstraction.IInvTweaks;
public class InvTweaks extends BaseModule implements IInvTweaks public class InvTweaks extends BaseModule implements IInvTweaks
{ {
@Reflected
public static InvTweaks instance; public static InvTweaks instance;
static InvTweaksAPI api; static InvTweaksAPI api;
@Reflected
public InvTweaks()
{
IntegrationHelper.testClassExistence( this, invtweaks.api.InvTweaksAPI.class );
}
@Override @Override
public void init() public void init()
{ {
@@ -19,30 +19,29 @@
package appeng.integration.modules; package appeng.integration.modules;
import powercrystals.minefactoryreloaded.api.rednet.connectivity.IRedNetConnection; import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
public class MFR extends BaseModule public class MFR extends BaseModule
{ {
@Reflected
public static MFR instance; public static MFR instance;
@Reflected
public MFR() public MFR()
{ {
this.testClassExistence( IRedNetConnection.class ); IntegrationHelper.testClassExistence( this, powercrystals.minefactoryreloaded.api.rednet.connectivity.IRedNetConnection.class );
} }
@Override @Override
public void init() throws Throwable public void init() throws Throwable
{ {
} }
@Override @Override
public void postInit() public void postInit()
{ {
} }
} }
@@ -24,25 +24,31 @@ import net.minecraft.nbt.NBTTagCompound;
import cpw.mods.fml.common.event.FMLInterModComms; import cpw.mods.fml.common.event.FMLInterModComms;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.abstraction.IMekanism; import appeng.integration.abstraction.IMekanism;
public final class Mekanism extends BaseModule implements IMekanism public final class Mekanism extends BaseModule implements IMekanism
{ {
@Reflected
public static Mekanism instance; public static Mekanism instance;
@Reflected
public Mekanism()
{
IntegrationHelper.testClassExistence( this, mekanism.api.energy.IStrictEnergyAcceptor.class );
}
@Override @Override
public void init() throws Throwable public void init() throws Throwable
{ {
this.testClassExistence( mekanism.api.energy.IStrictEnergyAcceptor.class );
} }
@Override @Override
public void postInit() public void postInit()
{ {
} }
@Override @Override
@@ -42,6 +42,7 @@ import appeng.core.AEConfig;
import appeng.core.features.AEFeature; import appeng.core.features.AEFeature;
import appeng.helpers.Reflected; import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.abstraction.INEI; import appeng.integration.abstraction.INEI;
import appeng.integration.modules.NEIHelpers.NEIAEShapedRecipeHandler; import appeng.integration.modules.NEIHelpers.NEIAEShapedRecipeHandler;
import appeng.integration.modules.NEIHelpers.NEIAEShapelessRecipeHandler; import appeng.integration.modules.NEIHelpers.NEIAEShapelessRecipeHandler;
@@ -61,15 +62,19 @@ public class NEI extends BaseModule implements INEI, IContainerTooltipHandler
private final Class<?> apiClass; private final Class<?> apiClass;
// recipe handler... // recipe handler...
Method registerRecipeHandler; private Method registerRecipeHandler;
Method registerUsageHandler; private Method registerUsageHandler;
@Reflected @Reflected
public NEI() throws ClassNotFoundException public NEI() throws ClassNotFoundException
{ {
this.testClassExistence( GuiContainerManager.class ); IntegrationHelper.testClassExistence( this, codechicken.nei.api.API.class );
this.testClassExistence( codechicken.nei.recipe.ICraftingHandler.class ); IntegrationHelper.testClassExistence( this, codechicken.nei.api.IStackPositioner.class );
this.testClassExistence( codechicken.nei.recipe.IUsageHandler.class ); IntegrationHelper.testClassExistence( this, codechicken.nei.guihook.GuiContainerManager.class );
IntegrationHelper.testClassExistence( this, codechicken.nei.guihook.IContainerTooltipHandler.class );
IntegrationHelper.testClassExistence( this, codechicken.nei.recipe.ICraftingHandler.class );
IntegrationHelper.testClassExistence( this, codechicken.nei.recipe.IUsageHandler.class );
this.apiClass = Class.forName( "codechicken.nei.api.API" ); this.apiClass = Class.forName( "codechicken.nei.api.API" );
} }
@@ -96,7 +101,7 @@ public class NEI extends BaseModule implements INEI, IContainerTooltipHandler
// crafting terminal... // crafting terminal...
Method registerGuiOverlay = this.apiClass.getDeclaredMethod( "registerGuiOverlay", Class.class, String.class, IStackPositioner.class ); Method registerGuiOverlay = this.apiClass.getDeclaredMethod( "registerGuiOverlay", Class.class, String.class, IStackPositioner.class );
Class overlayHandler = Class.forName( "codechicken.nei.api.IOverlayHandler" ); Class overlayHandler = Class.forName( "codechicken.nei.api.IOverlayHandler" );
Class defaultHandler = NEICraftingHandler.class; Class<NEICraftingHandler> defaultHandler = NEICraftingHandler.class;
Method registrar = this.apiClass.getDeclaredMethod( "registerGuiOverlayHandler", Class.class, overlayHandler, String.class ); Method registrar = this.apiClass.getDeclaredMethod( "registerGuiOverlayHandler", Class.class, overlayHandler, String.class );
registerGuiOverlay.invoke( this.apiClass, GuiCraftingTerm.class, "crafting", new TerminalCraftingSlotFinder() ); registerGuiOverlay.invoke( this.apiClass, GuiCraftingTerm.class, "crafting", new TerminalCraftingSlotFinder() );
@@ -109,6 +109,7 @@ public class NEIGrinderRecipeHandler extends TemplateRecipeHandler
public String getGuiTexture() public String getGuiTexture()
{ {
ResourceLocation loc = new ResourceLocation( "appliedenergistics2", "textures/guis/grinder.png" ); ResourceLocation loc = new ResourceLocation( "appliedenergistics2", "textures/guis/grinder.png" );
return loc.toString(); return loc.toString();
} }
@@ -194,13 +195,22 @@ public class NEIGrinderRecipeHandler extends TemplateRecipeHandler
this.result = new PositionedStack( recipe.getOutput(), -30 + 107, 47 ); this.result = new PositionedStack( recipe.getOutput(), -30 + 107, 47 );
this.ingredients = new ArrayList<PositionedStack>(); this.ingredients = new ArrayList<PositionedStack>();
if( recipe.getOptionalOutput() != null ) final ItemStack optionalOutput = recipe.getOptionalOutput();
final int optionalChancePercent = (int) ( recipe.getOptionalChance() * 100 );
if( optionalOutput != null )
{ {
final int chancePercent = (int) ( recipe.getOptionalChance() * 100 );
this.hasOptional = true; this.hasOptional = true;
this.displayChance = String.format( GuiText.OfSecondOutput.getLocal(), chancePercent ); this.displayChance = String.format( GuiText.OfSecondOutput.getLocal(), optionalChancePercent );
this.ingredients.add( new PositionedStack( recipe.getOptionalOutput(), -30 + 107 + 18, 47 ) ); this.ingredients.add( new PositionedStack( optionalOutput, -30 + 107 + 18, 47 ) );
}
final ItemStack secondOptionalOutput = recipe.getSecondOptionalOutput();
final int secondOptionalChancePercent = (int) ( recipe.getSecondOptionalChance() * 100 );
if( secondOptionalOutput != null )
{
this.hasOptional = true;
this.displayChance = String.format( GuiText.MultipleOutputs.getLocal(), optionalChancePercent, secondOptionalChancePercent );
this.ingredients.add( new PositionedStack( secondOptionalOutput, -30 + 107 + 18 + 18, 47 ) );
} }
if( recipe.getInput() != null ) if( recipe.getInput() != null )
@@ -22,28 +22,44 @@ package appeng.integration.modules;
import li.cil.oc.api.Items; import li.cil.oc.api.Items;
import appeng.api.AEApi; import appeng.api.AEApi;
import appeng.api.IAppEngApi;
import appeng.api.config.TunnelType; import appeng.api.config.TunnelType;
import appeng.api.features.IP2PTunnelRegistry; import appeng.api.features.IP2PTunnelRegistry;
import appeng.api.parts.IPartHelper;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.IntegrationRegistry;
import appeng.integration.IntegrationType;
public class OpenComputers extends BaseModule public class OpenComputers extends BaseModule
{ {
@Reflected
public static OpenComputers instance; public static OpenComputers instance;
@Reflected
public OpenComputers() public OpenComputers()
{ {
this.testClassExistence( li.cil.oc.api.Items.class ); IntegrationHelper.testClassExistence( this, li.cil.oc.api.Items.class );
this.testClassExistence( li.cil.oc.api.Network.class ); IntegrationHelper.testClassExistence( this, li.cil.oc.api.Network.class );
this.testClassExistence( li.cil.oc.api.network.Environment.class ); IntegrationHelper.testClassExistence( this, li.cil.oc.api.network.Environment.class );
this.testClassExistence( li.cil.oc.api.network.SidedEnvironment.class ); IntegrationHelper.testClassExistence( this, li.cil.oc.api.network.SidedEnvironment.class );
this.testClassExistence( li.cil.oc.api.network.Node.class ); IntegrationHelper.testClassExistence( this, li.cil.oc.api.network.Node.class );
this.testClassExistence( li.cil.oc.api.network.Message.class ); IntegrationHelper.testClassExistence( this, li.cil.oc.api.network.Message.class );
} }
@Override @Override
public void init() public void init()
{ {
final IAppEngApi api = AEApi.instance();
final IPartHelper partHelper = api.partHelper();
if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.OpenComputers ) )
{
partHelper.registerNewLayer( "appeng.parts.layers.LayerSidedEnvironment", "li.cil.oc.api.network.SidedEnvironment" );
}
} }
@Override @Override
@@ -31,6 +31,7 @@ import appeng.api.features.IP2PTunnelRegistry;
import appeng.api.parts.IPartHelper; import appeng.api.parts.IPartHelper;
import appeng.helpers.Reflected; import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.IntegrationRegistry; import appeng.integration.IntegrationRegistry;
import appeng.integration.IntegrationType; import appeng.integration.IntegrationType;
@@ -45,10 +46,10 @@ public class PneumaticCraft extends BaseModule
@Reflected @Reflected
public PneumaticCraft() public PneumaticCraft()
{ {
this.testClassExistence( pneumaticCraft.api.block.BlockSupplier.class ); IntegrationHelper.testClassExistence( this, pneumaticCraft.api.block.BlockSupplier.class );
this.testClassExistence( pneumaticCraft.api.tileentity.ISidedPneumaticMachine.class ); IntegrationHelper.testClassExistence( this, pneumaticCraft.api.tileentity.ISidedPneumaticMachine.class );
this.testClassExistence( pneumaticCraft.api.tileentity.AirHandlerSupplier.class ); IntegrationHelper.testClassExistence( this, pneumaticCraft.api.tileentity.AirHandlerSupplier.class );
this.testClassExistence( pneumaticCraft.api.tileentity.IAirHandler.class ); IntegrationHelper.testClassExistence( this, pneumaticCraft.api.tileentity.IAirHandler.class );
} }
@Override @Override
@@ -24,19 +24,22 @@ import net.minecraft.item.ItemStack;
import mods.railcraft.api.crafting.IRockCrusherRecipe; import mods.railcraft.api.crafting.IRockCrusherRecipe;
import mods.railcraft.api.crafting.RailcraftCraftingManager; import mods.railcraft.api.crafting.RailcraftCraftingManager;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.abstraction.IRC; import appeng.integration.abstraction.IRC;
public class RC extends BaseModule implements IRC public class RC extends BaseModule implements IRC
{ {
@Reflected
public static RC instance; public static RC instance;
@Reflected
public RC() public RC()
{ {
this.testClassExistence( RailcraftCraftingManager.class ); IntegrationHelper.testClassExistence( this, mods.railcraft.api.crafting.RailcraftCraftingManager.class );
this.testClassExistence( IRockCrusherRecipe.class ); IntegrationHelper.testClassExistence( this, mods.railcraft.api.crafting.IRockCrusherRecipe.class );
} }
@Override @Override
@@ -49,13 +52,10 @@ public class RC extends BaseModule implements IRC
@Override @Override
public void init() public void init()
{ {
// TODO Auto-generated method stub
} }
@Override @Override
public void postInit() public void postInit()
{ {
} }
} }
@@ -25,9 +25,14 @@ import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.GameRegistry;
import appeng.api.AEApi; import appeng.api.AEApi;
import appeng.api.IAppEngApi;
import appeng.api.config.TunnelType; import appeng.api.config.TunnelType;
import appeng.api.parts.IPartHelper;
import appeng.helpers.Reflected; import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.IntegrationRegistry;
import appeng.integration.IntegrationType;
public final class RF extends BaseModule public final class RF extends BaseModule
@@ -35,17 +40,25 @@ public final class RF extends BaseModule
@Reflected @Reflected
public static RF instance; public static RF instance;
@Reflected
public RF() public RF()
{ {
this.testClassExistence( cofh.api.energy.IEnergyReceiver.class ); IntegrationHelper.testClassExistence( this, cofh.api.energy.IEnergyReceiver.class );
this.testClassExistence( cofh.api.energy.IEnergyProvider.class ); IntegrationHelper.testClassExistence( this, cofh.api.energy.IEnergyProvider.class );
this.testClassExistence( cofh.api.energy.IEnergyHandler.class ); IntegrationHelper.testClassExistence( this, cofh.api.energy.IEnergyHandler.class );
this.testClassExistence( cofh.api.energy.IEnergyConnection.class ); IntegrationHelper.testClassExistence( this, cofh.api.energy.IEnergyConnection.class );
} }
@Override @Override
public void init() public void init()
{ {
final IAppEngApi api = AEApi.instance();
final IPartHelper partHelper = api.partHelper();
if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.RF ) )
{
partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergyHandler", "cofh.api.energy.IEnergyReceiver" );
}
} }
@Override @Override
@@ -19,28 +19,29 @@
package appeng.integration.modules; package appeng.integration.modules;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
public class RFItem extends BaseModule public class RFItem extends BaseModule
{ {
@Reflected
public static RFItem instance; public static RFItem instance;
@Reflected
public RFItem() public RFItem()
{ {
this.testClassExistence( cofh.api.energy.IEnergyContainerItem.class ); IntegrationHelper.testClassExistence( this, cofh.api.energy.IEnergyContainerItem.class );
} }
@Override @Override
public void init() public void init()
{ {
} }
@Override @Override
public void postInit() public void postInit()
{ {
} }
} }
@@ -19,28 +19,30 @@
package appeng.integration.modules; package appeng.integration.modules;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
public class RotaryCraft extends BaseModule public class RotaryCraft extends BaseModule
{ {
@Reflected
public static RotaryCraft instance; public static RotaryCraft instance;
@Reflected
public RotaryCraft() public RotaryCraft()
{ {
this.testClassExistence( Reika.RotaryCraft.API.Power.AdvancedShaftPowerReceiver.class ); IntegrationHelper.testClassExistence( this, Reika.RotaryCraft.API.Power.AdvancedShaftPowerReceiver.class );
this.testClassExistence( Reika.RotaryCraft.API.Interfaces.Transducerable.class ); IntegrationHelper.testClassExistence( this, Reika.RotaryCraft.API.Interfaces.Transducerable.class );
} }
@Override @Override
public void init() throws Throwable public void init() throws Throwable
{ {
} }
@Override @Override
public void postInit() public void postInit()
{ {
} }
} }
@@ -24,7 +24,9 @@ import cpw.mods.fml.common.event.FMLInterModComms;
import mcp.mobius.waila.api.IWailaDataProvider; import mcp.mobius.waila.api.IWailaDataProvider;
import mcp.mobius.waila.api.IWailaRegistrar; import mcp.mobius.waila.api.IWailaRegistrar;
import appeng.helpers.Reflected;
import appeng.integration.BaseModule; import appeng.integration.BaseModule;
import appeng.integration.IntegrationHelper;
import appeng.integration.modules.waila.PartWailaDataProvider; import appeng.integration.modules.waila.PartWailaDataProvider;
import appeng.integration.modules.waila.TileWailaDataProvider; import appeng.integration.modules.waila.TileWailaDataProvider;
import appeng.tile.AEBaseTile; import appeng.tile.AEBaseTile;
@@ -32,8 +34,19 @@ import appeng.tile.AEBaseTile;
public class Waila extends BaseModule public class Waila extends BaseModule
{ {
@Reflected
public static Waila instance; public static Waila instance;
@Reflected
public Waila()
{
IntegrationHelper.testClassExistence( this, mcp.mobius.waila.api.IWailaDataProvider.class );
IntegrationHelper.testClassExistence( this, mcp.mobius.waila.api.IWailaRegistrar.class );
IntegrationHelper.testClassExistence( this, mcp.mobius.waila.api.IWailaConfigHandler.class );
IntegrationHelper.testClassExistence( this, mcp.mobius.waila.api.IWailaDataAccessor.class );
IntegrationHelper.testClassExistence( this, mcp.mobius.waila.api.ITaggedList.class );
}
public static void register( IWailaRegistrar registrar ) public static void register( IWailaRegistrar registrar )
{ {
final IWailaDataProvider partHost = new PartWailaDataProvider(); final IWailaDataProvider partHost = new PartWailaDataProvider();
@@ -51,15 +64,11 @@ public class Waila extends BaseModule
@Override @Override
public void init() throws Throwable public void init() throws Throwable
{ {
this.testClassExistence( IWailaDataProvider.class );
this.testClassExistence( IWailaRegistrar.class );
FMLInterModComms.sendMessage( "Waila", "register", this.getClass().getName() + ".register" ); FMLInterModComms.sendMessage( "Waila", "register", this.getClass().getName() + ".register" );
} }
@Override @Override
public void postInit() public void postInit()
{ {
// :P
} }
} }
@@ -48,13 +48,14 @@ import appeng.core.features.AEFeature;
import appeng.core.sync.GuiBridge; import appeng.core.sync.GuiBridge;
import appeng.core.sync.network.NetworkHandler; import appeng.core.sync.network.NetworkHandler;
import appeng.core.sync.packets.PacketClick; import appeng.core.sync.packets.PacketClick;
import appeng.integration.IntegrationType;
import appeng.items.AEBaseItem; import appeng.items.AEBaseItem;
import appeng.items.contents.NetworkToolViewer; import appeng.items.contents.NetworkToolViewer;
import appeng.transformer.annotations.Integration.Interface; import appeng.transformer.annotations.Integration.Interface;
import appeng.util.Platform; import appeng.util.Platform;
@Interface( iface = "buildcraft.api.tools.IToolWrench", iname = "BuildCraftCore" ) @Interface( iface = "buildcraft.api.tools.IToolWrench", iname = IntegrationType.BuildCraftCore )
public class ToolNetworkTool extends AEBaseItem implements IGuiItem, IAEWrench, IToolWrench public class ToolNetworkTool extends AEBaseItem implements IGuiItem, IAEWrench, IToolWrench
{ {
@@ -29,12 +29,13 @@ import ic2.api.item.IElectricItemManager;
import ic2.api.item.ISpecialElectricItem; import ic2.api.item.ISpecialElectricItem;
import appeng.api.config.PowerUnits; import appeng.api.config.PowerUnits;
import appeng.integration.IntegrationType;
import appeng.transformer.annotations.Integration.Interface; import appeng.transformer.annotations.Integration.Interface;
import appeng.transformer.annotations.Integration.InterfaceList; import appeng.transformer.annotations.Integration.InterfaceList;
import appeng.transformer.annotations.Integration.Method; import appeng.transformer.annotations.Integration.Method;
@InterfaceList( value = { @Interface( iface = "ic2.api.item.ISpecialElectricItem", iname = "IC2" ), @Interface( iface = "ic2.api.item.IElectricItemManager", iname = "IC2" ) } ) @InterfaceList( value = { @Interface( iface = "ic2.api.item.ISpecialElectricItem", iname = IntegrationType.IC2 ), @Interface( iface = "ic2.api.item.IElectricItemManager", iname = IntegrationType.IC2 ) } )
public abstract class IC2 extends AERootPoweredItem implements IElectricItemManager, ISpecialElectricItem public abstract class IC2 extends AERootPoweredItem implements IElectricItemManager, ISpecialElectricItem
{ {
public IC2( double powerCapacity, Optional<String> subName ) public IC2( double powerCapacity, Optional<String> subName )
@@ -135,7 +136,7 @@ public abstract class IC2 extends AERootPoweredItem implements IElectricItemMana
} }
@Override @Override
@Method( iname = "IC2" ) @Method( iname = IntegrationType.IC2 )
public IElectricItemManager getManager( ItemStack itemStack ) public IElectricItemManager getManager( ItemStack itemStack )
{ {
return this; return this;
@@ -26,10 +26,11 @@ import net.minecraft.item.ItemStack;
import cofh.api.energy.IEnergyContainerItem; import cofh.api.energy.IEnergyContainerItem;
import appeng.api.config.PowerUnits; import appeng.api.config.PowerUnits;
import appeng.integration.IntegrationType;
import appeng.transformer.annotations.Integration.Interface; import appeng.transformer.annotations.Integration.Interface;
@Interface( iface = "cofh.api.energy.IEnergyContainerItem", iname = "RFItem" ) @Interface( iface = "cofh.api.energy.IEnergyContainerItem", iname = IntegrationType.RFItem )
public abstract class RedstoneFlux extends IC2 implements IEnergyContainerItem public abstract class RedstoneFlux extends IC2 implements IEnergyContainerItem
{ {
public RedstoneFlux( double powerCapacity, Optional<String> subName ) public RedstoneFlux( double powerCapacity, Optional<String> subName )
@@ -34,12 +34,13 @@ import buildcraft.api.tools.IToolWrench;
import appeng.api.implementations.items.IAEWrench; import appeng.api.implementations.items.IAEWrench;
import appeng.api.util.DimensionalCoord; import appeng.api.util.DimensionalCoord;
import appeng.core.features.AEFeature; import appeng.core.features.AEFeature;
import appeng.integration.IntegrationType;
import appeng.items.AEBaseItem; import appeng.items.AEBaseItem;
import appeng.transformer.annotations.Integration.Interface; import appeng.transformer.annotations.Integration.Interface;
import appeng.util.Platform; import appeng.util.Platform;
@Interface( iface = "buildcraft.api.tools.IToolWrench", iname = "BuildCraftCore" ) @Interface( iface = "buildcraft.api.tools.IToolWrench", iname = IntegrationType.BuildCraftCore )
public class ToolQuartzWrench extends AEBaseItem implements IAEWrench, IToolWrench public class ToolQuartzWrench extends AEBaseItem implements IAEWrench, IToolWrench
{ {
+3 -3
View File
@@ -314,9 +314,9 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
{ {
this.craftingCPUClusters.add( cluster ); this.craftingCPUClusters.add( cluster );
if( cluster.myLastLink != null ) if( cluster.getLastCraftingLink() != null )
{ {
this.addLink( (CraftingLink) cluster.myLastLink ); this.addLink( (CraftingLink) cluster.getLastCraftingLink() );
} }
} }
} }
@@ -641,7 +641,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
while( this.iterator.hasNext() && this.cpuCluster == null ) while( this.iterator.hasNext() && this.cpuCluster == null )
{ {
this.cpuCluster = this.iterator.next(); this.cpuCluster = this.iterator.next();
if( !this.cpuCluster.isActive() || this.cpuCluster.isDestroyed ) if( !this.cpuCluster.isActive() || this.cpuCluster.isDestroyed() )
{ {
this.cpuCluster = null; this.cpuCluster = null;
} }
@@ -80,31 +80,31 @@ import appeng.util.Platform;
import appeng.util.item.AEItemStack; import appeng.util.item.AEItemStack;
public class CraftingCPUCluster implements IAECluster, ICraftingCPU public final class CraftingCPUCluster implements IAECluster, ICraftingCPU
{ {
public final WorldCoord min; private final WorldCoord min;
public final WorldCoord max; private final WorldCoord max;
final int[] usedOps = new int[3]; private final int[] usedOps = new int[3];
final Map<ICraftingPatternDetails, TaskProgress> tasks = new HashMap<ICraftingPatternDetails, TaskProgress>(); private final Map<ICraftingPatternDetails, TaskProgress> tasks = new HashMap<ICraftingPatternDetails, TaskProgress>();
// INSTANCE sate // INSTANCE sate
private final LinkedList<TileCraftingTile> tiles = new LinkedList<TileCraftingTile>(); private final LinkedList<TileCraftingTile> tiles = new LinkedList<TileCraftingTile>();
private final LinkedList<TileCraftingTile> storage = new LinkedList<TileCraftingTile>(); private final LinkedList<TileCraftingTile> storage = new LinkedList<TileCraftingTile>();
private final LinkedList<TileCraftingMonitorTile> status = new LinkedList<TileCraftingMonitorTile>(); private final LinkedList<TileCraftingMonitorTile> status = new LinkedList<TileCraftingMonitorTile>();
private final HashMap<IMEMonitorHandlerReceiver<IAEItemStack>, Object> listeners = new HashMap<IMEMonitorHandlerReceiver<IAEItemStack>, Object>(); private final HashMap<IMEMonitorHandlerReceiver<IAEItemStack>, Object> listeners = new HashMap<IMEMonitorHandlerReceiver<IAEItemStack>, Object>();
public ICraftingLink myLastLink; private ICraftingLink myLastLink;
public String myName = ""; private String myName = "";
public boolean isDestroyed = false; private boolean isDestroyed = false;
/** /**
* crafting job info * crafting job info
*/ */
MECraftingInventory inventory = new MECraftingInventory(); private MECraftingInventory inventory = new MECraftingInventory();
IAEItemStack finalOutput; private IAEItemStack finalOutput;
boolean waiting = false; private boolean waiting = false;
IItemList<IAEItemStack> waitingFor = AEApi.instance().storage().createItemList(); private IItemList<IAEItemStack> waitingFor = AEApi.instance().storage().createItemList();
long availableStorage = 0; private long availableStorage = 0;
MachineSource machineSrc = null; private MachineSource machineSrc = null;
int accelerator = 0; private int accelerator = 0;
private boolean isComplete = true; private boolean isComplete = true;
private int remainingOperations; private int remainingOperations;
private boolean somethingChanged; private boolean somethingChanged;
@@ -120,6 +120,16 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
this.max = max; this.max = max;
} }
public boolean isDestroyed()
{
return this.isDestroyed;
}
public ICraftingLink getLastCraftingLink()
{
return this.myLastLink;
}
/** /**
* add a new Listener to the monitor, be sure to properly remove yourself when your done. * add a new Listener to the monitor, be sure to properly remove yourself when your done.
*/ */
@@ -165,10 +175,10 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
for( TileCraftingTile r : this.tiles ) for( TileCraftingTile r : this.tiles )
{ {
IGridNode n = r.getActionableNode(); final IGridNode n = r.getActionableNode();
if( n != null && !posted ) if( n != null && !posted )
{ {
IGrid g = n.getGrid(); final IGrid g = n.getGrid();
if( g != null ) if( g != null )
{ {
g.postEvent( new MENetworkCraftingCpuChange( n ) ); g.postEvent( new MENetworkCraftingCpuChange( n ) );
@@ -216,7 +226,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
{ {
if( input instanceof IAEItemStack ) if( input instanceof IAEItemStack )
{ {
IAEItemStack is = this.waitingFor.findPrecise( (IAEItemStack) input ); final IAEItemStack is = this.waitingFor.findPrecise( (IAEItemStack) input );
if( is != null && is.getStackSize() > 0 ) if( is != null && is.getStackSize() > 0 )
{ {
return true; return true;
@@ -227,11 +237,16 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
public IAEStack injectItems( IAEStack input, Actionable type, BaseActionSource src ) public IAEStack injectItems( IAEStack input, Actionable type, BaseActionSource src )
{ {
if( input instanceof IAEItemStack && type == Actionable.SIMULATE )// causes crafting to lock up? if( !( input instanceof IAEItemStack ) )
{ {
IAEItemStack what = (IAEItemStack) input.copy(); return input;
IAEItemStack is = this.waitingFor.findPrecise( what ); }
final IAEItemStack what = (IAEItemStack) input.copy();
final IAEItemStack is = this.waitingFor.findPrecise( what );
if( type == Actionable.SIMULATE )// causes crafting to lock up?
{
if( is != null && is.getStackSize() > 0 ) if( is != null && is.getStackSize() > 0 )
{ {
if( is.getStackSize() >= what.getStackSize() ) if( is.getStackSize() >= what.getStackSize() )
@@ -249,10 +264,10 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
return null; return null;
} }
IAEItemStack leftOver = what.copy(); final IAEItemStack leftOver = what.copy();
leftOver.decStackSize( is.getStackSize() ); leftOver.decStackSize( is.getStackSize() );
IAEItemStack used = what.copy(); final IAEItemStack used = what.copy();
used.setStackSize( is.getStackSize() ); used.setStackSize( is.getStackSize() );
if( this.finalOutput.equals( what ) ) if( this.finalOutput.equals( what ) )
@@ -269,27 +284,33 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
return leftOver; return leftOver;
} }
} }
else if( input instanceof IAEItemStack && type == Actionable.MODULATE ) else if( type == Actionable.MODULATE )
{ {
IAEItemStack what = (IAEItemStack) input;
IAEItemStack is = this.waitingFor.findPrecise( what );
if( is != null && is.getStackSize() > 0 ) if( is != null && is.getStackSize() > 0 )
{ {
this.waiting = false; this.waiting = false;
this.postChange( (IAEItemStack) input, src ); this.postChange( what, src );
if( is.getStackSize() >= input.getStackSize() ) if( is.getStackSize() >= what.getStackSize() )
{ {
is.decStackSize( input.getStackSize() ); is.decStackSize( what.getStackSize() );
this.updateElapsedTime( (IAEItemStack) input );
this.updateElapsedTime( what );
this.markDirty(); this.markDirty();
this.postCraftingStatusChange( is ); this.postCraftingStatusChange( is );
if( this.finalOutput.equals( input ) ) if( this.finalOutput.equals( what ) )
{ {
this.finalOutput.decStackSize( input.getStackSize() ); IAEStack leftover = what;
this.finalOutput.decStackSize( what.getStackSize() );
if( this.myLastLink != null )
{
leftover = ( (CraftingLink) this.myLastLink ).injectItems( what, type );
}
if( this.finalOutput.getStackSize() <= 0 ) if( this.finalOutput.getStackSize() <= 0 )
{ {
this.completeJob(); this.completeJob();
@@ -297,19 +318,14 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
this.updateCPU(); this.updateCPU();
if( this.myLastLink != null ) return leftover; // ignore it.
{
return ( (CraftingLink) this.myLastLink ).injectItems( (IAEItemStack) input, type );
}
return input; // ignore it.
} }
// 2000 // 2000
return this.inventory.injectItems( what, type, src ); return this.inventory.injectItems( what, type, src );
} }
IAEItemStack insert = what.copy(); final IAEItemStack insert = what.copy();
insert.setStackSize( is.getStackSize() ); insert.setStackSize( is.getStackSize() );
what.decStackSize( is.getStackSize() ); what.decStackSize( is.getStackSize() );
@@ -317,26 +333,25 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
if( this.finalOutput.equals( insert ) ) if( this.finalOutput.equals( insert ) )
{ {
IAEStack leftover = input;
this.finalOutput.decStackSize( insert.getStackSize() ); this.finalOutput.decStackSize( insert.getStackSize() );
if( this.myLastLink != null )
{
what.add( ( (CraftingLink) this.myLastLink ).injectItems( insert.copy(), type ) );
leftover = what;
}
if( this.finalOutput.getStackSize() <= 0 ) if( this.finalOutput.getStackSize() <= 0 )
{ {
this.completeJob(); this.completeJob();
} }
this.updateCPU(); this.updateCPU();
this.markDirty();
if( this.myLastLink != null ) return leftover; // ignore it.
{
what.add( ( (CraftingLink) this.myLastLink ).injectItems( insert.copy(), type ) );
return what;
}
if( this.myLastLink != null )
{
return ( (CraftingLink) this.myLastLink ).injectItems( (IAEItemStack) input, type );
}
return input; // ignore it.
} }
this.inventory.injectItems( insert, type, src ); this.inventory.injectItems( insert, type, src );
@@ -351,29 +366,29 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
protected void postChange( IAEItemStack diff, BaseActionSource src ) protected void postChange( IAEItemStack diff, BaseActionSource src )
{ {
Iterator<Entry<IMEMonitorHandlerReceiver<IAEItemStack>, Object>> i = this.getListeners(); final Iterator<Entry<IMEMonitorHandlerReceiver<IAEItemStack>, Object>> i = this.getListeners();
ImmutableList<IAEItemStack> single = null;
// protect integrity // protect integrity
if( i.hasNext() ) if( i.hasNext() )
{ {
single = ImmutableList.of( diff.copy() ); final ImmutableList<IAEItemStack> single = ImmutableList.of( diff.copy() );
while( i.hasNext() )
{
final Entry<IMEMonitorHandlerReceiver<IAEItemStack>, Object> o = i.next();
final IMEMonitorHandlerReceiver<IAEItemStack> receiver = o.getKey();
if( receiver.isValid( o.getValue() ) )
{
receiver.postChange( null, single, src );
}
else
{
i.remove();
}
}
} }
while( i.hasNext() )
{
Entry<IMEMonitorHandlerReceiver<IAEItemStack>, Object> o = i.next();
IMEMonitorHandlerReceiver<IAEItemStack> receiver = o.getKey();
if( receiver.isValid( o.getValue() ) )
{
receiver.postChange( null, single, src );
}
else
{
i.remove();
}
}
} }
private void markDirty() private void markDirty()
@@ -388,11 +403,11 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
return; return;
} }
CraftingGridCache sg = this.getGrid().getCache( ICraftingGrid.class ); final CraftingGridCache sg = this.getGrid().getCache( ICraftingGrid.class );
if( sg.interestManager.containsKey( diff ) ) if( sg.interestManager.containsKey( diff ) )
{ {
Collection<CraftingWatcher> list = sg.interestManager.get( diff ); final Collection<CraftingWatcher> list = sg.interestManager.get( diff );
if( !list.isEmpty() ) if( !list.isEmpty() )
{ {
@@ -449,10 +464,10 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
{ {
for( TileCraftingTile r : this.tiles ) for( TileCraftingTile r : this.tiles )
{ {
IGridNode gn = r.getActionableNode(); final IGridNode gn = r.getActionableNode();
if( gn != null ) if( gn != null )
{ {
IGrid g = gn.getGrid(); final IGrid g = gn.getGrid();
if( g != null ) if( g != null )
{ {
return r.getActionableNode().getGrid(); return r.getActionableNode().getGrid();
@@ -476,8 +491,8 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
{ {
fuzz = fuzz.copy(); fuzz = fuzz.copy();
fuzz.setStackSize( g.getStackSize() ); fuzz.setStackSize( g.getStackSize() );
IAEItemStack ais = this.inventory.extractItems( fuzz, Actionable.SIMULATE, this.machineSrc ); final IAEItemStack ais = this.inventory.extractItems( fuzz, Actionable.SIMULATE, this.machineSrc );
ItemStack is = ais == null ? null : ais.getItemStack(); final ItemStack is = ais == null ? null : ais.getItemStack();
if( is != null && is.stackSize == g.getStackSize() ) if( is != null && is.stackSize == g.getStackSize() )
{ {
@@ -498,8 +513,8 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
} }
else else
{ {
IAEItemStack ais = this.inventory.extractItems( g.copy(), Actionable.SIMULATE, this.machineSrc ); final IAEItemStack ais = this.inventory.extractItems( g.copy(), Actionable.SIMULATE, this.machineSrc );
ItemStack is = ais == null ? null : ais.getItemStack(); final ItemStack is = ais == null ? null : ais.getItemStack();
if( is == null || is.stackSize < g.getStackSize() ) if( is == null || is.stackSize < g.getStackSize() )
{ {
@@ -529,7 +544,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
this.myLastLink = null; this.myLastLink = null;
this.tasks.clear(); this.tasks.clear();
ImmutableSet<IAEItemStack> items = ImmutableSet.copyOf( this.waitingFor ); final ImmutableSet<IAEItemStack> items = ImmutableSet.copyOf( this.waitingFor );
this.waitingFor.resetStatus(); this.waitingFor.resetStatus();
@@ -578,7 +593,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
} }
this.remainingOperations = this.accelerator + 1 - ( this.usedOps[0] + this.usedOps[1] + this.usedOps[2] ); this.remainingOperations = this.accelerator + 1 - ( this.usedOps[0] + this.usedOps[1] + this.usedOps[2] );
int started = this.remainingOperations; final int started = this.remainingOperations;
if( this.remainingOperations > 0 ) if( this.remainingOperations > 0 )
{ {
@@ -601,17 +616,20 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
private void executeCrafting( IEnergyGrid eg, CraftingGridCache cc ) private void executeCrafting( IEnergyGrid eg, CraftingGridCache cc )
{ {
Iterator<Entry<ICraftingPatternDetails, TaskProgress>> i = this.tasks.entrySet().iterator(); final Iterator<Entry<ICraftingPatternDetails, TaskProgress>> i = this.tasks.entrySet().iterator();
while( i.hasNext() ) while( i.hasNext() )
{ {
Entry<ICraftingPatternDetails, TaskProgress> e = i.next(); final Entry<ICraftingPatternDetails, TaskProgress> e = i.next();
if( e.getValue().value <= 0 ) if( e.getValue().value <= 0 )
{ {
i.remove(); i.remove();
continue; continue;
} }
ICraftingPatternDetails details = e.getKey(); final ICraftingPatternDetails details = e.getKey();
if( this.canCraft( details, details.getCondensedInputs() ) ) if( this.canCraft( details, details.getCondensedInputs() ) )
{ {
InventoryCrafting ic = null; InventoryCrafting ic = null;
@@ -627,9 +645,9 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
{ {
if( ic == null ) if( ic == null )
{ {
IAEItemStack[] input = details.getInputs(); final IAEItemStack[] input = details.getInputs();
double sum = 0; double sum = 0;
for( IAEItemStack anInput : input ) for( IAEItemStack anInput : input )
{ {
if( anInput != null ) if( anInput != null )
@@ -649,10 +667,10 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
for( int x = 0; x < input.length; x++ ) for( int x = 0; x < input.length; x++ )
{ {
if( input[x] != null ) if( input[x] != null )
{ {
found = false; found = false;
if( details.isCraftable() ) if( details.isCraftable() )
{ {
for( IAEItemStack fuzz : this.inventory.getItemList().findFuzzy( input[x], FuzzyMode.IGNORE_ALL ) ) for( IAEItemStack fuzz : this.inventory.getItemList().findFuzzy( input[x], FuzzyMode.IGNORE_ALL ) )
@@ -662,8 +680,8 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
if( details.isValidItemForSlot( x, fuzz.getItemStack(), this.getWorld() ) ) if( details.isValidItemForSlot( x, fuzz.getItemStack(), this.getWorld() ) )
{ {
IAEItemStack ais = this.inventory.extractItems( fuzz, Actionable.MODULATE, this.machineSrc ); final IAEItemStack ais = this.inventory.extractItems( fuzz, Actionable.MODULATE, this.machineSrc );
ItemStack is = ais == null ? null : ais.getItemStack(); final ItemStack is = ais == null ? null : ais.getItemStack();
if( is != null ) if( is != null )
{ {
@@ -677,8 +695,8 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
} }
else else
{ {
IAEItemStack ais = this.inventory.extractItems( input[x].copy(), Actionable.MODULATE, this.machineSrc ); final IAEItemStack ais = this.inventory.extractItems( input[x].copy(), Actionable.MODULATE, this.machineSrc );
ItemStack is = ais == null ? null : ais.getItemStack(); final ItemStack is = ais == null ? null : ais.getItemStack();
if( is != null ) if( is != null )
{ {
@@ -704,7 +722,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
// put stuff back.. // put stuff back..
for( int x = 0; x < ic.getSizeInventory(); x++ ) for( int x = 0; x < ic.getSizeInventory(); x++ )
{ {
ItemStack is = ic.getStackInSlot( x ); final ItemStack is = ic.getStackInSlot( x );
if( is != null ) if( is != null )
{ {
this.inventory.injectItems( AEItemStack.create( is ), Actionable.MODULATE, this.machineSrc ); this.inventory.injectItems( AEItemStack.create( is ), Actionable.MODULATE, this.machineSrc );
@@ -733,10 +751,10 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
for( int x = 0; x < ic.getSizeInventory(); x++ ) for( int x = 0; x < ic.getSizeInventory(); x++ )
{ {
ItemStack output = Platform.getContainerItem( ic.getStackInSlot( x ) ); final ItemStack output = Platform.getContainerItem( ic.getStackInSlot( x ) );
if( output != null ) if( output != null )
{ {
IAEItemStack cItem = AEItemStack.create( output ); final IAEItemStack cItem = AEItemStack.create( output );
this.postChange( cItem, this.machineSrc ); this.postChange( cItem, this.machineSrc );
this.waitingFor.add( cItem ); this.waitingFor.add( cItem );
this.postCraftingStatusChange( cItem ); this.postCraftingStatusChange( cItem );
@@ -766,7 +784,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
// put stuff back.. // put stuff back..
for( int x = 0; x < ic.getSizeInventory(); x++ ) for( int x = 0; x < ic.getSizeInventory(); x++ )
{ {
ItemStack is = ic.getStackInSlot( x ); final ItemStack is = ic.getStackInSlot( x );
if( is != null ) if( is != null )
{ {
this.inventory.injectItems( AEItemStack.create( is ), Actionable.MODULATE, this.machineSrc ); this.inventory.injectItems( AEItemStack.create( is ), Actionable.MODULATE, this.machineSrc );
@@ -779,14 +797,15 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
private void storeItems() private void storeItems()
{ {
IGrid g = this.getGrid(); final IGrid g = this.getGrid();
if( g == null ) if( g == null )
{ {
return; return;
} }
IStorageGrid sg = g.getCache( IStorageGrid.class ); final IStorageGrid sg = g.getCache( IStorageGrid.class );
IMEInventory<IAEItemStack> ii = sg.getItemInventory(); final IMEInventory<IAEItemStack> ii = sg.getItemInventory();
for( IAEItemStack is : this.inventory.getItemList() ) for( IAEItemStack is : this.inventory.getItemList() )
{ {
@@ -829,9 +848,9 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
return null; return null;
} }
IStorageGrid sg = g.getCache( IStorageGrid.class ); final IStorageGrid sg = g.getCache( IStorageGrid.class );
IMEInventory<IAEItemStack> storage = sg.getItemInventory(); final IMEInventory<IAEItemStack> storage = sg.getItemInventory();
MECraftingInventory ci = new MECraftingInventory( storage, true, false, false ); final MECraftingInventory ci = new MECraftingInventory( storage, true, false, false );
try try
{ {
@@ -845,7 +864,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
this.markDirty(); this.markDirty();
this.updateCPU(); this.updateCPU();
String craftID = this.generateCraftingID(); final String craftID = this.generateCraftingID();
this.myLastLink = new CraftingLink( this.generateLinkData( craftID, requestingMachine == null, false ), this ); this.myLastLink = new CraftingLink( this.generateLinkData( craftID, requestingMachine == null, false ), this );
@@ -856,12 +875,12 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
return this.myLastLink; return this.myLastLink;
} }
ICraftingLink whatLink = new CraftingLink( this.generateLinkData( craftID, false, true ), requestingMachine ); final ICraftingLink whatLink = new CraftingLink( this.generateLinkData( craftID, false, true ), requestingMachine );
this.submitLink( this.myLastLink ); this.submitLink( this.myLastLink );
this.submitLink( whatLink ); this.submitLink( whatLink );
IItemList<IAEItemStack> list = AEApi.instance().storage().createItemList(); final IItemList<IAEItemStack> list = AEApi.instance().storage().createItemList();
this.getListOfItem( list, CraftingItemList.ALL ); this.getListOfItem( list, CraftingItemList.ALL );
for( IAEItemStack ge : list ) for( IAEItemStack ge : list )
{ {
@@ -889,7 +908,8 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
@Override @Override
public boolean isBusy() public boolean isBusy()
{ {
Iterator<Entry<ICraftingPatternDetails, TaskProgress>> i = this.tasks.entrySet().iterator(); final Iterator<Entry<ICraftingPatternDetails, TaskProgress>> i = this.tasks.entrySet().iterator();
while( i.hasNext() ) while( i.hasNext() )
{ {
if( i.next().getValue().value <= 0 ) if( i.next().getValue().value <= 0 )
@@ -927,13 +947,14 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
public boolean isActive() public boolean isActive()
{ {
TileCraftingTile core = this.getCore(); final TileCraftingTile core = this.getCore();
if( core == null ) if( core == null )
{ {
return false; return false;
} }
IGridNode node = core.getActionableNode(); final IGridNode node = core.getActionableNode();
if( node == null ) if( node == null )
{ {
return false; return false;
@@ -944,16 +965,16 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
private String generateCraftingID() private String generateCraftingID()
{ {
long now = System.currentTimeMillis(); final long now = System.currentTimeMillis();
int hash = System.identityHashCode( this ); final int hash = System.identityHashCode( this );
int hmm = this.finalOutput == null ? 0 : this.finalOutput.hashCode(); final int hmm = this.finalOutput == null ? 0 : this.finalOutput.hashCode();
return Long.toString( now, Character.MAX_RADIX ) + '-' + Integer.toString( hash, Character.MAX_RADIX ) + '-' + Integer.toString( hmm, Character.MAX_RADIX ); return Long.toString( now, Character.MAX_RADIX ) + '-' + Integer.toString( hash, Character.MAX_RADIX ) + '-' + Integer.toString( hmm, Character.MAX_RADIX );
} }
private NBTTagCompound generateLinkData( String craftingID, boolean standalone, boolean req ) private NBTTagCompound generateLinkData( String craftingID, boolean standalone, boolean req )
{ {
NBTTagCompound tag = new NBTTagCompound(); final NBTTagCompound tag = new NBTTagCompound();
tag.setString( "CraftID", craftingID ); tag.setString( "CraftID", craftingID );
tag.setBoolean( "canceled", false ); tag.setBoolean( "canceled", false );
@@ -968,7 +989,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
{ {
if( this.getGrid() != null ) if( this.getGrid() != null )
{ {
CraftingGridCache cc = this.getGrid().getCache( ICraftingGrid.class ); final CraftingGridCache cc = this.getGrid().getCache( ICraftingGrid.class );
cc.addLink( (CraftingLink) myLastLink2 ); cc.addLink( (CraftingLink) myLastLink2 );
} }
} }
@@ -1045,6 +1066,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
public IAEItemStack getItemStack( IAEItemStack what, CraftingItemList storage2 ) public IAEItemStack getItemStack( IAEItemStack what, CraftingItemList storage2 )
{ {
IAEItemStack is; IAEItemStack is;
switch( storage2 ) switch( storage2 )
{ {
case STORAGE: case STORAGE:
@@ -1094,15 +1116,15 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
if( this.myLastLink != null ) if( this.myLastLink != null )
{ {
NBTTagCompound link = new NBTTagCompound(); final NBTTagCompound link = new NBTTagCompound();
this.myLastLink.writeToNBT( link ); this.myLastLink.writeToNBT( link );
data.setTag( "link", link ); data.setTag( "link", link );
} }
NBTTagList list = new NBTTagList(); final NBTTagList list = new NBTTagList();
for( Entry<ICraftingPatternDetails, TaskProgress> e : this.tasks.entrySet() ) for( Entry<ICraftingPatternDetails, TaskProgress> e : this.tasks.entrySet() )
{ {
NBTTagCompound item = this.writeItem( AEItemStack.create( e.getKey().getPattern() ) ); final NBTTagCompound item = this.writeItem( AEItemStack.create( e.getKey().getPattern() ) );
item.setLong( "craftingProgress", e.getValue().value ); item.setLong( "craftingProgress", e.getValue().value );
list.appendTag( item ); list.appendTag( item );
} }
@@ -1117,7 +1139,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
private NBTTagCompound writeItem( IAEItemStack finalOutput2 ) private NBTTagCompound writeItem( IAEItemStack finalOutput2 )
{ {
NBTTagCompound out = new NBTTagCompound(); final NBTTagCompound out = new NBTTagCompound();
if( finalOutput2 != null ) if( finalOutput2 != null )
{ {
@@ -1129,7 +1151,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
private NBTTagList writeList( IItemList<IAEItemStack> myList ) private NBTTagList writeList( IItemList<IAEItemStack> myList )
{ {
NBTTagList out = new NBTTagList(); final NBTTagList out = new NBTTagList();
for( IAEItemStack ais : myList ) for( IAEItemStack ais : myList )
{ {
@@ -1141,7 +1163,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
public void done() public void done()
{ {
TileCraftingTile core = this.getCore(); final TileCraftingTile core = this.getCore();
core.isCoreBlock = true; core.isCoreBlock = true;
@@ -1168,23 +1190,23 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
if( data.hasKey( "link" ) ) if( data.hasKey( "link" ) )
{ {
NBTTagCompound link = data.getCompoundTag( "link" ); final NBTTagCompound link = data.getCompoundTag( "link" );
this.myLastLink = new CraftingLink( link, this ); this.myLastLink = new CraftingLink( link, this );
this.submitLink( this.myLastLink ); this.submitLink( this.myLastLink );
} }
NBTTagList list = data.getTagList( "tasks", 10 ); final NBTTagList list = data.getTagList( "tasks", 10 );
for( int x = 0; x < list.tagCount(); x++ ) for( int x = 0; x < list.tagCount(); x++ )
{ {
NBTTagCompound item = list.getCompoundTagAt( x ); final NBTTagCompound item = list.getCompoundTagAt( x );
IAEItemStack pattern = AEItemStack.loadItemStackFromNBT( item ); final IAEItemStack pattern = AEItemStack.loadItemStackFromNBT( item );
if( pattern != null && pattern.getItem() instanceof ICraftingPatternItem ) if( pattern != null && pattern.getItem() instanceof ICraftingPatternItem )
{ {
ICraftingPatternItem cpi = (ICraftingPatternItem) pattern.getItem(); final ICraftingPatternItem cpi = (ICraftingPatternItem) pattern.getItem();
ICraftingPatternDetails details = cpi.getPatternForItem( pattern.getItemStack(), this.getWorld() ); final ICraftingPatternDetails details = cpi.getPatternForItem( pattern.getItemStack(), this.getWorld() );
if( details != null ) if( details != null )
{ {
TaskProgress tp = new TaskProgress(); final TaskProgress tp = new TaskProgress();
tp.value = item.getLong( "craftingProgress" ); tp.value = item.getLong( "craftingProgress" );
this.tasks.put( details, tp ); this.tasks.put( details, tp );
} }
@@ -1225,7 +1247,8 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
private IItemList<IAEItemStack> readList( NBTTagList tag ) private IItemList<IAEItemStack> readList( NBTTagList tag )
{ {
IItemList<IAEItemStack> out = AEApi.instance().storage().createItemList(); final IItemList<IAEItemStack> out = AEApi.instance().storage().createItemList();
if( tag == null ) if( tag == null )
{ {
return out; return out;
@@ -1233,7 +1256,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
for( int x = 0; x < tag.tagCount(); x++ ) for( int x = 0; x < tag.tagCount(); x++ )
{ {
IAEItemStack ais = AEItemStack.loadItemStackFromNBT( tag.getCompoundTagAt( x ) ); final IAEItemStack ais = AEItemStack.loadItemStackFromNBT( tag.getCompoundTagAt( x ) );
if( ais != null ) if( ais != null )
{ {
out.add( ais ); out.add( ais );
@@ -1250,13 +1273,14 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
public boolean isMaking( IAEItemStack what ) public boolean isMaking( IAEItemStack what )
{ {
IAEItemStack wat = this.waitingFor.findPrecise( what ); final IAEItemStack wat = this.waitingFor.findPrecise( what );
return wat != null && wat.getStackSize() > 0; return wat != null && wat.getStackSize() > 0;
} }
public void breakCluster() public void breakCluster()
{ {
TileCraftingTile t = this.getCore(); final TileCraftingTile t = this.getCore();
if( t != null ) if( t != null )
{ {
t.breakCluster(); t.breakCluster();
@@ -1267,9 +1291,10 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
{ {
this.lastTime = System.nanoTime(); this.lastTime = System.nanoTime();
this.elapsedTime = 0; this.elapsedTime = 0;
int itemCount = 0;
IItemList<IAEItemStack> list = AEApi.instance().storage().createItemList(); int itemCount = 0;
final IItemList<IAEItemStack> list = AEApi.instance().storage().createItemList();
this.getListOfItem( list, CraftingItemList.ACTIVE ); this.getListOfItem( list, CraftingItemList.ACTIVE );
this.getListOfItem( list, CraftingItemList.PENDING ); this.getListOfItem( list, CraftingItemList.PENDING );
@@ -1307,7 +1332,6 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
static class TaskProgress static class TaskProgress
{ {
long value; long value;
} }
} }
@@ -113,11 +113,16 @@ public class NetworkInventoryHandler<T extends IAEStack<T>> implements IMEInvent
} }
} }
// We need to ignore prioritized inventories in the second pass. If they were not able to store everything
// during the first pass, they will do so in the second, but as this is stateless we will just report twice
// the amount of storable items.
// ignores craftingcache on the second pass.
ii = invList.iterator(); ii = invList.iterator();
while( ii.hasNext() && input != null ) while( ii.hasNext() && input != null )
{ {
IMEInventoryHandler<T> inv = ii.next(); IMEInventoryHandler<T> inv = ii.next();
if( inv.validForPass( 2 ) && inv.canAccept( input ) )// ignore crafting on the second pass.
if( inv.validForPass( 2 ) && inv.canAccept( input ) && !inv.isPrioritized( input ) )
{ {
input = inv.injectItems( input, type, src ); input = inv.injectItems( input, type, src );
} }
@@ -87,7 +87,7 @@ public class PartAnnihilationPlane extends PartBasicState implements IGridTickab
} }
@Override @Override
public TickRateModulation call(World world) throws Exception public TickRateModulation call( World world ) throws Exception
{ {
this.breaking = false; this.breaking = false;
return this.breakBlock( true ); return this.breakBlock( true );
@@ -359,7 +359,36 @@ public class PartAnnihilationPlane extends PartBasicState implements IGridTickab
entityItem.getEntityItem().stackSize = newStackSize; entityItem.getEntityItem().stackSize = newStackSize;
return changed; return changed;
}
/**
* Spawns an overflow item as new {@link EntityItem} into the {@link World}
*
* @param w the world to spawn it
* @param x x coordinate
* @param y y coordinate
* @param z coordinate
* @param overflow the item to spawn
*/
private void spawnOverflow( IAEItemStack overflow )
{
if( overflow == null )
{
return;
}
final TileEntity te = this.getTile();
final WorldServer w = (WorldServer) te.getWorldObj();
final double x = te.xCoord + this.side.offsetX + .5d;
final double y = te.yCoord + this.side.offsetY + .5d;
final double z = te.zCoord + this.side.offsetZ + .5d;
final EntityItem overflowEntity = new EntityItem( w, x, y, z, overflow.getItemStack() );
overflowEntity.motionX = 0;
overflowEntity.motionY = 0;
overflowEntity.motionZ = 0;
w.spawnEntityInWorld( overflowEntity );
} }
protected boolean isAnnihilationPlane( TileEntity blockTileEntity, ForgeDirection side ) protected boolean isAnnihilationPlane( TileEntity blockTileEntity, ForgeDirection side )
@@ -545,7 +574,8 @@ public class PartAnnihilationPlane extends PartBasicState implements IGridTickab
for( final ItemStack snaggedItem : items ) for( final ItemStack snaggedItem : items )
{ {
this.storeItemStack( snaggedItem ); final IAEItemStack overflow = this.storeItemStack( snaggedItem );
this.spawnOverflow( overflow );
} }
} }
} }
@@ -54,6 +54,7 @@ import appeng.me.GridAccessException;
import appeng.util.InventoryAdaptor; import appeng.util.InventoryAdaptor;
import appeng.util.Platform; import appeng.util.Platform;
import appeng.util.inv.IInventoryDestination; import appeng.util.inv.IInventoryDestination;
import appeng.util.item.AEItemStack;
public class PartImportBus extends PartSharedItemBus implements IInventoryDestination public class PartImportBus extends PartSharedItemBus implements IInventoryDestination
@@ -238,8 +239,8 @@ public class PartImportBus extends PartSharedItemBus implements IInventoryDestin
private boolean importStuff( InventoryAdaptor myAdaptor, IAEItemStack whatToImport, IMEMonitor<IAEItemStack> inv, IEnergySource energy, FuzzyMode fzMode ) private boolean importStuff( InventoryAdaptor myAdaptor, IAEItemStack whatToImport, IMEMonitor<IAEItemStack> inv, IEnergySource energy, FuzzyMode fzMode )
{ {
final int toSend = Math.min( this.itemToSend, 64 ); final int toSend = this.calculateMaximumAmountToImport( myAdaptor, whatToImport, inv, fzMode );
ItemStack newItems; final ItemStack newItems;
if( this.getInstalledUpgrades( Upgrades.FUZZY ) > 0 ) if( this.getInstalledUpgrades( Upgrades.FUZZY ) > 0 )
{ {
@@ -264,8 +265,8 @@ public class PartImportBus extends PartSharedItemBus implements IInventoryDestin
this.lastItemChecked.setStackSize( newItems.stackSize ); this.lastItemChecked.setStackSize( newItems.stackSize );
} }
IAEItemStack failed = Platform.poweredInsert( energy, this.destination, this.lastItemChecked, this.source ); final IAEItemStack failed = Platform.poweredInsert( energy, this.destination, this.lastItemChecked, this.source );
// destination.injectItems( lastItemChecked, Actionable.MODULATE );
if( failed != null ) if( failed != null )
{ {
myAdaptor.addItems( failed.getItemStack() ); myAdaptor.addItems( failed.getItemStack() );
@@ -284,6 +285,41 @@ public class PartImportBus extends PartSharedItemBus implements IInventoryDestin
return false; return false;
} }
private int calculateMaximumAmountToImport( InventoryAdaptor myAdaptor, IAEItemStack whatToImport, IMEMonitor<IAEItemStack> inv, FuzzyMode fzMode )
{
final int toSend = Math.min( this.itemToSend, 64 );
final ItemStack simResult;
final IAEItemStack itemAmountNotStorable;
final ItemStack itemStackToImport;
if( whatToImport == null )
{
itemStackToImport = null;
}
else
{
itemStackToImport = whatToImport.getItemStack();
}
if( this.getInstalledUpgrades( Upgrades.FUZZY ) > 0 )
{
simResult = myAdaptor.simulateSimilarRemove( toSend, itemStackToImport, fzMode, this.configDestination( inv ) );
itemAmountNotStorable = this.destination.injectItems( AEItemStack.create( simResult ), Actionable.SIMULATE, this.source );
}
else
{
simResult = myAdaptor.simulateRemove( toSend, itemStackToImport, this.configDestination( inv ) );
itemAmountNotStorable = this.destination.injectItems( AEItemStack.create( simResult ), Actionable.SIMULATE, this.source );
}
if( itemAmountNotStorable != null )
{
return (int) Math.min( simResult.stackSize - itemAmountNotStorable.getStackSize(), toSend );
}
return toSend;
}
private IInventoryDestination configDestination( IMEMonitor<IAEItemStack> itemInventory ) private IInventoryDestination configDestination( IMEMonitor<IAEItemStack> itemInventory )
{ {
this.destination = itemInventory; this.destination = itemInventory;
@@ -77,6 +77,7 @@ import appeng.core.sync.GuiBridge;
import appeng.helpers.IInterfaceHost; import appeng.helpers.IInterfaceHost;
import appeng.helpers.IPriorityHost; import appeng.helpers.IPriorityHost;
import appeng.helpers.Reflected; import appeng.helpers.Reflected;
import appeng.integration.IntegrationType;
import appeng.me.GridAccessException; import appeng.me.GridAccessException;
import appeng.me.storage.MEInventoryHandler; import appeng.me.storage.MEInventoryHandler;
import appeng.me.storage.MEMonitorIInventory; import appeng.me.storage.MEMonitorIInventory;
@@ -90,7 +91,7 @@ import appeng.util.prioitylist.FuzzyPriorityList;
import appeng.util.prioitylist.PrecisePriorityList; import appeng.util.prioitylist.PrecisePriorityList;
@Interface( iname = "BuildCraftTransport", iface = "buildcraft.api.transport.IPipeConnection" ) @Interface( iname = IntegrationType.BuildCraftTransport, iface = "buildcraft.api.transport.IPipeConnection" )
public class PartStorageBus extends PartUpgradeable implements IGridTickable, ICellContainer, IMEMonitorHandlerReceiver<IAEItemStack>, IPipeConnection, IPriorityHost public class PartStorageBus extends PartUpgradeable implements IGridTickable, ICellContainer, IMEMonitorHandlerReceiver<IAEItemStack>, IPipeConnection, IPriorityHost
{ {
final BaseActionSource mySrc; final BaseActionSource mySrc;
@@ -565,7 +566,7 @@ public class PartStorageBus extends PartUpgradeable implements IGridTickable, IC
} }
@Override @Override
@Method( iname = "BuildCraftTransport" ) @Method( iname = IntegrationType.BuildCraftTransport )
public ConnectOverride overridePipeConnection( PipeType type, ForgeDirection with ) public ConnectOverride overridePipeConnection( PipeType type, ForgeDirection with )
{ {
return type == PipeType.ITEM && with == this.side ? ConnectOverride.CONNECT : ConnectOverride.DISCONNECT; return type == PipeType.ITEM && with == this.side ? ConnectOverride.CONNECT : ConnectOverride.DISCONNECT;
@@ -32,6 +32,7 @@ import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
import appeng.api.config.PowerUnits; import appeng.api.config.PowerUnits;
import appeng.integration.IntegrationType;
import appeng.me.GridAccessException; import appeng.me.GridAccessException;
import appeng.me.cache.helpers.TunnelCollection; import appeng.me.cache.helpers.TunnelCollection;
import appeng.transformer.annotations.Integration.Interface; import appeng.transformer.annotations.Integration.Interface;
@@ -39,7 +40,7 @@ import appeng.transformer.annotations.Integration.InterfaceList;
import appeng.util.Platform; import appeng.util.Platform;
@InterfaceList( value = { @Interface( iface = "ic2.api.energy.tile.IEnergySink", iname = "IC2" ), @Interface( iface = "ic2.api.energy.tile.IEnergySource", iname = "IC2" ) } ) @InterfaceList( value = { @Interface( iface = "ic2.api.energy.tile.IEnergySink", iname = IntegrationType.IC2 ), @Interface( iface = "ic2.api.energy.tile.IEnergySource", iname = IntegrationType.IC2 ) } )
public class PartP2PIC2Power extends PartP2PTunnel<PartP2PIC2Power> implements ic2.api.energy.tile.IEnergySink, ic2.api.energy.tile.IEnergySource public class PartP2PIC2Power extends PartP2PTunnel<PartP2PIC2Power> implements ic2.api.energy.tile.IEnergySink, ic2.api.energy.tile.IEnergySource
{ {
@@ -61,7 +61,7 @@ import appeng.util.inv.WrapperChainedInventory;
import appeng.util.inv.WrapperMCISidedInventory; import appeng.util.inv.WrapperMCISidedInventory;
@Interface( iface = "buildcraft.api.transport.IPipeConnection", iname = "BuildCraftTransport" ) @Interface( iface = "buildcraft.api.transport.IPipeConnection", iname = IntegrationType.BuildCraftTransport )
public class PartP2PItems extends PartP2PTunnel<PartP2PItems> implements IPipeConnection, ISidedInventory, IGridTickable public class PartP2PItems extends PartP2PTunnel<PartP2PItems> implements IPipeConnection, ISidedInventory, IGridTickable
{ {
@@ -384,7 +384,7 @@ public class PartP2PItems extends PartP2PTunnel<PartP2PItems> implements IPipeCo
} }
@Override @Override
@Method( iname = "BuildCraftTransport" ) @Method( iname = IntegrationType.BuildCraftTransport )
public ConnectOverride overridePipeConnection( PipeType type, ForgeDirection with ) public ConnectOverride overridePipeConnection( PipeType type, ForgeDirection with )
{ {
return this.side == with && type == PipeType.ITEM ? ConnectOverride.CONNECT : ConnectOverride.DEFAULT; return this.side == with && type == PipeType.ITEM ? ConnectOverride.CONNECT : ConnectOverride.DEFAULT;
@@ -54,7 +54,7 @@ import appeng.transformer.annotations.Integration.InterfaceList;
import appeng.util.IWorldCallable; import appeng.util.IWorldCallable;
@InterfaceList( value = { @Interface( iface = "li.cil.oc.api.network.Environment", iname = "OpenComputers" ), @Interface( iface = "li.cil.oc.api.network.SidedEnvironment", iname = "OpenComputers" ) } ) @InterfaceList( value = { @Interface( iface = "li.cil.oc.api.network.Environment", iname = IntegrationType.OpenComputers ), @Interface( iface = "li.cil.oc.api.network.SidedEnvironment", iname = IntegrationType.OpenComputers ) } )
public final class PartP2POpenComputers extends PartP2PTunnel<PartP2POpenComputers> implements IGridTickable, Environment, SidedEnvironment public final class PartP2POpenComputers extends PartP2PTunnel<PartP2POpenComputers> implements IGridTickable, Environment, SidedEnvironment
{ {
@Nullable @Nullable
@@ -38,11 +38,12 @@ import appeng.api.networking.ticking.IGridTickable;
import appeng.api.networking.ticking.TickRateModulation; import appeng.api.networking.ticking.TickRateModulation;
import appeng.api.networking.ticking.TickingRequest; import appeng.api.networking.ticking.TickingRequest;
import appeng.core.settings.TickRates; import appeng.core.settings.TickRates;
import appeng.integration.IntegrationType;
import appeng.transformer.annotations.Integration.Interface; import appeng.transformer.annotations.Integration.Interface;
import appeng.util.Platform; import appeng.util.Platform;
@Interface( iface = "pneumaticCraft.api.tileentity.ISidedPneumaticMachine", iname = "PneumaticCraft" ) @Interface( iface = "pneumaticCraft.api.tileentity.ISidedPneumaticMachine", iname = IntegrationType.PneumaticCraft )
public final class PartP2PPressure extends PartP2PTunnel<PartP2PPressure> implements ISidedPneumaticMachine, IGridTickable public final class PartP2PPressure extends PartP2PTunnel<PartP2PPressure> implements ISidedPneumaticMachine, IGridTickable
{ {
private static final String PRESSURE_NBT_TAG = "pneumaticCraft"; private static final String PRESSURE_NBT_TAG = "pneumaticCraft";
@@ -33,6 +33,7 @@ import cpw.mods.fml.relauncher.SideOnly;
import cofh.api.energy.IEnergyReceiver; import cofh.api.energy.IEnergyReceiver;
import appeng.api.config.PowerUnits; import appeng.api.config.PowerUnits;
import appeng.integration.IntegrationType;
import appeng.integration.modules.helpers.NullRFHandler; import appeng.integration.modules.helpers.NullRFHandler;
import appeng.me.GridAccessException; import appeng.me.GridAccessException;
import appeng.transformer.annotations.Integration.Interface; import appeng.transformer.annotations.Integration.Interface;
@@ -40,7 +41,7 @@ import appeng.transformer.annotations.Integration.InterfaceList;
import appeng.util.Platform; import appeng.util.Platform;
@InterfaceList( value = { @Interface( iface = "cofh.api.energy.IEnergyReceiver", iname = "RF" ) } ) @InterfaceList( value = { @Interface( iface = "cofh.api.energy.IEnergyReceiver", iname = IntegrationType.RF ) } )
public final class PartP2PRFPower extends PartP2PTunnel<PartP2PRFPower> implements IEnergyReceiver public final class PartP2PRFPower extends PartP2PTunnel<PartP2PRFPower> implements IEnergyReceiver
{ {
private static final ThreadLocal<Stack<PartP2PRFPower>> THREAD_STACK = new ThreadLocal<Stack<PartP2PRFPower>>(); private static final ThreadLocal<Stack<PartP2PRFPower>> THREAD_STACK = new ThreadLocal<Stack<PartP2PRFPower>>();
@@ -79,6 +79,7 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
{ {
private static final IWideReadableNumberConverter NUMBER_CONVERTER = ReadableNumberConverter.INSTANCE; private static final IWideReadableNumberConverter NUMBER_CONVERTER = ReadableNumberConverter.INSTANCE;
private IAEItemStack configuredItem; private IAEItemStack configuredItem;
private String lastHumanReadableText;
private boolean isLocked; private boolean isLocked;
private IStackWatcher myWatcher; private IStackWatcher myWatcher;
@SideOnly( Side.CLIENT ) @SideOnly( Side.CLIENT )
@@ -177,6 +178,7 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
final TileEntity te = this.tile; final TileEntity te = this.tile;
final ItemStack eq = player.getCurrentEquippedItem(); final ItemStack eq = player.getCurrentEquippedItem();
if( Platform.isWrench( player, eq, te.xCoord, te.yCoord, te.zCoord ) ) if( Platform.isWrench( player, eq, te.xCoord, te.yCoord, te.zCoord ) )
{ {
this.isLocked = !this.isLocked; this.isLocked = !this.isLocked;
@@ -249,6 +251,7 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
protected void finalize() throws Throwable protected void finalize() throws Throwable
{ {
super.finalize(); super.finalize();
if( this.dspList != null ) if( this.dspList != null )
{ {
GLAllocation.deleteDisplayLists( this.dspList ); GLAllocation.deleteDisplayLists( this.dspList );
@@ -272,6 +275,7 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
} }
final IAEItemStack ais = (IAEItemStack) this.getDisplayed(); final IAEItemStack ais = (IAEItemStack) this.getDisplayed();
if( ais != null ) if( ais != null )
{ {
GL11.glPushMatrix(); GL11.glPushMatrix();
@@ -310,46 +314,41 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
// GL11.glPushAttrib( GL11.GL_ALL_ATTRIB_BITS ); // GL11.glPushAttrib( GL11.GL_ALL_ATTRIB_BITS );
final ForgeDirection d = this.side; final ForgeDirection d = this.side;
GL11.glTranslated( d.offsetX * 0.77, d.offsetY * 0.77, d.offsetZ * 0.77 ); GL11.glTranslated( d.offsetX * 0.77, d.offsetY * 0.77, d.offsetZ * 0.77 );
if( d == ForgeDirection.UP ) switch( d )
{ {
GL11.glScalef( 1.0f, -1.0f, 1.0f ); case UP:
GL11.glRotatef( 90.0f, 1.0f, 0.0f, 0.0f ); GL11.glScalef( 1.0f, -1.0f, 1.0f );
GL11.glRotatef( this.getSpin() * 90.0F, 0, 0, 1 ); GL11.glRotatef( 90.0f, 1.0f, 0.0f, 0.0f );
GL11.glRotatef( this.getSpin() * 90.0F, 0, 0, 1 );
break;
case DOWN:
GL11.glScalef( 1.0f, -1.0f, 1.0f );
GL11.glRotatef( -90.0f, 1.0f, 0.0f, 0.0f );
GL11.glRotatef( this.getSpin() * -90.0F, 0, 0, 1 );
break;
case EAST:
GL11.glScalef( -1.0f, -1.0f, -1.0f );
GL11.glRotatef( -90.0f, 0.0f, 1.0f, 0.0f );
break;
case WEST:
GL11.glScalef( -1.0f, -1.0f, -1.0f );
GL11.glRotatef( 90.0f, 0.0f, 1.0f, 0.0f );
break;
case NORTH:
GL11.glScalef( -1.0f, -1.0f, -1.0f );
break;
case SOUTH:
GL11.glScalef( -1.0f, -1.0f, -1.0f );
GL11.glRotatef( 180.0f, 0.0f, 1.0f, 0.0f );
break;
default:
break;
} }
if( d == ForgeDirection.DOWN )
{
GL11.glScalef( 1.0f, -1.0f, 1.0f );
GL11.glRotatef( -90.0f, 1.0f, 0.0f, 0.0f );
GL11.glRotatef( this.getSpin() * -90.0F, 0, 0, 1 );
}
if( d == ForgeDirection.EAST )
{
GL11.glScalef( -1.0f, -1.0f, -1.0f );
GL11.glRotatef( -90.0f, 0.0f, 1.0f, 0.0f );
}
if( d == ForgeDirection.WEST )
{
GL11.glScalef( -1.0f, -1.0f, -1.0f );
GL11.glRotatef( 90.0f, 0.0f, 1.0f, 0.0f );
}
if( d == ForgeDirection.NORTH )
{
GL11.glScalef( -1.0f, -1.0f, -1.0f );
}
if( d == ForgeDirection.SOUTH )
{
GL11.glScalef( -1.0f, -1.0f, -1.0f );
GL11.glRotatef( 180.0f, 0.0f, 1.0f, 0.0f );
}
// GL11.glPushMatrix();
try try
{ {
final ItemStack sis = ais.getItemStack(); final ItemStack sis = ais.getItemStack();
@@ -379,8 +378,6 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
GL11.glEnable( GL12.GL_RESCALE_NORMAL ); GL11.glEnable( GL12.GL_RESCALE_NORMAL );
} }
// GL11.glPopMatrix();
GL11.glTranslatef( 0.0f, 0.14f, -0.24f ); GL11.glTranslatef( 0.0f, 0.14f, -0.24f );
GL11.glScalef( 1.0f / 62.0f, 1.0f / 62.0f, 1.0f / 62.0f ); GL11.glScalef( 1.0f / 62.0f, 1.0f / 62.0f, 1.0f / 62.0f );
@@ -422,7 +419,14 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
this.configuredItem.setStackSize( fullStack.getStackSize() ); this.configuredItem.setStackSize( fullStack.getStackSize() );
} }
this.getHost().markForUpdate(); final long stackSize = this.configuredItem.getStackSize();
final String humanReadableText = NUMBER_CONVERTER.toWideReadableForm( stackSize );
if( !humanReadableText.equals( this.lastHumanReadableText ) )
{
this.lastHumanReadableText = humanReadableText;
this.getHost().markForUpdate();
}
} }
} }
+1 -1
View File
@@ -34,7 +34,7 @@ import appeng.transformer.annotations.Integration.Interface;
import appeng.util.Platform; import appeng.util.Platform;
@Interface( iname = "IC2", iface = "ic2.api.energy.tile.IEnergySink" ) @Interface( iname = IntegrationType.IC2, iface = "ic2.api.energy.tile.IEnergySink" )
public abstract class IC2 extends AERootPoweredTile implements IEnergySink public abstract class IC2 extends AERootPoweredTile implements IEnergySink
{ {
@@ -24,10 +24,11 @@ import net.minecraftforge.common.util.ForgeDirection;
import mekanism.api.energy.IStrictEnergyAcceptor; import mekanism.api.energy.IStrictEnergyAcceptor;
import appeng.api.config.PowerUnits; import appeng.api.config.PowerUnits;
import appeng.integration.IntegrationType;
import appeng.transformer.annotations.Integration.Interface; import appeng.transformer.annotations.Integration.Interface;
@Interface( iname = "Mekanism", iface = "mekanism.api.energy.IStrictEnergyAcceptor" ) @Interface( iname = IntegrationType.Mekanism, iface = "mekanism.api.energy.IStrictEnergyAcceptor" )
public abstract class MekJoules extends RedstoneFlux implements IStrictEnergyAcceptor public abstract class MekJoules extends RedstoneFlux implements IStrictEnergyAcceptor
{ {
@@ -24,10 +24,11 @@ import net.minecraftforge.common.util.ForgeDirection;
import cofh.api.energy.IEnergyReceiver; import cofh.api.energy.IEnergyReceiver;
import appeng.api.config.PowerUnits; import appeng.api.config.PowerUnits;
import appeng.integration.IntegrationType;
import appeng.transformer.annotations.Integration.Interface; import appeng.transformer.annotations.Integration.Interface;
@Interface( iname = "RF", iface = "cofh.api.energy.IEnergyReceiver" ) @Interface( iname = IntegrationType.RF, iface = "cofh.api.energy.IEnergyReceiver" )
public abstract class RedstoneFlux extends RotaryCraft implements IEnergyReceiver public abstract class RedstoneFlux extends RotaryCraft implements IEnergyReceiver
{ {
@Override @Override
@@ -28,6 +28,7 @@ import Reika.RotaryCraft.API.Interfaces.Transducerable;
import Reika.RotaryCraft.API.Power.AdvancedShaftPowerReceiver; import Reika.RotaryCraft.API.Power.AdvancedShaftPowerReceiver;
import appeng.api.config.PowerUnits; import appeng.api.config.PowerUnits;
import appeng.integration.IntegrationType;
import appeng.tile.TileEvent; import appeng.tile.TileEvent;
import appeng.tile.events.TileEventType; import appeng.tile.events.TileEventType;
import appeng.transformer.annotations.Integration.Interface; import appeng.transformer.annotations.Integration.Interface;
@@ -35,7 +36,7 @@ import appeng.transformer.annotations.Integration.InterfaceList;
import appeng.transformer.annotations.Integration.Method; import appeng.transformer.annotations.Integration.Method;
@InterfaceList( value = { @Interface( iname = "RotaryCraft", iface = "Reika.RotaryCraft.API.Power.AdvancedShaftPowerReceiver" ), @Interface( iname = "RotaryCraft", iface = "Reika.RotaryCraft.API.Interfaces.Transducerable" ) } ) @InterfaceList( value = { @Interface( iname = IntegrationType.RotaryCraft, iface = "Reika.RotaryCraft.API.Power.AdvancedShaftPowerReceiver" ), @Interface( iname = IntegrationType.RotaryCraft, iface = "Reika.RotaryCraft.API.Interfaces.Transducerable" ) } )
public abstract class RotaryCraft extends IC2 implements AdvancedShaftPowerReceiver, Transducerable public abstract class RotaryCraft extends IC2 implements AdvancedShaftPowerReceiver, Transducerable
{ {
@@ -47,7 +48,7 @@ public abstract class RotaryCraft extends IC2 implements AdvancedShaftPowerRecei
private long currentPower = 0; private long currentPower = 0;
@TileEvent( TileEventType.TICK ) @TileEvent( TileEventType.TICK )
@Method( iname = "RotaryCraft" ) @Method( iname = IntegrationType.RotaryCraft )
public void Tick_RotaryCraft() public void Tick_RotaryCraft()
{ {
if( this.worldObj != null && !this.worldObj.isRemote && this.currentPower > 0 ) if( this.worldObj != null && !this.worldObj.isRemote && this.currentPower > 0 )
@@ -24,6 +24,8 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import appeng.integration.IntegrationType;
public @interface Integration public @interface Integration
{ {
@@ -40,13 +42,13 @@ public @interface Integration
{ {
String iface(); String iface();
String iname(); IntegrationType iname();
} }
@Retention( RetentionPolicy.RUNTIME ) @Retention( RetentionPolicy.RUNTIME )
@Target( ElementType.METHOD ) @Target( ElementType.METHOD )
@interface Method @interface Method
{ {
String iname(); IntegrationType iname();
} }
} }
@@ -184,11 +184,11 @@ public final class ASMIntegration implements IClassTransformer
if( an.values.get( 0 ).equals( "iname" ) ) if( an.values.get( 0 ).equals( "iname" ) )
{ {
iName = (String) an.values.get( 1 ); iName = ( (String[]) an.values.get( 1 ) )[1];
} }
else if( an.values.get( 2 ).equals( "iname" ) ) else if( an.values.get( 2 ).equals( "iname" ) )
{ {
iName = (String) an.values.get( 3 ); iName = ( (String[]) an.values.get( 3 ) )[1];
} }
if( iName != null && iFace != null ) if( iName != null && iFace != null )
@@ -224,7 +224,7 @@ public final class ASMIntegration implements IClassTransformer
if( an.values.get( 0 ).equals( "iname" ) ) if( an.values.get( 0 ).equals( "iname" ) )
{ {
iName = (String) an.values.get( 1 ); iName = ( (String[]) an.values.get( 1 ) )[1];
} }
if( iName != null ) if( iName != null )
@@ -185,8 +185,9 @@ gui.appliedenergistics2.inWorldPurificationFluix=Drop a Fluix Seed made from Flu
gui.appliedenergistics2.inWorldSingularity=To create drop 1 Singularity and 1 Ender Dust and cause an explosion within range of the items. gui.appliedenergistics2.inWorldSingularity=To create drop 1 Singularity and 1 Ender Dust and cause an explosion within range of the items.
gui.appliedenergistics2.ChargedQuartz=Charged Certus Quartz is crafted by inserting an uncharged Certus Quartz Crystal into the Charger, and powering it. gui.appliedenergistics2.ChargedQuartz=Charged Certus Quartz is crafted by inserting an uncharged Certus Quartz Crystal into the Charger, and powering it.
gui.appliedenergistics2.ChargedQuartzFind=Charged Certus Quartz can be found in world semi rarely, it appears similar to normal Certus Quartz, except it sparkles. gui.appliedenergistics2.ChargedQuartzFind=Charged Certus Quartz can be found in world semi rarely, it appears similar to normal Certus Quartz, except it sparkles.
gui.appliedenergistics2.OfSecondOutput=%1$d%% Chance for second output.
gui.appliedenergistics2.NoSecondOutput=No Secondary Output gui.appliedenergistics2.NoSecondOutput=No Secondary Output
gui.appliedenergistics2.OfSecondOutput=%1$d%% Chance for second output.
gui.appliedenergistics2.MultipleOutputs=%1$d%% second, %2$d%% third output.
gui.appliedenergistics2.SelectAmount=Select Amount gui.appliedenergistics2.SelectAmount=Select Amount
gui.appliedenergistics2.CopyMode=Copy Mode gui.appliedenergistics2.CopyMode=Copy Mode
gui.appliedenergistics2.CopyModeDesc=Controls if the contents of the configuration pane are cleared when you remove the cell. gui.appliedenergistics2.CopyModeDesc=Controls if the contents of the configuration pane are cleared when you remove the cell.
@@ -42,13 +42,13 @@ tile.appliedenergistics2.BlockSkyStone.SmallBrick.name=Briquettes de pierre de c
tile.appliedenergistics2.BlockSkyChest.name=Coffre de pierre de ciel tile.appliedenergistics2.BlockSkyChest.name=Coffre de pierre de ciel
tile.appliedenergistics2.BlockSkyChest.Block.name=Coffre de bloc de pierre de ciel tile.appliedenergistics2.BlockSkyChest.Block.name=Coffre de bloc de pierre de ciel
tile.appliedenergistics2.BlockSkyCompass.name=Boussole à météorite tile.appliedenergistics2.BlockSkyCompass.name=Boussole à météorite
tile.appliedenergistics2.BlockCraftingMonitor.name=Moniteur de craft tile.appliedenergistics2.BlockCraftingMonitor.name=Moniteur de fabrication
tile.appliedenergistics2.BlockCraftingStorage.name=Disque 1k pour le craft tile.appliedenergistics2.BlockCraftingStorage.name=Disque 1k pour la fabrication
tile.appliedenergistics2.BlockCraftingStorage4k.name=Disque 4k pour le craft tile.appliedenergistics2.BlockCraftingStorage4k.name=Disque 4k pour la fabrication
tile.appliedenergistics2.BlockCraftingStorage16k.name=Disque 16k pour le craft tile.appliedenergistics2.BlockCraftingStorage16k.name=Disque 16k pour la fabrication
tile.appliedenergistics2.BlockCraftingStorage64k.name=Disque 64k pour le craft tile.appliedenergistics2.BlockCraftingStorage64k.name=Disque 64k pour la fabrication
tile.appliedenergistics2.BlockCraftingAccelerator.name=Unité de co-traitement tile.appliedenergistics2.BlockCraftingAccelerator.name=Unité de co-traitement
tile.appliedenergistics2.BlockCraftingUnit.name=Unité de craft tile.appliedenergistics2.BlockCraftingUnit.name=Unité de fabrication
tile.appliedenergistics2.BlockMolecularAssembler.name=Assembleur moléculaire tile.appliedenergistics2.BlockMolecularAssembler.name=Assembleur moléculaire
// Stairs // Stairs
@@ -61,6 +61,16 @@ tile.appliedenergistics2.SkyStoneBrickStairBlock.name=Escaliers de briques de pi
tile.appliedenergistics2.SkyStoneSmallBrickStairBlock.name=Escaliers de petites briques de pierre de ciel tile.appliedenergistics2.SkyStoneSmallBrickStairBlock.name=Escaliers de petites briques de pierre de ciel
tile.appliedenergistics2.SkyStoneStairBlock.name=Escaliers de pierre de ciel tile.appliedenergistics2.SkyStoneStairBlock.name=Escaliers de pierre de ciel
// Slabs
tile.appliedenergistics2.ChiseledQuartzSlabBlock.name=Dalle de Quartz Certus ciselé
tile.appliedenergistics2.FluixSlabBlock.name=Dalle de Fluix
tile.appliedenergistics2.QuartzPillarSlabBlock.name=Dalle de pilier de Quartz Certus
tile.appliedenergistics2.QuartzSlabBlock.name=Dalle de Quartz Certus
tile.appliedenergistics2.SkyStoneBlockSlabBlock.name=Dalle de bloc de pierre de ciel
tile.appliedenergistics2.SkyStoneBrickSlabBlock.name=Dalle de briques de pierre de ciel
tile.appliedenergistics2.SkyStoneSmallBrickSlabBlock.name=Dalle de petites briques de pierre de ciel
tile.appliedenergistics2.SkyStoneSlabBlock.name=Dalle de pierre de ciel
// Chat Messages // Chat Messages
chat.appliedenergistics2.ChestCannotReadStorageCell=Le coffre ME Chest ne peut pas lire la cellule de stockage. chat.appliedenergistics2.ChestCannotReadStorageCell=Le coffre ME Chest ne peut pas lire la cellule de stockage.
chat.appliedenergistics2.SettingCleared=Paramètres effacés. chat.appliedenergistics2.SettingCleared=Paramètres effacés.
@@ -83,7 +93,7 @@ itemGroup.appliedenergistics2=Applied Energistics 2
itemGroup.appliedenergistics2.facades=Façades Applied Energistics 2 itemGroup.appliedenergistics2.facades=Façades Applied Energistics 2
// GUI // GUI
gui.appliedenergistics2.CraftingTerminal=Terminal de craft gui.appliedenergistics2.CraftingTerminal=Terminal de fabrication
gui.appliedenergistics2.METunnel=ME gui.appliedenergistics2.METunnel=ME
gui.appliedenergistics2.ItemTunnel=Objet gui.appliedenergistics2.ItemTunnel=Objet
gui.appliedenergistics2.FluidTunnel=Fluide gui.appliedenergistics2.FluidTunnel=Fluide
@@ -91,16 +101,18 @@ gui.appliedenergistics2.RedstoneTunnel=Redstone
gui.appliedenergistics2.EUTunnel=EU gui.appliedenergistics2.EUTunnel=EU
gui.appliedenergistics2.RFTunnel=RF gui.appliedenergistics2.RFTunnel=RF
gui.appliedenergistics2.LightTunnel=Lumière gui.appliedenergistics2.LightTunnel=Lumière
gui.appliedenergistics2.OCTunnel=OpenComputers
gui.appliedenergistics2.PressureTunnel=Pression
gui.appliedenergistics2.security.extract.name=Retrait gui.appliedenergistics2.security.extract.name=Retrait
gui.appliedenergistics2.security.inject.name=Dépôt gui.appliedenergistics2.security.inject.name=Dépôt
gui.appliedenergistics2.security.craft.name=Craft gui.appliedenergistics2.security.craft.name=Fabrication
gui.appliedenergistics2.security.build.name=Construction gui.appliedenergistics2.security.build.name=Construction
gui.appliedenergistics2.security.security.name=Sécurité gui.appliedenergistics2.security.security.name=Sécurité
gui.appliedenergistics2.security.extract.tip=L'utilisateur est autorisé à retirer un élément du stockage. gui.appliedenergistics2.security.extract.tip=L'utilisateur est autorisé à retirer un élément du stockage.
gui.appliedenergistics2.security.inject.tip=L'utilisateur est autorisé à déposer un élément dans le stockage. gui.appliedenergistics2.security.inject.tip=L'utilisateur est autorisé à déposer un élément dans le stockage.
gui.appliedenergistics2.security.craft.tip=L'utilisateur peut lancer de nouveaux crafts. gui.appliedenergistics2.security.craft.tip=L'utilisateur peut lancer de nouvelles fabrications.
gui.appliedenergistics2.security.build.tip=L'utilisateur peut modifier la structure physique du réseau et faire des changement de configuration. gui.appliedenergistics2.security.build.tip=L'utilisateur peut modifier la structure physique du réseau et faire des changement de configuration.
gui.appliedenergistics2.security.security.tip=L'utilisateur peut accéder et modifier le terminal de sécurité du réseau. gui.appliedenergistics2.security.security.tip=L'utilisateur peut accéder et modifier le terminal de sécurité du réseau.
@@ -149,7 +161,7 @@ gui.appliedenergistics2.VibrationChamber=Chambre de vibration
gui.appliedenergistics2.NetworkDetails=Détails du réseau gui.appliedenergistics2.NetworkDetails=Détails du réseau
gui.appliedenergistics2.StorageCells=Cellules de stockage ME gui.appliedenergistics2.StorageCells=Cellules de stockage ME
gui.appliedenergistics2.IOBuses=Bus d'import/export ME gui.appliedenergistics2.IOBuses=Bus d'import/export ME
gui.appliedenergistics2.Stores=Stocke gui.appliedenergistics2.Stores=Stocks
gui.appliedenergistics2.BytesUsed=Octets utilisés gui.appliedenergistics2.BytesUsed=Octets utilisés
gui.appliedenergistics2.Types=Types gui.appliedenergistics2.Types=Types
gui.appliedenergistics2.Blank=Vide gui.appliedenergistics2.Blank=Vide
@@ -158,10 +170,10 @@ gui.appliedenergistics2.Linked=Lié
gui.appliedenergistics2.StoredSize=Quantité stockée gui.appliedenergistics2.StoredSize=Quantité stockée
gui.appliedenergistics2.SkyChest=Coffre de pierre du ciel gui.appliedenergistics2.SkyChest=Coffre de pierre du ciel
gui.appliedenergistics2.PatternTerminal=Terminal des modèles gui.appliedenergistics2.PatternTerminal=Terminal des modèles
gui.appliedenergistics2.CraftingPattern=Modèle de craft gui.appliedenergistics2.CraftingPattern=Modèle de fabrication
gui.appliedenergistics2.MolecularAssembler=Assembleur moléculaire gui.appliedenergistics2.MolecularAssembler=Assembleur moléculaire
gui.appliedenergistics2.ProcessingPattern=Modèle de traitement gui.appliedenergistics2.ProcessingPattern=Modèle de traitement
gui.appliedenergistics2.Crafts=Crafts gui.appliedenergistics2.Crafts=Fabrications
gui.appliedenergistics2.And=et gui.appliedenergistics2.And=et
gui.appliedenergistics2.Creates=Crée gui.appliedenergistics2.Creates=Crée
gui.appliedenergistics2.With=avec gui.appliedenergistics2.With=avec
@@ -183,20 +195,21 @@ gui.appliedenergistics2.Lumen=Lumen
gui.appliedenergistics2.Empty=Vide gui.appliedenergistics2.Empty=Vide
gui.appliedenergistics2.Stored=Stocké gui.appliedenergistics2.Stored=Stocké
gui.appliedenergistics2.Cancel=Annuler gui.appliedenergistics2.Cancel=Annuler
gui.appliedenergistics2.Crafting=Craft gui.appliedenergistics2.ETAFormat=HH:mm:ss
gui.appliedenergistics2.Crafting=Fabrication
gui.appliedenergistics2.Scheduled=Prévu gui.appliedenergistics2.Scheduled=Prévu
gui.appliedenergistics2.CraftingStatus=Etat du craft gui.appliedenergistics2.CraftingStatus=Etat de fabrication
gui.appliedenergistics2.FromStorage=Disponible gui.appliedenergistics2.FromStorage=Disponible
gui.appliedenergistics2.ToCraft=A crafter gui.appliedenergistics2.ToCraft=A fabriquer
gui.appliedenergistics2.CraftingPlan=Plan de craft gui.appliedenergistics2.CraftingPlan=Plan de fabrication
gui.appliedenergistics2.Automatic=Automatique gui.appliedenergistics2.Automatic=Automatique
gui.appliedenergistics2.Start=Départ gui.appliedenergistics2.Start=Départ
gui.appliedenergistics2.Missing=Manquant gui.appliedenergistics2.Missing=Manquant
gui.appliedenergistics2.Bytes=Stockage gui.appliedenergistics2.Bytes=Stockage
gui.appliedenergistics2.Simulation=Simulation gui.appliedenergistics2.Simulation=Simulation
gui.appliedenergistics2.CoProcessors=Co-traitements gui.appliedenergistics2.CoProcessors=Co-traitements
gui.appliedenergistics2.CraftingCPU=Unité de craft gui.appliedenergistics2.CraftingCPU=Unité de fabrication
gui.appliedenergistics2.NoCraftingCPUs=Aucune unité de craft n'est disponible gui.appliedenergistics2.NoCraftingCPUs=Aucune unité de fabrication n'est disponible
gui.appliedenergistics2.CalculatingWait=En cours de calcul, veuillez patienter... gui.appliedenergistics2.CalculatingWait=En cours de calcul, veuillez patienter...
gui.appliedenergistics2.Clean=Effacer gui.appliedenergistics2.Clean=Effacer
gui.appliedenergistics2.InvalidPattern=Modèle non valide gui.appliedenergistics2.InvalidPattern=Modèle non valide
@@ -204,21 +217,21 @@ gui.appliedenergistics2.Range=Portée
gui.appliedenergistics2.TransparentFacades=Façades transparentes gui.appliedenergistics2.TransparentFacades=Façades transparentes
gui.appliedenergistics2.TransparentFacadesHint=Contrôle la visibilité des façades avec l'outil réseau dans votre main. gui.appliedenergistics2.TransparentFacadesHint=Contrôle la visibilité des façades avec l'outil réseau dans votre main.
gui.appliedenergistics2.CPUs=Unités gui.appliedenergistics2.CPUs=Unités
gui.appliedenergistics2.NoCraftingJobs=Aucun craft actif gui.appliedenergistics2.NoCraftingJobs=Aucune fabrication d'active
gui.appliedenergistics2.FacadeCrafting=Craft de façade gui.appliedenergistics2.FacadeCrafting=Fabrication de façade
gui.appliedenergistics2.inWorldCraftingPresses=Les plaques de gravure se trouvent au centre des météorites qui peuvent être trouvées dans le monde, elles peuvent être localisées en utilisant une boussole à météorite. gui.appliedenergistics2.inWorldCraftingPresses=Les plaques de gravure se trouvent au centre des météorites qui peuvent être trouvées dans le monde, elles peuvent être localisées en utilisant une boussole à météorite.
gui.appliedenergistics2.Included=Inclus gui.appliedenergistics2.Included=Inclus
gui.appliedenergistics2.Excluded=Exclus gui.appliedenergistics2.Excluded=Exclus
gui.appliedenergistics2.Partitioned=Partitionné gui.appliedenergistics2.Partitioned=Partitionné
gui.appliedenergistics2.Precise=Précis gui.appliedenergistics2.Precise=Précis
gui.appliedenergistics2.Fuzzy=Brouillon gui.appliedenergistics2.Fuzzy=Brouillon
gui.appliedenergistics2.SmallFontCraft=Craft gui.appliedenergistics2.SmallFontCraft=Fabrication
gui.appliedenergistics2.LargeFontCraft=+ gui.appliedenergistics2.LargeFontCraft=+
gui.appliedenergistics2.Nothing=Rien gui.appliedenergistics2.Nothing=Rien
// GUI Tooltips // GUI Tooltips
gui.tooltips.appliedenergistics2.Stash=Stocke des objets gui.tooltips.appliedenergistics2.Stash=Stocke des objets
gui.tooltips.appliedenergistics2.StashDesc=Renvoie les objets de la grille de craft dans le réseau. gui.tooltips.appliedenergistics2.StashDesc=Renvoie les objets de la grille de fabrication dans le réseau.
gui.tooltips.appliedenergistics2.Substitutions=Remplacements du Ore-Dictionnary gui.tooltips.appliedenergistics2.Substitutions=Remplacements du Ore-Dictionnary
gui.tooltips.appliedenergistics2.SubstitutionsDesc=Editez les options de remplacement pour les composants en entrée. gui.tooltips.appliedenergistics2.SubstitutionsDesc=Editez les options de remplacement pour les composants en entrée.
gui.tooltips.appliedenergistics2.SubstitutionsOn=Remplacements activés gui.tooltips.appliedenergistics2.SubstitutionsOn=Remplacements activés
@@ -238,7 +251,7 @@ gui.tooltips.appliedenergistics2.TransferToNetwork=Transférer les données au r
gui.tooltips.appliedenergistics2.TransferToStorageCell=Transférer les données à la cellule de stockage gui.tooltips.appliedenergistics2.TransferToStorageCell=Transférer les données à la cellule de stockage
gui.tooltips.appliedenergistics2.ToggleSortDirection=Basculer la direction de tri gui.tooltips.appliedenergistics2.ToggleSortDirection=Basculer la direction de tri
gui.tooltips.appliedenergistics2.StoredItems=Objets stockés gui.tooltips.appliedenergistics2.StoredItems=Objets stockés
gui.tooltips.appliedenergistics2.StoredCraftable=Stock / Craft gui.tooltips.appliedenergistics2.StoredCraftable=Stock / Fabriquer
gui.tooltips.appliedenergistics2.View=Vue gui.tooltips.appliedenergistics2.View=Vue
gui.tooltips.appliedenergistics2.RedstoneMode=Mode redstone gui.tooltips.appliedenergistics2.RedstoneMode=Mode redstone
gui.tooltips.appliedenergistics2.OperationMode=Mode opération gui.tooltips.appliedenergistics2.OperationMode=Mode opération
@@ -251,7 +264,7 @@ gui.tooltips.appliedenergistics2.PartitionStorage=Partionner le stockage
gui.tooltips.appliedenergistics2.Clear=Effacer gui.tooltips.appliedenergistics2.Clear=Effacer
gui.tooltips.appliedenergistics2.TrashController=Effacement par Maj. / Espace-Clic. gui.tooltips.appliedenergistics2.TrashController=Effacement par Maj. / Espace-Clic.
gui.tooltips.appliedenergistics2.InterfaceBlockingMode=Mode bloquant gui.tooltips.appliedenergistics2.InterfaceBlockingMode=Mode bloquant
gui.tooltips.appliedenergistics2.InterfaceCraftingMode=Mode craft gui.tooltips.appliedenergistics2.InterfaceCraftingMode=Mode fabrication
gui.tooltips.appliedenergistics2.Trash=Détruire les éléments gui.tooltips.appliedenergistics2.Trash=Détruire les éléments
gui.tooltips.appliedenergistics2.MatterBalls=Condenser en billes de matière\n%s par élément gui.tooltips.appliedenergistics2.MatterBalls=Condenser en billes de matière\n%s par élément
gui.tooltips.appliedenergistics2.Singularity=Condenser en singularités\n%s par élément gui.tooltips.appliedenergistics2.Singularity=Condenser en singularités\n%s par élément
@@ -271,17 +284,17 @@ gui.tooltips.appliedenergistics2.SearchMode_NEIStandard=Synchronisation NEI stan
gui.tooltips.appliedenergistics2.SearchMode=Mode de la boite de recherche gui.tooltips.appliedenergistics2.SearchMode=Mode de la boite de recherche
gui.tooltips.appliedenergistics2.PartitionStorageHint=Configure la partition par rapport aux objets actuellement stockés. gui.tooltips.appliedenergistics2.PartitionStorageHint=Configure la partition par rapport aux objets actuellement stockés.
gui.tooltips.appliedenergistics2.ClearSettings=Efface les paramètres gui.tooltips.appliedenergistics2.ClearSettings=Efface les paramètres
gui.tooltips.appliedenergistics2.Craftable=Craftable gui.tooltips.appliedenergistics2.Craftable=Fabricable
gui.tooltips.appliedenergistics2.MoveWhenEmpty=Déplace vers la sortie dès que c'est vide. gui.tooltips.appliedenergistics2.MoveWhenEmpty=Déplace vers la sortie dès que c'est vide.
gui.tooltips.appliedenergistics2.MoveWhenWorkIsDone=Déplace vers la sortie quand le travail est fini. gui.tooltips.appliedenergistics2.MoveWhenWorkIsDone=Déplace vers la sortie quand le travail est fini.
gui.tooltips.appliedenergistics2.MoveWhenFull=Déplace vers la sortie quand c'est plein. gui.tooltips.appliedenergistics2.MoveWhenFull=Déplace vers la sortie quand c'est plein.
gui.tooltips.appliedenergistics2.Disabled=Désactivé gui.tooltips.appliedenergistics2.Disabled=Désactivé
gui.tooltips.appliedenergistics2.Enable=Activé gui.tooltips.appliedenergistics2.Enable=Activé
gui.tooltips.appliedenergistics2.Blocking=Ne pas insérer d'objets de craft si l'inventaire contient des objets. gui.tooltips.appliedenergistics2.Blocking=Ne pas fabriquer d'objets si l'inventaire contient ces objets.
gui.tooltips.appliedenergistics2.NonBlocking=Ignorer le contenu de l'inventaire cible. gui.tooltips.appliedenergistics2.NonBlocking=Ignorer le contenu de l'inventaire cible.
gui.tooltips.appliedenergistics2.Craft=Comportement de craft gui.tooltips.appliedenergistics2.Craft=Comportement de fabrication
gui.tooltips.appliedenergistics2.CraftOnly=Ne pas utiliser les objets stockés; préférer le craft pour l'export. gui.tooltips.appliedenergistics2.CraftOnly=Ne pas utiliser les objets stockés; préférer les fabriquer pour l'export.
gui.tooltips.appliedenergistics2.CraftEither=Utiliser les éléments stockés, ou les crafter lors de l'export. gui.tooltips.appliedenergistics2.CraftEither=Utiliser les éléments stockés, ou les fabriquer lors de l'export.
gui.tooltips.appliedenergistics2.LevelType=Type de niveau gui.tooltips.appliedenergistics2.LevelType=Type de niveau
gui.tooltips.appliedenergistics2.LevelType_Energy=Energie gui.tooltips.appliedenergistics2.LevelType_Energy=Energie
gui.tooltips.appliedenergistics2.LevelType_Item=Objet gui.tooltips.appliedenergistics2.LevelType_Item=Objet
@@ -292,15 +305,19 @@ gui.tooltips.appliedenergistics2.TerminalStyle_Full=Terminal plein écran
gui.tooltips.appliedenergistics2.TerminalStyle_Tall=Grand terminal centré gui.tooltips.appliedenergistics2.TerminalStyle_Tall=Grand terminal centré
gui.tooltips.appliedenergistics2.TerminalStyle_Small=Petit terminal centré gui.tooltips.appliedenergistics2.TerminalStyle_Small=Petit terminal centré
gui.tooltips.appliedenergistics2.DoesntDespawn=Cet élément ne disparaitra pas. gui.tooltips.appliedenergistics2.DoesntDespawn=Cet élément ne disparaitra pas.
gui.tooltips.appliedenergistics2.EmitterMode=Mode d'émission du craft gui.tooltips.appliedenergistics2.EmitterMode=Mode d'émission de la fabrication
gui.tooltips.appliedenergistics2.CraftViaRedstone=Emettre un signal Redstone pour crafter l'objet. gui.tooltips.appliedenergistics2.CraftViaRedstone=Emettre un signal Redstone pour fabriquer l'objet.
gui.tooltips.appliedenergistics2.EmitWhenCrafting=Emettre un signal Redstone quand l'objet est en cours de craft. gui.tooltips.appliedenergistics2.EmitWhenCrafting=Emettre un signal Redstone quand l'objet est en cours de fabrication.
gui.tooltips.appliedenergistics2.ReportInaccessibleItems=Rapport d'éléments inaccessibles gui.tooltips.appliedenergistics2.ReportInaccessibleItems=Rapport d'éléments inaccessibles
gui.tooltips.appliedenergistics2.ReportInaccessibleItemsYes=Oui: Les éléments ne pouvant pas être extraits seront visibles. gui.tooltips.appliedenergistics2.ReportInaccessibleItemsYes=Oui: Les éléments ne pouvant pas être extraits seront visibles.
gui.tooltips.appliedenergistics2.ReportInaccessibleItemsNo=Non: Seuls les éléments extractibles seront visibles. gui.tooltips.appliedenergistics2.ReportInaccessibleItemsNo=Non: Seuls les éléments extractibles seront visibles.
gui.tooltips.appliedenergistics2.BlockPlacement=Placement de bloc gui.tooltips.appliedenergistics2.BlockPlacement=Placement de bloc
gui.tooltips.appliedenergistics2.BlockPlacementYes=Les blocs seront placés comme un bloc. gui.tooltips.appliedenergistics2.BlockPlacementYes=Les blocs seront placés comme un bloc.
gui.tooltips.appliedenergistics2.BlockPlacementNo=Les blocs seront jettés comme un élément. gui.tooltips.appliedenergistics2.BlockPlacementNo=Les blocs seront jettés comme un élément.
gui.tooltips.appliedenergistics2.SchedulingMode=Mode de planification
gui.tooltips.appliedenergistics2.SchedulingModeDefault=Exporte le premier élément jusqu'à ce que le réseau soit vide, puis essaye les suivants.
gui.tooltips.appliedenergistics2.SchedulingModeRoundRobin=Exporte les éléments l'un après l'autre.
gui.tooltips.appliedenergistics2.SchedulingModeRandom=Exporte les éléments aléatoirement.
gui.tooltips.appliedenergistics2.ItemsStored=Eléments stockés: %s gui.tooltips.appliedenergistics2.ItemsStored=Eléments stockés: %s
gui.tooltips.appliedenergistics2.ItemsRequestable=Eléments recherchable: %s gui.tooltips.appliedenergistics2.ItemsRequestable=Eléments recherchable: %s
@@ -412,6 +429,7 @@ item.appliedenergistics2.ItemMaterial.SkyDust.name=Poussière de pierre du ciel
item.appliedenergistics2.ItemMaterial.CardCrafting.name=Carte de fabrication item.appliedenergistics2.ItemMaterial.CardCrafting.name=Carte de fabrication
item.appliedenergistics2.ItemPart.AnnihilationPlane.name=Plan de dématérialisation ME item.appliedenergistics2.ItemPart.AnnihilationPlane.name=Plan de dématérialisation ME
item.appliedenergistics2.ItemPart.IdentityAnnihilationPlane.name=Plan de dématérialisation d'identité ME
item.appliedenergistics2.ItemPart.CableAnchor.name=Ancre de câble item.appliedenergistics2.ItemPart.CableAnchor.name=Ancre de câble
item.appliedenergistics2.ItemPart.CableCovered.name=Câble couvert ME item.appliedenergistics2.ItemPart.CableCovered.name=Câble couvert ME
item.appliedenergistics2.ItemPart.CableGlass.name=Câble de verre ME item.appliedenergistics2.ItemPart.CableGlass.name=Câble de verre ME
@@ -419,7 +437,7 @@ item.appliedenergistics2.ItemPart.CableSmart.name=Câble intelligent ME
item.appliedenergistics2.ItemPart.CableDense.name=Câble dense ME item.appliedenergistics2.ItemPart.CableDense.name=Câble dense ME
item.appliedenergistics2.ItemPart.StorageMonitor.name=Moniteur de stockage ME item.appliedenergistics2.ItemPart.StorageMonitor.name=Moniteur de stockage ME
item.appliedenergistics2.ItemPart.ConversionMonitor.name=Moniteur de conversion ME item.appliedenergistics2.ItemPart.ConversionMonitor.name=Moniteur de conversion ME
item.appliedenergistics2.ItemPart.CraftingTerminal.name=Terminal de craft ME item.appliedenergistics2.ItemPart.CraftingTerminal.name=Terminal de fabrication ME
item.appliedenergistics2.ItemPart.SemiDarkMonitor.name=Panneau illuminé item.appliedenergistics2.ItemPart.SemiDarkMonitor.name=Panneau illuminé
item.appliedenergistics2.ItemPart.Monitor.name=Panneau illuminé éclairé item.appliedenergistics2.ItemPart.Monitor.name=Panneau illuminé éclairé
item.appliedenergistics2.ItemPart.DarkMonitor.name=Panneau illuminé sombre item.appliedenergistics2.ItemPart.DarkMonitor.name=Panneau illuminé sombre
@@ -435,8 +453,9 @@ item.appliedenergistics2.ItemPart.StorageBus.name=Bus de stockage ME
item.appliedenergistics2.ItemPart.Terminal.name=Terminal ME item.appliedenergistics2.ItemPart.Terminal.name=Terminal ME
item.appliedenergistics2.ItemPart.InvertedToggleBus.name=Bus levier inversé ME item.appliedenergistics2.ItemPart.InvertedToggleBus.name=Bus levier inversé ME
item.appliedenergistics2.ItemPart.ToggleBus.name=Bus levier ME item.appliedenergistics2.ItemPart.ToggleBus.name=Bus levier ME
item.appliedenergistics2.ItemPart.CraftingMonitor.name=Moniteur des crafts ME item.appliedenergistics2.ItemPart.CraftingMonitor.name=Moniteur des fabrications ME
item.appliedenergistics2.ItemPart.InterfaceTerminal.name=Terminal d'interface ME item.appliedenergistics2.ItemPart.InterfaceTerminal.name=Terminal d'interface ME
item.appliedenergistics2.ItemPart.InvalidType.name=Éléments désactivés
item.appliedenergistics2.ItemSpatialStorageCell.128Cubed.name=Disque spatiale de 128³ item.appliedenergistics2.ItemSpatialStorageCell.128Cubed.name=Disque spatiale de 128³
item.appliedenergistics2.ItemSpatialStorageCell.16Cubed.name=Disque spatiale de 16³ item.appliedenergistics2.ItemSpatialStorageCell.16Cubed.name=Disque spatiale de 16³
@@ -482,55 +501,55 @@ commands.ae2.Supporters=Affiche une liste des supporters de AE2
// Achievements // Achievements
achievement.ae2.Compass=Chasseur de météorites achievement.ae2.Compass=Chasseur de météorites
achievement.ae2.Compass.desc=Crafter une boussole à météorite. achievement.ae2.Compass.desc=Fabriquer une boussole à météorite.
achievement.ae2.Presses=Technologie inconnue achievement.ae2.Presses=Technologie inconnue
achievement.ae2.Presses.desc=Trouver une matrice de presse à processeur. achievement.ae2.Presses.desc=Trouver une matrice de presse à processeur.
achievement.ae2.SpatialIO=Coordination spatiale achievement.ae2.SpatialIO=Coordination spatiale
achievement.ae2.SpatialIO.desc=Crafter un port d'E/S spatial. achievement.ae2.SpatialIO.desc=Fabriquer un port d'E/S spatial.
achievement.ae2.SpatialIOExplorer=A coeur vaillant... achievement.ae2.SpatialIOExplorer=A coeur vaillant...
achievement.ae2.SpatialIOExplorer.desc=Etre stocké dans un disque spatial. achievement.ae2.SpatialIOExplorer.desc=Etre stocké dans un disque spatial.
achievement.ae2.StorageCell=Mieux que des coffres achievement.ae2.StorageCell=Mieux que des coffres
achievement.ae2.StorageCell.desc=Crafter une cellule de stockage. achievement.ae2.StorageCell.desc=Fabriquer une cellule de stockage.
achievement.ae2.IOPort=Mélange de disque achievement.ae2.IOPort=Mélange de disque
achievement.ae2.IOPort.desc=Crafter un port d'E/S. achievement.ae2.IOPort.desc=Fabriquer un port d'E/S.
achievement.ae2.CraftingTerminal=Une table (bien) plus grande achievement.ae2.CraftingTerminal=Une table (bien) plus grande
achievement.ae2.CraftingTerminal.desc=Crafter un terminal de craft. achievement.ae2.CraftingTerminal.desc=Fabriquer un terminal de fabrication.
achievement.ae2.PatternTerminal=Maitre crafteur achievement.ae2.PatternTerminal=Maitre fabricateur
achievement.ae2.PatternTerminal.desc=Crafter un terminal de modèles. achievement.ae2.PatternTerminal.desc=Fabriquer un terminal de modèles.
achievement.ae2.ChargedQuartz=Electrifiant achievement.ae2.ChargedQuartz=Electrifiant
achievement.ae2.ChargedQuartz.desc=Trouver du Quartz chargé. achievement.ae2.ChargedQuartz.desc=Trouver du Quartz chargé.
achievement.ae2.Fluix=Artificiel achievement.ae2.Fluix=Artificiel
achievement.ae2.Fluix.desc=Créer des critaux de Fluix. achievement.ae2.Fluix.desc=Créer des critaux de Fluix.
achievement.ae2.Charger=Production de Fluix achievement.ae2.Charger=Production de Fluix
achievement.ae2.Charger.desc=Crafter un chargeur. achievement.ae2.Charger.desc=Fabriquer un chargeur.
achievement.ae2.CrystalGrowthAccelerator=Accélérateur est un euphémisme achievement.ae2.CrystalGrowthAccelerator=Accélérateur est un euphémisme
achievement.ae2.CrystalGrowthAccelerator.desc=Crafter un accélérateur de croissance de cristal. achievement.ae2.CrystalGrowthAccelerator.desc=Fabriquer un accélérateur de croissance de cristal.
achievement.ae2.GlassCable=Connexion d'énergie Fluix achievement.ae2.GlassCable=Connexion d'énergie Fluix
achievement.ae2.GlassCable.desc=Crafter un câble de verre ME. achievement.ae2.GlassCable.desc=Fabriquer un câble de verre ME.
achievement.ae2.Networking1=Apprenti réseau achievement.ae2.Networking1=Apprenti réseau
achievement.ae2.Networking1.desc=Atteindre 8 canaux en utilisant des dispositifs sur un réseau. achievement.ae2.Networking1.desc=Atteindre 8 canaux en utilisant des dispositifs sur un réseau.
achievement.ae2.Controller=Tableau de distribution du réseau achievement.ae2.Controller=Tableau de distribution du réseau
achievement.ae2.Controller.desc=Crafter un contrôleur. achievement.ae2.Controller.desc=Fabriquer un contrôleur.
achievement.ae2.Networking2=Ingénieur réseau achievement.ae2.Networking2=Ingénieur réseau
achievement.ae2.Networking2.desc=Atteindre 128 canaux en utilisant des dispositifs sur un réseau. achievement.ae2.Networking2.desc=Atteindre 128 canaux en utilisant des dispositifs sur un réseau.
achievement.ae2.Networking3=Administrateur réseau achievement.ae2.Networking3=Administrateur réseau
achievement.ae2.Networking3.desc=Atteindre 2048 canaux en utilisant des dispositifs sur un réseau. achievement.ae2.Networking3.desc=Atteindre 2048 canaux en utilisant des dispositifs sur un réseau.
achievement.ae2.P2P=Réseau point à point achievement.ae2.P2P=Réseau point à point
achievement.ae2.P2P.desc=Crafter un tunnel P2P. achievement.ae2.P2P.desc=Fabriquer un tunnel P2P.
achievement.ae2.Recursive=Réseau récursif achievement.ae2.Recursive=Réseau récursif
achievement.ae2.Recursive.desc=Placer une interface sur un bus de stockage. achievement.ae2.Recursive.desc=Placer une interface sur un bus de stockage.
achievement.ae2.CraftingCPU=Crafting nouvelle génération achievement.ae2.CraftingCPU=Fabrication de nouvelle génération
achievement.ae2.CraftingCPU.desc=Crafter une unité de craft. achievement.ae2.CraftingCPU.desc=Fabriquer une unité de fabrication.
achievement.ae2.Facade=Esthétique du réseau achievement.ae2.Facade=Esthétique du réseau
achievement.ae2.Facade.desc=Crafter des façades de câbles. achievement.ae2.Facade.desc=Fabriquer des façades de câbles.
achievement.ae2.NetworkTool=Diagnostics réseau achievement.ae2.NetworkTool=Diagnostics réseau
achievement.ae2.NetworkTool.desc=Crafter un outil réseau. achievement.ae2.NetworkTool.desc=Fabriquer un outil réseau.
achievement.ae2.PortableCell=Stockage nomade achievement.ae2.PortableCell=Stockage nomade
achievement.ae2.PortableCell.desc=Crafter un disque portable. achievement.ae2.PortableCell.desc=Fabriquer un disque portable.
achievement.ae2.StorageBus=Potentiel illimité achievement.ae2.StorageBus=Potentiel illimité
achievement.ae2.StorageBus.desc=Crafter un bus de stockage. achievement.ae2.StorageBus.desc=Fabriquer un bus de stockage.
achievement.ae2.QNB=Ouvrir un tunnel quantique achievement.ae2.QNB=Ouvrir un tunnel quantique
achievement.ae2.QNB.desc=Crafter un lien quantique. achievement.ae2.QNB.desc=Fabriquer un lien quantique.
// Stats // Stats
stat.ae2.ItemsInserted=Eléments ajoutés aux disques ME stat.ae2.ItemsInserted=Eléments ajoutés aux disques ME
@@ -417,3 +417,54 @@ item.appliedenergistics2.ToolBiometricCard.name=身份卡
item.appliedenergistics2.ToolDebugCard.name=Dev.調試卡 item.appliedenergistics2.ToolDebugCard.name=Dev.調試卡
item.appliedenergistics2.ToolReplicatorCard.name=Dev.復制卡 item.appliedenergistics2.ToolReplicatorCard.name=Dev.復制卡
achievement.ae2.Compass=隕石追跡者
achievement.ae2.Compass.desc=合成一個隕石羅盤
achievement.ae2.Presses=這是什麼東西啊!?
achievement.ae2.Presses.desc=找到一塊壓印模板
achievement.ae2.SpatialIO=空間操弄者
achievement.ae2.SpatialIO.desc=合成一個空間IO端口
achievement.ae2.SpatialIOExplorer=大膽地去吧!
achievement.ae2.SpatialIOExplorer.desc=被儲存在空間硬碟裡
achievement.ae2.StorageCell=勝過箱子
achievement.ae2.StorageCell.desc=合成一個存儲元件
achievement.ae2.IOPort=物品操弄者
achievement.ae2.IOPort.desc=合成一個ME-IO端口
achievement.ae2.CraftingTerminal=好一個"大"桌子
achievement.ae2.CraftingTerminal.desc=合成一個ME合成終端
achievement.ae2.PatternTerminal=合成大師
achievement.ae2.PatternTerminal.desc=合成一個ME樣板終端
achievement.ae2.ChargedQuartz=哇!閃耀!!
achievement.ae2.ChargedQuartz.desc=找到充能賽特斯石英水晶
achievement.ae2.Fluix=這不是天然的!
achievement.ae2.Fluix.desc=製作福魯伊克斯水晶
achievement.ae2.Charger=水晶量產者
achievement.ae2.Charger.desc=合成一個充能器
achievement.ae2.CrystalGrowthAccelerator=時間只是浮雲
achievement.ae2.CrystalGrowthAccelerator.desc=合成一個晶體催生器
achievement.ae2.GlassCable=能量連接
achievement.ae2.GlassCable.desc=合成ME玻璃線纜
achievement.ae2.Networking1=初學者
achievement.ae2.Networking1.desc=在你的網路中連接8台可互聯機器
achievement.ae2.Controller=交通樞紐
achievement.ae2.Controller.desc=合成一個控制器
achievement.ae2.Networking2=工程師
achievement.ae2.Networking2.desc=在你的網路中連接128台可互聯機器
achievement.ae2.Networking3=萬里長"程"
achievement.ae2.Networking3.desc=在你的網路中連接2048台可互聯機器
achievement.ae2.P2P=雙向溝通
achievement.ae2.P2P.desc=合成一個P2P通道
achievement.ae2.Recursive=遞廻線路
achievement.ae2.Recursive.desc=在儲存總線上放置一個接口
achievement.ae2.CraftingCPU=近代科技
achievement.ae2.CraftingCPU.desc=合成一個合成處理器
achievement.ae2.Facade=線路美學
achievement.ae2.Facade.desc=合成線路偽裝版
achievement.ae2.NetworkTool=診斷線路
achievement.ae2.NetworkTool.desc=合成一個網路工具
achievement.ae2.PortableCell=百寶袋
achievement.ae2.PortableCell.desc=合成一個便攜元件
achievement.ae2.StorageBus=無窮潛力
achievement.ae2.StorageBus.desc=合成一個存儲總線
achievement.ae2.QNB=看!牛郎和織女牽手了!
achievement.ae2.QNB.desc=合成一個量子環
@@ -1,47 +1,47 @@
shaped= shaped=
ae2:BlockQuartzChiseled _ _, ae2:BlockQuartzChiseled _ _,
ae2:BlockQuartzChiseled ae2:BlockQuartzChiseled _, ae2:BlockQuartzChiseled ae2:BlockQuartzChiseled _,
ae2:BlockQuartzChiseled ae2:BlockQuartzChiseled ae2:BlockQuartzChiseled ae2:BlockQuartzChiseled ae2:BlockQuartzChiseled ae2:BlockQuartzChiseled
-> 4 ae2:ChiseledQuartzStairBlock -> 4 ae2:ChiseledQuartzStairBlock
shaped= shaped=
ae2:BlockFluix _ _, ae2:BlockFluix _ _,
ae2:BlockFluix ae2:BlockFluix _, ae2:BlockFluix ae2:BlockFluix _,
ae2:BlockFluix ae2:BlockFluix ae2:BlockFluix ae2:BlockFluix ae2:BlockFluix ae2:BlockFluix
-> 4 ae2:FluixStairBlock -> 4 ae2:FluixStairBlock
shaped= shaped=
ae2:BlockQuartzPillar _ _, ae2:BlockQuartzPillar _ _,
ae2:BlockQuartzPillar ae2:BlockQuartzPillar _, ae2:BlockQuartzPillar ae2:BlockQuartzPillar _,
ae2:BlockQuartzPillar ae2:BlockQuartzPillar ae2:BlockQuartzPillar ae2:BlockQuartzPillar ae2:BlockQuartzPillar ae2:BlockQuartzPillar
-> 4 ae2:QuartzPillarStairBlock -> 4 ae2:QuartzPillarStairBlock
shaped= shaped=
ae2:BlockQuartz _ _, ae2:BlockQuartz _ _,
ae2:BlockQuartz ae2:BlockQuartz _, ae2:BlockQuartz ae2:BlockQuartz _,
ae2:BlockQuartz ae2:BlockQuartz ae2:BlockQuartz ae2:BlockQuartz ae2:BlockQuartz ae2:BlockQuartz
-> 4 ae2:QuartzStairBlock -> 4 ae2:QuartzStairBlock
shaped= shaped=
ae2:BlockSkyStone _ _, ae2:BlockSkyStone _ _,
ae2:BlockSkyStone ae2:BlockSkyStone _, ae2:BlockSkyStone ae2:BlockSkyStone _,
ae2:BlockSkyStone ae2:BlockSkyStone ae2:BlockSkyStone ae2:BlockSkyStone ae2:BlockSkyStone ae2:BlockSkyStone
-> 4 ae2:SkyStoneStairBlock -> 4 ae2:SkyStoneStairBlock
shaped= shaped=
ae2:BlockSkyStone:1 _ _, ae2:BlockSkyStone:1 _ _,
ae2:BlockSkyStone:1 ae2:BlockSkyStone:1 _, ae2:BlockSkyStone:1 ae2:BlockSkyStone:1 _,
ae2:BlockSkyStone:1 ae2:BlockSkyStone:1 ae2:BlockSkyStone:1 ae2:BlockSkyStone:1 ae2:BlockSkyStone:1 ae2:BlockSkyStone:1
-> 4 ae2:SkyStoneBlockStairBlock -> 4 ae2:SkyStoneBlockStairBlock
shaped= shaped=
ae2:BlockSkyStone:2 _ _, ae2:BlockSkyStone:2 _ _,
ae2:BlockSkyStone:2 ae2:BlockSkyStone:2 _, ae2:BlockSkyStone:2 ae2:BlockSkyStone:2 _,
ae2:BlockSkyStone:2 ae2:BlockSkyStone:2 ae2:BlockSkyStone:2 ae2:BlockSkyStone:2 ae2:BlockSkyStone:2 ae2:BlockSkyStone:2
-> 4 ae2:SkyStoneBrickStairBlock -> 4 ae2:SkyStoneBrickStairBlock
shaped= shaped=
ae2:BlockSkyStone:3 _ _, ae2:BlockSkyStone:3 _ _,
ae2:BlockSkyStone:3 ae2:BlockSkyStone:3 _, ae2:BlockSkyStone:3 ae2:BlockSkyStone:3 _,
ae2:BlockSkyStone:3 ae2:BlockSkyStone:3 ae2:BlockSkyStone:3 ae2:BlockSkyStone:3 ae2:BlockSkyStone:3 ae2:BlockSkyStone:3
-> 4 ae2:SkyStoneSmallBrickStairBlock -> 4 ae2:SkyStoneSmallBrickStairBlock
@@ -11,7 +11,7 @@ group= mc:iron_ingot oredictionary:ingotCopper oredictionary:ingotTin orediction
group= oredictionary:dustEnder oredictionary:dustEnderPearl -> dustEnder group= oredictionary:dustEnder oredictionary:dustEnderPearl -> dustEnder
group=oredictionary:blockGlass oredictionary:glass mc:glass -> glass group=oredictionary:blockGlass oredictionary:glass mc:glass -> glass
group=oredictionary:wool mc:wool:* -> wool group=oredictionary:wool mc:wool:* -> wool
group=oredictionary:crystalCertusQuartz oredictionary:crystalNetherQuartz ae2:ItemMaterial.CertusQuartzCrystalCharged -> crystalQuartz group=oredictionary:crystalCertusQuartz oredictionary:crystalNetherQuartz ae2:ItemMaterial.CertusQuartzCrystalCharged -> crystalQuartz
group=oredictionary:dustCertusQuartz oredictionary:dustNetherQuartz -> dustQuartz group=oredictionary:dustCertusQuartz oredictionary:dustNetherQuartz -> dustQuartz
@@ -1,6 +1,6 @@
shaped= shaped=
mc:iron_ingot cable mc:iron_ingot, mc:iron_ingot cable mc:iron_ingot,
ae2:BlockQuartzGlass ae2:BlockFluix ae2:BlockQuartzGlass, ae2:BlockQuartzGlass ae2:BlockFluix ae2:BlockQuartzGlass,
mc:iron_ingot cable mc:iron_ingot mc:iron_ingot cable mc:iron_ingot
-> ae2:BlockQuartzGrowthAccelerator -> ae2:BlockQuartzGrowthAccelerator
@@ -6,7 +6,7 @@ shaped=
shaped= shaped=
mc:iron_ingot ae2:BlockQuartzGlass mc:iron_ingot, mc:iron_ingot ae2:BlockQuartzGlass mc:iron_ingot,
ae2:BlockQuartzGlass fluixCrystal ae2:BlockQuartzGlass, ae2:BlockQuartzGlass fluixCrystal ae2:BlockQuartzGlass,
mc:iron_ingot ae2:BlockQuartzGlass mc:iron_ingot mc:iron_ingot ae2:BlockQuartzGlass mc:iron_ingot
-> ae2:BlockEnergyAcceptor -> ae2:BlockEnergyAcceptor
@@ -21,7 +21,7 @@ ore=ae2:ItemMaterial.FluixDust -> dustFluix
# Ores of AE2 # Ores of AE2
ore=ae2:tile.OreQuartz -> oreCertusQuartz ore=ae2:tile.OreQuartz -> oreCertusQuartz
ore=ae2:tile.OreQuartzCharged -> oreCertusQuartz ore=ae2:tile.OreQuartzCharged -> oreChargedCertusQuartz
# Parts to be used # Parts to be used
ore= ae2:ItemPart.SemiDarkMonitor -> itemIlluminatedPanel ore= ae2:ItemPart.SemiDarkMonitor -> itemIlluminatedPanel
@@ -1,7 +1,7 @@
shaped= shaped=
oredictionary:crystalCertusQuartz oredictionary:crystalCertusQuartz, oredictionary:crystalCertusQuartz oredictionary:crystalCertusQuartz,
oredictionary:crystalCertusQuartz oredictionary:stickWood, oredictionary:crystalCertusQuartz oredictionary:stickWood,
_oredictionary:stickWood _ oredictionary:stickWood
-> ae2:ToolCertusQuartzAxe -> ae2:ToolCertusQuartzAxe
shaped= shaped=
@@ -37,5 +37,5 @@ shaped=
shaped= shaped=
_ _ oredictionary:stickWood, _ _ oredictionary:stickWood,
mc:iron_ingot oredictionary:stickWood _, mc:iron_ingot oredictionary:stickWood _,
oredictionary:crystalCertusQuartz oredictionary:crystalCertusQuartz _ oredictionary:crystalCertusQuartz oredictionary:crystalCertusQuartz _
-> ae2:ToolCertusQuartzCuttingKnife -> ae2:ToolCertusQuartzCuttingKnife
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB