* Improve performance of predicted insert. Don't copy stacks nearly as often
* Cache what stack is in the slots and update comments
* Cleanup up pathfinder code some
* Clean up a bit more mainly TileComponentEjector
* Fix crash caused by an earlier commit
* Minor cleanup
* Minor cleanup
* Slightly clean up TileEntityBin and fix creative bin auto eject lowering item count
* Partially cleanup getpaths, and prep work for better handling of AcceptorData with mulitple TransitResponses
* Scratch previous attempted idea of combining responses
* Use EnumMap instead of HashMap for keeping track of side data for Ejector and prep for an eventual change to TransitResponse of inserting into more than one slot at a time if the stack would be best split among multiple
* Change some more HashMaps to EnumMaps
* Make it easier to read component ejector for gas and fluids
* Inline getStacksToDest so that it can bail even earlier in cases when destination is full
* Don't create a copy of the stack if it won't be inserted AND also fix having broken inserting across multiple slots
* Replace a bunch of other HashMap instances with EnumMap where possible
* Make a couple sets more generic
* Use Int2ObjectMap for int based cache & tidy clamping
* ensure EnumMap doesnt throw NPE
* FastUtil map changes
* First pass reformatting code to be more readable (common still not done)
* Replace google common collect calls with Java calls where possible
* Remove a bunch of unnecessary parenthesis leaving clarifying ones
* Add some missing @Nonnull annotations
* Fix checking wrong type
* Remove unnecessary continue/return statements and simplify comparision check
* Pass exception instead of directly printing stack trace
* Work on cleaning up common, through config so far
* Work on cleaning up common, through integration so far
* Work on cleaning up common, through network so far
* Work on cleaning up common, through tier so far
* Remove empty constructors that get created by default anyways
* Work on cleaning up common, through transmitters so far
* Work on cleaning up common, through utils so far
* Finish cleaning up spacing for common
* First pass improving performance of EnergyNetwork emitting
Only sends power once per tick per accept now. Lots of comments of design included so that I have a backup of my thought process/solutions if I run into some blocker.
* Optimized implementation slightly, still more to be done
* Cleanup some comments
* Move send energy to acceptor logic to CableUtils
Replace old emit logic in CableUtils with using the newer logic
* Inline getConnections to slightly cut down on number of operations ran
* Fix a couple bugs with targets that have multiple sides
Also improve performance reducing frequency at amountPerChanged needs to be ran
* Improve performance of CableUtils.emit by faking we have one 6 sided target as opposed to having 6 one sided targets
* Allow simulating insertion into the EnergyAcceptorWrapper for IC2
* Fix using wrong value for total acceptor count when acceptors have multiple sides
* Use an EnumMap instead of a HashMap for the Target
* First pass converting gas and fluid network emission to target system
* Improve general fluid and gas emitting using the utility method
Change a couple things to using Sets rather than lists for emitting so that we can ensure each side is only done once.
* Document and cleanup method/variable names of target classes
* Start deduplicating emitting code into a EmitUtils file
Logic for Gas and Fluid emitting fully generic now
* Partially extract how we keep track of the split to make it easier to deduplicate the common code
* Start moving shifting needed to given to the targets themselves
* Use generics to deduplicate a lot of the remaining duplication in the new emitting code
* Fix having broke energy emitting and also further cleanup some code
* Half the number of loops the HeatNetwork does onUpdate
* Fix potentially divide by zero errors
* Deprecate and remove implementations of getAcceptors as it is no longer needed
* Never round up from doubles for sending power stops energy networks going negative.
* Fix more spots where we were accidentally rounding upwards/clamping improperly for energy
* Cleanup impl to use less memory and adjust better as sending if
the possible amount changed/should be adjusted
Also removed the need for a specific IntegerTypeTarget intermediary class
* Cleanup the docs of some of the changed things
* Given tickEmit is private now we already know it is only being called serverside
* Improve documentation slightly and rename a method to be more accurate
* Remove limit on IC2 given it uses doubles as well now
* Rename amountPer to amountPerTarget
* 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
Add new type "SideConfig" which is observable, this could come in handy
later.
Add hasSideForData method in componentConfig, which is much more
efficient than calling getSidesForData().contains.
Refactor duplicate calls to getConfig into single instances. getConfig
is a nontrivial method.
It will hopefully make networks more robust and efficient, using lessons learned since last time I rewrote large parts of it.
We can hopefully avoid Concurrent Modification issues this way, and it should be more forgiving on chunk loads as well.
Transmitter stuff is working well, next acceptors and client rendering need tobe brought in.
I went for what seemed like a good level of organisation:
Java
__________
Mekanism
__________
Minecraft
Forge
FML
__________
Netty
LWJGL
__________
Other APIs
__________
Static Imports.