aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/threads
AgeCommit message (Collapse)Author
2022-07-23add(api/enums): particle and sound effect enumerations (#1154)Léa Gris
* add(api/enums): particle and sound effect enumerations - Adds new GregTech API enumerations: - `ParticleFX`: Enumerates known EntityFX particles. - `SoundResource`: Enumerates known sounds with, id and ResourceLocation. - Refactors code to use the new enumerations instead of string literals. - Uses `ParticleFX` and `onRandomDisplayTick` to improve or implement new particle effects for these machines: - BBF: Adds random flames in front of the firebox. - Steam machines: Changes pressure-exhaust particles to white vapour, rather than dark smoke. - Magic Energy Absorber: Adds random effect, of absorbed magical purple particles, by the EnderDragon Egg siphon. - Forge Hammer: Adds sparse random sparks, ejected from the main face.
2021-08-22Launch at least one worker threadGlease
2021-07-03fix typos in enet implementationGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-06-16add graph network to pipes and implement it for powerkorneel vandamme
2021-04-27fix(textfiles): add missing neline at end of filesLéa Gris
git and diff tools will complain if text file does not end with a newline. Fixed all text files in the repository with Linux bash shell: ```sh git ls-files -z | while IFS= read -rd '' f; do mime="$(file --brief --mime "$f")"; if [ -z "${mime##text/*}" ]; then tail -c1 "$f" | read -r _ || printf '\n' >>"$f"; fi; done ```
2021-01-21Make sure the onServerTick event is actually called.Jason Mitchell
2021-01-18add comment as to onServerTick vs onWorldTickJason Mitchell
2021-01-18try/finallyJason Mitchell
2021-01-18Include getBlock and getBlockMetadata in the lockJason Mitchell
2021-01-18Do some locking around getTileEntity to avoid CMEs on the main threadJason Mitchell
2020-12-26Machine Block Update changesJason Mitchell
* Conditionally trigger an update on front facing (Needed for pipelines) * Use a queue instead of recursion
2020-12-21attempt fix cme on gt block updatebotn365
attempt to fix a concurentModificationexeption crash when having large gt block updates
2020-06-12fix derpMartin Robertz
2020-06-12fixDreamMasterXXL
2020-06-12Revert "Revert "MachineBlock runnable toggle""DreamMasterXXL
This reverts commit c40ad6aecab563410ad68fde6e39bcc0e3121469.
2020-06-11Revert "MachineBlock runnable toggle"DreamMasterXXL
This reverts commit 8b93a2909d7285f6506a56889929039c41882845.
2020-06-09MachineBlock runnable togglebartimaeusnek
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
2020-04-17Just in case?Technus
2020-04-17Add more logging to shutdownTechnus
2020-04-17Remove old commentTechnus
2020-04-17Shutdown properlyTechnus
2020-04-15Merge branch 'experimentalMogballThreading' of ↵Technus
https://github.com/GTNewHorizons/GT5-Unofficial into experimentalMogballThreading # Conflicts: # src/main/java/gregtech/api/threads/GT_Runnable_MachineBlockUpdate.java
2020-04-15Refactor to fixed thread pool executorTechnus
Use actually something made for this task...
2020-04-15Refactor to fixed thread pool executorTechnus
Use actually something made for this task...
2020-04-14crashfixbartimaeusnek
+ Added a new Thread every time a world is loaded Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
2020-04-14shortened the codebartimaeusnek
+ by using toUpdate as sync object Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
2020-04-14Made use of Thread.wait()bartimaeusnek
+ shortened "causeMachineUpdate" method Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
2020-04-14Named the threadbartimaeusnek
+ actually use the right method (and not the old one lol) + Interrupted the Thread onServerAboutToStop Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
2020-04-14Merge branch 'experimental' into experimentalMogballThreadingbartimaeusnek
2020-04-14Tried to make Mogballs Optimisation properly threadedbartimaeusnek
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
2020-04-13Revert "Use HashSet for machine block update and limit recursion depth"Martin Robertz
2020-04-13remove recursion depth limit and nullcheck on instanceofMogball
2020-04-12Review commentsMogball
2020-04-12Fix non GT tileentities should still propagateMogball
2020-04-12Use HashSet for machine block update and limit recursion depthMogball
2016-09-22Remove null checksMuramasa
2015-10-21Reformat codeShawn Buckley
2015-10-18Move source directoryShawn Buckley