Expose ISourceTile as a capability #1085
Open
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 reworks the current system to make use of a new
SOURCE_TILE
capability in order to allow block entities that don't directly extendAbstractSourceMachine
to fully interact with the Source API.The primary motivation for this PR comes from the Ars Énergistique AE2 add-on, which makes use of capabilities for things such as the Source P2P Tunnel in order for the tunnel to be recognised as something that can store and transfer source.
Relays have also now been made to store the direction of set blocks to assist with directional capability lookup.
(joint effort with @dkmk100)