feature: refined storage compat - #581
Draft
Roelymole wants to merge 12 commits into
Draft
Conversation
…compat to split silicon between the two slots in the circuit fabricator
…ressor into a valid recipe to allow for autocrafting
…oice of data structures
…inserted into the silicon slots
…Handler functional interface Add the AbstractCompressorBlockEntity class to do so
…handle the case where multiple different item stacks match the same ingredient i.e. Using both coal and charcoal to make compressed steel
… CircuitFabricatorBlockEntity class
… into feature/refined-storage-compat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR depends on MachineLib#26 which provides a way for machines to define a custom implementation of how items/fluids/energy should be inserted. The motivation behind this is to make autocrafting with the Refined Storage mod possible and to a certain extent using other methods of inserting resources such as vanilla hoppers.
For example, a custom insert handler has been defined for the circuit fabricator in order to distribute silicon evenly between the two slots.
A much more involved example is the (electric) compressor, which attempts to find a compressing recipe that matches the current inputs and then rearrange the items into the correct slots in order to craft this recipe (functional, but still work in progress).
The other Galacticraft machines should work by default without needing any custom handling, but this can be added later as required.