diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-11 00:01:38 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-11 00:01:38 +1000 |
commit | 6d27a6f758e0b897be93fe0e2649cb5f6002ef3b (patch) | |
tree | 415e7c18ed88b4c58c98074b6da4285363bbb4db /src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java | |
parent | a175442fa1fcaf2369e811be8b25ee1d8c4369fc (diff) | |
download | GT5-Unofficial-6d27a6f758e0b897be93fe0e2649cb5f6002ef3b.tar.gz GT5-Unofficial-6d27a6f758e0b897be93fe0e2649cb5f6002ef3b.tar.bz2 GT5-Unofficial-6d27a6f758e0b897be93fe0e2649cb5f6002ef3b.zip |
[1.4.6.5-release]
% Cleaned up fluid duplicates.
% Cleaned up handling of GT Meta-Tools.
% Changed tone of my latest Fluid Cell icons, now it's darker and more defined.
- Removed some dead classes that have no use.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java b/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java index 93ac3463fb..59480b22ea 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java @@ -102,6 +102,7 @@ public enum GregtechOrePrefixes { public final long mMaterialAmount; private final Collection<Materials> mNotGeneratedItems = new HashSet<Materials>(), mIgnoredMaterials = new HashSet<Materials>(), mGeneratedItems = new HashSet<Materials>(); private final ArrayList<Interface_OreRecipeRegistrator> mOreProcessing = new ArrayList<Interface_OreRecipeRegistrator>(); + private final ArrayList<Interface_OreRecipeRegistrator> mOreProcessingFake = new ArrayList<Interface_OreRecipeRegistrator>(); public ItemStack mContainerItem = null; public ICondition<ISubTagContainer> mCondition = null; public byte mDefaultStackSize = 64; @@ -228,6 +229,7 @@ public enum GregtechOrePrefixes { return true; } + public boolean contains(ItemStack aStack) { if (aStack == null) return false; for (ItemStack tStack : mPrefixedItems) @@ -267,6 +269,16 @@ public enum GregtechOrePrefixes { tRegistrator.registerOre(this, aMaterial, aOreDictName, aModName, GT_Utility.copyAmount(1, aStack)); } } + + //TODO + public void processOre(Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) { + if (aMaterial != null && (aMaterial != Materials._NULL || mIsSelfReferencing || !mIsMaterialBased) && GT_Utility.isStackValid(aStack)) + for (Interface_OreRecipeRegistrator tRegistrator : mOreProcessingFake) { + if (D2) + GT_Log.ore.println("Processing '" + aOreDictName + "' with the Prefix '" + name() + "' and the Material '" + aMaterial.name() + "' at " + GT_Utility.getClassName(tRegistrator)); + tRegistrator.registerOre(this, aMaterial, aOreDictName, aModName, GT_Utility.copyAmount(1, aStack)); + } + } public Object get(Object aMaterial) { if (aMaterial instanceof GT_Materials) return new GregtechItemData(this, (GT_Materials) aMaterial); @@ -823,4 +835,5 @@ public enum GregtechOrePrefixes { } + }
\ No newline at end of file |