* Don't check Y height for sending update packets. Seems to fix compat with cubic chunks #5262
* First pass transitioning from using sendToReceivers to using built in forge stuff
* Make code cleaner to read with helper methods
* Fix accidental extra code from a local branch issue I had
* Further improve readability
* Rename method
* shortcut if player not in same dimension & use EMP.server for the reference
* 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
* Cleanup a bit of infusion code
* Empty item stacks already return 0 for their count
* Go back to not assuming null and empty tag are the same
* Reorder which order the arguments are passed to equalsWildcard for consistency with the rest of the class as it is a symmetrical method anyways
* Use Recipe generics in more places
* Use Recipe generics in even more places
* Use Recipe generics for IMCHandler
* Turns out I was wrong about the old enum names being used
* More Recipe generics for getting recipes
* Pass MachineType as constructor parameter up the chain
* Minor readability cleanup
* Use method to get block name while in external classes
* Improve readability of some references to internal enum classes
* More missed recipe generics to reduce number of casts
* Make sure to check NBT for the recipes, and switch back to for loops from streams
* 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
* Add comparator support to a lot of various blocks. Closes#5447
* Add comparator support for various generator blocks
* Cleanup some old calculations not using the new utils method
* remove direct guava predicates from BlockStateMachine
* cleanup blockstatebasic
* fix a large number of e.printStacktrace calls, narrow ComputerIntegration exception signature
* fix simple todos, remove invalid todos, unify some duplicate rendering code
* use a generic method to get around unchecked warning
* remove some redundant uses of hasCapability
* experimental OptionalCapability class. not in use yet
* nullable checks/annotations & remove duplicate field controlType in factory TE
* Inline various redundant variables
* Remove unused list
* Cleanup BlockStateGenerator
* Replace string constants with pointers to the proper mod id constant
* As 9.7.5 breaks backwards compat API wise for the DynamicNetwork this is as good a time as any to remove this deprecated method
* Use two argument constructor instead of appending a ':' inbetween
* Convert other BlockState type classes to using suppliers for tile entity creation
* 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
* Shift keybinds to a builder pattern to avoid the array length issue, use Bitsets for the boolean arrays, remove unused and redundant constructor
* Use proper lang keys for KeyBinding creation instead of pre-localising
* WIP tidy keyhandler tick method
* more key handler tidying
* tweak handler to use translation placeholders so languages can reconfigure the foo: bar display
* add todo
* move tank, bow & flamethrower keys to use string format placeholders
* fix NPE on configurator changes
* nullable annotations
* prefix keybind lang keys with modid
* make datafixers into their own thing
* make a datafixer base class
* remove keybind fixer, options datafixers dont work
* Revert "remove keybind fixer, options datafixers dont work"
This reverts commit c57f6c1b05ed6b26e7fb7774bada4ca53f6c655e.
* datafix the keybinds to the new format
* documentation
* Remove unused import and extra dash from runClient args
* Add single item functionality, update tooltips
* Wrap tooltips, use prefixes in lang files.
* Fix broken ItemStack sizeMode, code cleanup, gui improvements.
* LogisticalSorter muffling upgrade support
* Code style changes and cleanup, proper translation
* Fix lights on side of sorter
* Change unused map (values) to use a set
* bump api version
* make DynamicNetwork fields non public and weaker type
* remove overhead of a set in CME avoidance
* Minor cleaning
* Cleanup readability of firing events
* Minor cleanup of MinerUtils
* Cleanup fallback system for MinerUtils and inline fallbackGetSilkTouch
* restore block drops backwards compatibility
* handle shulker boxes in digital miner
* use fake player in a few more event spots & add helper for getting a block's state for placement
* Change default placement so that logs face upwards
* fix bad stacking check for Digital Miner. #5449
* map to forge's stack stackability check so caps are accounted for
* check nbt when taking a defined item
* fix bad reference equality check for empty
* Switch sorting to using our stackable method
* Fix bad stack check for robit #5454
* Improve stack compare for robit smelting
* Port #4952 by @danielzgtg Item drop compatibility
* Make the dif slightly easier to read by reordering a couple things
* Extract some of the drop logic into super classes to make it easier to read what is going on
* Add missing Nonnull annotation
* Inline the patched harvest block method
* Remove unneeded listener for BlockBounding and fix bounding blocks being set to air not removing the full thing
* Make it easier to tell at a glance that it passes it as false for willHarvest
* give BlockMekanismSimple a better name
* Add support for configurable machines storage.
* Make factories and tooltips use machine storage from config. Renaming.
- Renamed config instance members, to reduce redundancy
- Made machines get Storage and Usage from MachineType
- Other miscellaneous cosmetic changes on the matter
* Update ItemBlockMachine.java
* Tweak factories to always have storage needed to run all processes.
* Add storage config to PacketConfigSync.
* Add some more Compatibility
* Implement the requested Changes.
* Merged the two Mystical Agriculture Recipe Methods
sorry wasn't seeing that line of your comment
* Added support for BoP and Forestry Gems
Forestry: Apatite
Biomes O' Plenty: Amber, Amethyst, Malachite and Tanzanite
* 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
* Use security utils for checking access to teleporter and quantum entangloporter
Also add the security tab to the corresponding gui's
* Ensure tile gets saved when security mode changes
* Make TOP display full capacity of fluid and gas networks. Also fix some capabilities not returning the proper. TOP Gas integration now displays the gas color as well.
* Ensure no repercussions for getting MechanicalPipe's TOP network tanks
* Ensure no repercussions for getting PressurizedTube's TOP network tanks
* Display hydrogen with a slightly incorrect color so TOP renders properly
* Fix dynamic valve having item handler always disabled instead of just when multiblock is not made
* Fix a few itemhandlers that should not be disabled for side == null TOP compat
* Always expose networks buffer instead of local buffer if there is a network