* 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
* 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.
* 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
* 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
* Make transmitters return an actual particle instead of the default WHITE
Make fluid tank particle/break particle be the glass wall
Have hit particle for fluid tank and transmitters use the correct tier instead of being basic. Running and Falling particle still displays as the basic tier
* Get actual state for transmitters (gets the proper tier data so that we don't have to manually replace it)
* Fix dif of just imports
* Fix dif of just imports
* query the blockstate directly for the MachineType
* remove incorrect copy-pasted use of FML logger
* remove unnecessary list wrapping
* tidy copied particle code a little and un-inline constants
* use built in singleton rather than immulatble list
* use getters & setters for InfuseStorage to prevent type/amount discrepancies
* Fix a few checks when reading from network/NBT
* Fix some spacing I screwed up by accident
* fix metallurgic infuser gui texture for dark gauge
* prevent Out of Bounds exception in factory ItemMeshDefinition
* prevent Out of Bounds error in item stack display name
* Respect NONE connection between pipes. Fixes#4781
* prevent fluid/gas pipes from connecting if their contents arent the same (part 1)
* prevent some case of incorrect network merges that would convert/void a fluid/gas
* Add a way to check if a network is compatible with an buffer
Used for checking the orphan's buffer against the external network
* rename some generic type variables for readability
* introduce BUFFER generic type variable
* Fix missing null check causing new pipes not being able to be added to a network
* More checks for when there is an invalid factory
* bump api version & use a constant for all
* add default method to not break binary compat
* Refresh if a connection exists if a transmitter failed to combine two networks
Fallback to the network's buffer as if we have not saved any data yet the TE's buffer may still be null
* Add a way to get the pipes buffer falling back to the network, rather than doing it from the same method. This ensures that there is no accidental leakage where the count of the buffer matters
* Return a null buffer for pressurized tube buffer if the stack is empty
* Allow merging of networks when they are able to connect again
Visuals still need a minor update to sync the type it should be rendering
* Update network visuals when networks merge
* allow unconnected sides to have their mode set - except logistical transporters which already used that function, they only can un-NONE their unconnected sides
* Cleanup redstone handling of TileEntitySidedPipe
Properly mark the transmitters as dirty if the redstone mode changed during refresh
* Fix not updating tank capacity when loading TEFluidTank from NBT
* Make transmitters fix invalid connections on load
* Address comments and call refreshConnections() directly.
* Fixes null pointer on no recipe found #5392
Compare the recipe against the cache
* Add a few missing secondary input checks
* Don't set the cached recipe when only checking if an item can be inserted
* Port remainder of #5327 implementing #5236 sawing factories
* Add missing blockstate files for sawing factories
* Inline helper method
* Revert a bit of minor formatting changes to make dif easier to read
* remove redundant mcmeta for sawing front textures
* de-dupe sawmill factory textures (left+right are the same)
* Port 72251446f make many more Mekanism fluid renderers Stack aware for NBT purposes
* Make it a bit easier to see osmium in the compressor
* fix a missed stack color get
* move osmium gas colour back to a more vibrant blue for contrast reasons
* Port d303295da Move all version number references to gradle based
* Port ebb0c467717 dont set main multiblock position to air if its not loaded or not the right tile. Log if its not null but not what we expect
* Fix compile error
* Port dfd5252cd and improve factory auto sort performance
* Fix comparing against wrong item causing being unable to insert into factory at all
* Only auto sort into a slot if the recipe output will stack with the current output
* Make factory slot insertion obey changes to checking output items as well
* Address c368692a3; create upper bound on number of blocks scanned and reduce memory utilization
* Final cleanup on sparkle overhaul; all multiblock structures should now sparkle in < 1ms on average
* Remove timing info; either enable sparkles or the message (not both)
Check against homeLocation when finding TransporterStack acceptors; also, don't allow inventory insertion/extraction of things in charge slot for Digital Miner