package com.hypixel.hytale.sneakythrow.supplier;
import com.hypixel.hytale.sneakythrow.SneakyThrow;
import java.util.function.Supplier;
@FunctionalInterface
public interface ThrowableSupplier<T, E extends Throwable> extends Supplier<T> {
default T get() {
try {
return (T)this.getNow();
} catch (Throwable e) {
throw SneakyThrow.sneakyThrow(e);
}
}
T getNow() throws E;
}