mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Massive recipe system overhaul.
They should be much more efficient now (this reduced the tick time of the CI Chamber by 3-4x in my testing), due to being able to just use the HashMap's get() instead of being limited to iterating through entries. NEI integration code now a lot more readable and type-safe as well.
This commit is contained in:
1 parent
4dd3d4ba01
commit
ce6946c669
77 files changed
+1294
-486
No files matched your search
+2
-2
@@ -2,7 +2,7 @@ package mekanism.common.inventory.container;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import mekanism.api.recipe.AdvancedInput;
|
||||
import mekanism.common.recipe.inputs.AdvancedMachineInput;
|
||||
import mekanism.common.inventory.slot.SlotEnergy.SlotDischarge;
|
||||
import mekanism.common.inventory.slot.SlotOutput;
|
||||
import mekanism.common.tile.TileEntityAdvancedElectricMachine;
|
||||
@@ -170,7 +170,7 @@ public class ContainerAdvancedElectricMachine extends Container
|
||||
|
||||
private boolean isInputItem(ItemStack itemstack)
|
||||
{
|
||||
for(Map.Entry<AdvancedInput, ItemStack> entry : ((Map<AdvancedInput, ItemStack>)tileEntity.getRecipes()).entrySet())
|
||||
for(Map.Entry<AdvancedMachineInput, ItemStack> entry : ((Map<AdvancedMachineInput, ItemStack>)tileEntity.getRecipes()).entrySet())
|
||||
{
|
||||
if(entry.getKey().itemStack.isItemEqual(itemstack))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user