mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Induction matrix optimization (#5462)
* Initial work improving performance of Induction Matrix * Have the MatrixData handle more things internally * Internalize more logic in MatrixData * Cleanup readability of two methods * Initial work at queueing energy addition/removal to the matrix. Allows for only reading/writing to the cells once per tick instead of potentially multiple times. * Streamline the energy queuing, add some comments about it, and fix some backwards logic * Improvements to bounds by allowing passing the simulation variable Makes the code cleaner to read * Better handling if something passes a negative value to add/remove * Cleanup UpdateProtocol loopThrough method * Minor cleanup/spacing of UpdateProtocol. Also save queued matrix energy when structure gets destroyed. * Minor cleanup/spacing of various update protocols to improve readability * Minorly improve readability of TileEntityMultiblock * Remove some TODO's as it already properly handles removing/adding cells * Fix creative energy cube output limit * Fix having added extra parenthesis in merge * Add basic comparator support for Induction Port * Cleanup the variables slightly
This commit is contained in:
1 parent
c8d2fbbac8
commit
2809912037
17 files changed
+730
-721
No files matched your search
@@ -96,7 +96,7 @@ public class BlockStateBasic extends ExtendedBlockState {
|
||||
THERMAL_EVAPORATION_VALVE(BasicBlock.BASIC_BLOCK_1, 15, "ThermalEvaporationValve", TileEntityThermalEvaporationValve::new, true, BlockStateUtils.NO_ROTATION, false, false, false, true),
|
||||
THERMAL_EVAPORATION_BLOCK(BasicBlock.BASIC_BLOCK_2, 0, "ThermalEvaporationBlock", TileEntityThermalEvaporationBlock::new, true, BlockStateUtils.NO_ROTATION, false, false, false),
|
||||
INDUCTION_CASING(BasicBlock.BASIC_BLOCK_2, 1, "InductionCasing", TileEntityInductionCasing::new, true, BlockStateUtils.NO_ROTATION, false, false, false),
|
||||
INDUCTION_PORT(BasicBlock.BASIC_BLOCK_2, 2, "InductionPort", TileEntityInductionPort::new, true, BlockStateUtils.NO_ROTATION, true, false, false),
|
||||
INDUCTION_PORT(BasicBlock.BASIC_BLOCK_2, 2, "InductionPort", TileEntityInductionPort::new, true, BlockStateUtils.NO_ROTATION, true, false, false, true),
|
||||
INDUCTION_CELL(BasicBlock.BASIC_BLOCK_2, 3, "InductionCell", TileEntityInductionCell::new, true, BlockStateUtils.NO_ROTATION, false, true, false),
|
||||
INDUCTION_PROVIDER(BasicBlock.BASIC_BLOCK_2, 4, "InductionProvider", TileEntityInductionProvider::new, true, BlockStateUtils.NO_ROTATION, false, true, false),
|
||||
SUPERHEATING_ELEMENT(BasicBlock.BASIC_BLOCK_2, 5, "SuperheatingElement", TileEntitySuperheatingElement::new, true, BlockStateUtils.NO_ROTATION, false, false, false),
|
||||
|
||||
Reference in new issue
Block a user