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
@@ -261,26 +261,14 @@ public class BlockBasic extends Block implements IBlockCTM
|
||||
case BASIC_BLOCK_1:
|
||||
for(int i = 0; i < 16; i++)
|
||||
{
|
||||
list.add(new ItemStack(item, 1, 0));
|
||||
list.add(new ItemStack(item, 1, 1));
|
||||
list.add(new ItemStack(item, 1, 2));
|
||||
list.add(new ItemStack(item, 1, 3));
|
||||
list.add(new ItemStack(item, 1, 4));
|
||||
list.add(new ItemStack(item, 1, 5));
|
||||
list.add(new ItemStack(item, 1, 6));
|
||||
list.add(new ItemStack(item, 1, 7));
|
||||
list.add(new ItemStack(item, 1, 8));
|
||||
list.add(new ItemStack(item, 1, 9));
|
||||
list.add(new ItemStack(item, 1, 10));
|
||||
list.add(new ItemStack(item, 1, 11));
|
||||
list.add(new ItemStack(item, 1, 12));
|
||||
list.add(new ItemStack(item, 1, 13));
|
||||
list.add(new ItemStack(item, 1, 14));
|
||||
list.add(new ItemStack(item, 1, 15));
|
||||
list.add(new ItemStack(item, 1, i));
|
||||
}
|
||||
break;
|
||||
case BASIC_BLOCK_2:
|
||||
list.add(new ItemStack(item, 1, 0));
|
||||
for(int i = 0; i < 1; i++)
|
||||
{
|
||||
list.add(new ItemStack(item, 1, i));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user