-
Notifications
You must be signed in to change notification settings - Fork 11
Making something readable by circuits
If you want to make something readable by Reader Circuits, there are two ways of doing this in the API.
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
.
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.