diff options
| author | shedaniel <daniel@shedaniel.me> | 2019-12-10 23:31:09 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2019-12-10 23:31:09 +0800 |
| commit | 977350c12271246c2f220761fb33d58bab872357 (patch) | |
| tree | 4de8f3bf4186d532fc9cb3ef130c1e63fff27bd3 /src/main/java/me/shedaniel/rei/utils/ExecutorUtil.java | |
| parent | 1b055888a74e68f5a287068428dc80196558fc98 (diff) | |
| download | RoughlyEnoughItems-977350c12271246c2f220761fb33d58bab872357.tar.gz RoughlyEnoughItems-977350c12271246c2f220761fb33d58bab872357.tar.bz2 RoughlyEnoughItems-977350c12271246c2f220761fb33d58bab872357.zip | |
Semi working favorites
Diffstat (limited to 'src/main/java/me/shedaniel/rei/utils/ExecutorUtil.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/utils/ExecutorUtil.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/utils/ExecutorUtil.java b/src/main/java/me/shedaniel/rei/utils/ExecutorUtil.java new file mode 100644 index 000000000..215651523 --- /dev/null +++ b/src/main/java/me/shedaniel/rei/utils/ExecutorUtil.java @@ -0,0 +1,13 @@ +package me.shedaniel.rei.utils; + +import java.util.function.Supplier; + +@Deprecated +public class ExecutorUtil { + private ExecutorUtil() { + } + + public static void execute(Supplier<Runnable> runnableSupplier) { + runnableSupplier.get().run(); + } +} |
