I added a piston class with pseudo code in the functions. I'll change change the pseudo code to actual code later.
The plan is to have the redstone class activate the piston functions when it find a piston as one of the device it is giving power to.
When the redstone class finds a device to power, it needs to put that code into a queue that will be executed during the next world tick. Any ideas on how to do this? I think there might already be code that does something similar to this in the source.
The plan is to have the redstone class activate the piston functions when it find a piston as one of the device it is giving power to.
When the redstone class finds a device to power, it needs to put that code into a queue that will be executed during the next world tick. Any ideas on how to do this? I think there might already be code that does something similar to this in the source.