Commit Graph
2587 Commits
Author SHA1 Message Date
aidancbrady c07ecda4de warning fixes, cleanups 2019-03-29 15:46:43 -04:00
aidancbrady 2e16622b84 Overhaul InvStack to be more efficient, better designed and thoroughly documented. Also, add in sanity checks to IItemHandler wraps so we can fix any potential issues. 2019-03-29 15:22:29 -04:00
Richard Freimer 8c276b6b1a IInventory automation removal (#132)
* Start killing off IInventory
* Write a couple TODO's of things that should eventually use IItemHandler
* Remove unused variable, and add back special case handling for bins
* Update some of the implementations of getSlotsForFace
https://github.com/mekanism-mod/Mekanism/commit/11e9e2df7a2f2b053fcb9371bf496f7aa88a04cd
* Cleanup a bit of implementation around items being valid for a slot
2019-03-29 10:32:11 -06:00
Aidan 934788e0e7 Transit request overhaul (#135)
* Fix a pretty glaring issue in Pos3D equality checks
* TransitRequest/TransitResponse overhaul. Items can now be pulled from multiple slots at once by Logistical Transporter and Logistical Sorter. getTopStacks() is now buildInventoryMap() and is more comprehensive of a total inventory. Note this is entirely untested and may have some issues to work out!
* Cache hash code of HashedItem
* Remove ISidedInventory/IInventory implementations
2019-03-29 08:00:18 -06:00
Dave Smith 987894c63f Reduce idle tick time on DigitalMiner by removing constant refreshing of chunk set 2019-03-28 11:01:58 -06:00
Dave Smith cd52564ef7 Keep trying to send stacks even if one won't fit. 2019-03-27 22:36:01 -06:00
Dave Smith ac371dec01 Logistical Transporter Performance Work (#116)
Introduce a "BATCH" packet that includes all changes for a single tile in one message. Also, removed need for separate sync when a TransporterStack moves from one tile to another. Cumulatively, these changes reduced bandwidth on a busy server from 20Mb/user/sec -> 3 Mb/user/sec.
2019-03-27 22:13:18 -06:00
Dave Smith f6933b662b Overhaul how logistics networks estimate what can fit in the network (#124)
This completely changes the prediction logic when items are inserted into a network. In our testing it works well for every mod, with the occasional issue from Storage Drawers. Their interface for IItemHandler is a little odd and causes problems when they get very full and the network is slow.

* Completely overhaul how prediction of paths is done; use IItemHandler's exclusively
* Add exponential backoff when pulling items, up to 40 ticks
* Cache getSlotLimit; add TODO for investigating why we have a for loop
* Do proper simulation insert when dest slot is empty
* Add better handling of new stacks and break loop once stack is fully used up
2019-03-27 20:18:40 -06:00
temp1011 ff9c32ff6b cleanup stackutils (#127)
* second round of cleanup

* hash stacks in a better way (cherry picked from https://github.com/mekanism-mod/Mekanism/commit/54e80b305726204ffb620d3518f66539a0d7e937)

* add some comments

* rename method for clarity

* don't crash on null registry name
2019-03-27 17:08:36 -04:00
temp1011 3b35315d0c replace custom string wrapping with vanilla method (#128) 2019-03-27 16:37:46 -04:00
Aidan 426ac05e6b Merge pull request #126 from mekanica/dss-remaster-sounds
Remaster sounds
2019-03-26 23:21:12 -05:00
Dave Smith a392514e16 Remaster sounds to all be -30dBFS; remove per-object sound volume; honor config setting for volume adjustment 2019-03-26 21:48:04 -06:00
temp1011 b511470778 remove unused imports 2019-03-26 14:57:31 +00:00
temp1011 224d89a7a5 make sure recipeUtils works for all crafting grids 2019-03-26 14:54:10 +00:00
temp1011 392b7c2ea0 remove and inline methods 2019-03-26 14:50:30 +00:00
pupnewfster 9fefd1b41f Add missing config comment for ChemicalDissolutionChamberUsage 2019-03-24 20:19:18 -04:00
Richard Freimer 5a67067f07 Update config to include comments (#108)
* Add comments to configs
* Removed unused options
* Added a few of the newer options mainline Mekanism supports
* Also list the default values in the MekanismConfig class for easier comparision
* Change spacing slightly for tools config in code
* Add some of the missing generator config comments
* Config comments for tiers, and add missing comment for MinerSilkMultiplier
* Config comments for rest of generators module
* Fix which stick to sawdust recipe
* Config comments for tools
* Config comments for armor
* Add warning to DM radius comment, and fix a couple things addressed in PR comments
2019-03-24 14:40:28 -06:00
pupnewfster 1b6cfd37e9 Address comments on PR 2019-03-24 14:26:33 -06:00
pupnewfster 1a05fc9680 Implement isItemValidForSlot for ItemHandlers and obey it for inserting 2019-03-24 14:26:33 -06:00
pupnewfster 83d0c81151 Fixes incomplete IItemHandler impl of lots of tile entities closes #102 2019-03-24 14:26:33 -06:00
pupnewfster b55fb42453 Fix some tiles outputting gas to the wrong side 2019-03-23 23:27:07 -04:00
Dave Smith 59f4438fb2 Fix #101; Unidict has a strong dependence on a more specific type 2019-03-23 09:29:25 -06:00
pupnewfster f4ab343dab Add support for adding recipes via Compound Ingredients/OreDict
Note: This just automatically adds all the entries for now, rather than requiring you to loop over it yourself.
2019-03-22 19:13:59 -04:00
pupnewfster bfe38cc33a Fix potential null pointer closes #96 2019-03-22 11:12:35 -04:00
pupnewfster 6a7fbfc2f5 Fix location of Digital Miner and Laser Fake Players, for BlockBreakEvent
Closes #98
2019-03-22 11:05:11 -04:00
Dave Smith 8bb52cc1b4 Change lang key to use requested key 2019-03-21 14:50:56 -06:00
temp1011 172bbff10a add config to stop particles spawning on multiblock formation (#61)
* add config to stop particles spawning on multiblock formation, resolves #49
* add action bar message when multiblock formed
2019-03-21 14:50:40 -06:00
Dave Smith 19fcb31aab Use isBurning instead of isActive to play sound 2019-03-21 14:39:15 -06:00
Dave Smith a2b2cb4a95 Cleanup solars UI 2019-03-21 14:25:13 -06:00
pupnewfster 610254c5d1 Fix using wrong recipe category string in places, and broken IMC 2019-03-21 14:23:22 -06:00
pupnewfster e34e92a344 Promote RecipeHandler.Recipe to a generic class 2019-03-21 14:23:22 -06:00
Dave Smith 66d218a59f Fix #85; make sound so that it keeps running at least 10 ticks after machine stops to better deal with per-tick flipflops. Also revert ccd7ed0; UX got too weird. 2019-03-21 11:51:36 -06:00
pupnewfster ad6007a45b Prioritize IItemHandler over IInventory as it is the newer standard 2019-03-21 11:54:25 -04:00
pupnewfster 21017efc68 Don't reference main class from API package
https://github.com/mekanism-mod/Mekanism/commit/7c50d1e7cc3dd915979304b46e77a36068ac457d
2019-03-21 10:53:28 -04:00
Dave Smith 99b67d9c3c Remove unnecessary logic from Laser 2019-03-20 16:03:02 -06:00
Dave Smith 7b71328336 Use accessor for getActive 2019-03-20 16:03:02 -06:00
Dave Smith 7813d39fa6 Remove activity tracking in favor of logic in TileEntityEffectsBlock 2019-03-20 16:03:02 -06:00
Dave Smith ebfe103953 Move activity/lighting update tracking up into TileEntityEffects block 2019-03-20 16:03:02 -06:00
Dave Smith 38a007e29d Rename noisy block -> effect block; move activity/block update logic into it 2019-03-20 16:03:02 -06:00
pupnewfster d7c1a0ced8 Minor cleaning 2019-03-20 15:59:34 -06:00
pupnewfster 7c6441a411 Cleanup background handling of JEI categories 2019-03-20 15:59:34 -06:00
pupnewfster 790ce78668 No need to store the temp recipe 2019-03-20 15:59:34 -06:00
pupnewfster 1c592ec3fa Cleanup some JEI gui code 2019-03-20 15:59:34 -06:00
pupnewfster a446777f3a Cleanup JEI registration 2019-03-20 15:59:34 -06:00
pupnewfster 4b54adc5e5 More closely mirror comparator calculations of fluid tank and gas tank 2019-03-20 15:50:33 -06:00
Dave Smith a4e453e7d5 Fix #53; add support for comparators on bins 2019-03-20 15:50:33 -06:00
Dave Smith ccd7ed019a Fix #72; turns out the sound handling in SP has race conditions 2019-03-20 09:24:20 -06:00
Dave Smith 0f1f4a4b0a Make sure to reset color when rendering fusion reactor 2019-03-19 17:31:31 -06:00
pupnewfster a9451270d3 Reference correct gui superclass. Fixes error in compiling 2019-03-19 19:12:05 -04:00
Richard Freimer cd5fe2040b Gui cleanup (#74)
* Update dependencies for dev environment to have latest versions
* Fix depreated method usage for JEI
* Add Deprecated annotation to methods overriding a deprecated method
* Fix various Deprecated method calls
* Slightly clean up gui code based on IntelliJ inspections
* Remove some unused variables/calculations from the gui code
* Remove some unused variables/calculations from the generator gui code
* Create a bit of hierarchy for Gui's that keep track of TileEntities
* Cleanup Gui Element having majority of variables as public
* Cleanup some duplicate math
* Store tile entity type in a less duplicated manner
* Cleanup Gui ResourceLocation handling. Makes it easier to read the code
* Switch adding to a method
* Switch remaining GUI variables to private/protected
* Partially cleanup Gui Filter code
* Cleanup some of the Chemical Gui Code
* Fix missing a few files in last commit
* Improve handling of Tile Entities in GUIs
2019-03-19 16:10:57 -06:00