Applied Energistics 2

Applied Energistics 2

137M Downloads

Update `IGridCache#onUpdateTick()` to support different worlds, phases, and priorities

yueh opened this issue ยท 0 comments

commented

This allows certain implementations to take the IWorld or phase into account.

E.g. the ticking could tick all IGridTickable for their respective world and not everything during the global server tick. This could e.g. give a slightly more detail report about which worlds are the most heavily affected and not just the server itself.

Different phases would allow it to be a bit more reliable or specific. E.g. adding and removing new nodes could happen in different phases and solve some concurrency issues or reduce workarounds for them.

A priority for each cache would further allow them to be ordered and update in a known order. E.g. ensuring that the pathing and energy updates happen before nodes are ticked while they should be already powered down due to a lack of energy.