Package dev.ultreon.mods.xinexlib
Class EnvExecutor
java.lang.Object
dev.ultreon.mods.xinexlib.EnvExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tstatic <T> Tstatic <T> TcallInEnvSpecific(Supplier<Callable<T>> client, Supplier<Callable<T>> server) static <T> Tstatic <T> Tstatic <T> TgetInEnvSpecific(Supplier<Supplier<T>> client, Supplier<Supplier<T>> server) static voidstatic voidstatic <T> voidrunInEnvSpecific(Supplier<Runnable> client, Supplier<Runnable> server)
-
Constructor Details
-
EnvExecutor
public EnvExecutor()
-
-
Method Details
-
runInEnv
-
runInEnv
-
runInEnvSpecific
-
getInEnv
-
getInEnv
-
getInEnvSpecific
-
callInEnv
- Throws:
Exception
-
callInEnv
public static <T> T callInEnv(Env env, Supplier<Callable<T>> supplier, Callable<T> fallback) throws Exception - Throws:
Exception
-
callInEnvSpecific
public static <T> T callInEnvSpecific(Supplier<Callable<T>> client, Supplier<Callable<T>> server) throws Exception - Throws:
Exception
-