You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to make something readable by Reader Circuits, there are two ways of doing this in the API.
Method 1: Direct implementation
This introduces a hard dependency on Essentials, and your mod will not run without Essentials installed.
Make the block of interest implement com.Da_Technomancer.essentials.api.redstone.IReadable.
Method 2: Block registration
This does not introduce a hard dependency on Essentials, assuming you follow best practices for integrating with another mod.
For the block of interest, define a new instance of com.Da_Technomancer.essentials.api.redstone.IReadable.
Then, register this block as a readable block by calling com.Da_Technomancer.essentials.api.redstone.RedstoneUtil::registerReadable and passing your block and the IReadable instance.
This also allows you to make blocks from vanilla or other mods readable.