GTNewHorizons / GT-New-Horizons-Modpack

New Modpack with Gregtech, Thaumcraft and Witchery
https://www.gtnewhorizons.com/
Other
891 stars 280 forks source link

Add direct function alternatives for information retrieved from getSensorInformation #16458

Open Zeruel13 opened 1 month ago

Zeruel13 commented 1 month ago

Your GTNH Discord Username

Zeruel1169

Your Pack Version

2.6.1

Your Proposal

Add a direct function alternative for any information that can be retrieved from getSensorInformation. Since getSensorInformation was changed in Pull request #21 https://github.com/GTNewHorizons/Computronics/pull/21, any calls made via getSensorInformation waits until the next server tick to get info. This breaks code my code https://github.com/Zeruel13/gt_MachineOS which updates every second.

Specific information that this code requires:

Your Goal

There should be a way to retrieve this information besides using .getSensorInformation. It would allow a way to get the info without yielding and waiting a server tick which .getSensorInformation does.

Your Vision

Adds more ways for users to retrieve information about machines other than .getSensorInformation which isn't direct.

Final Checklist

boubou19 commented 1 month ago

Have you tried to access them via a transposer?

Zeruel13 commented 1 month ago

While you can access it via a transposer, adding direction functions would simplify user interaction. Especially when working on larger OC programs. Using a transposer solely for this info is a workaround and doesn't fit with it's intended role of moving items and fluids.