package com.hypixel.hytale.sneakythrow.consumer;
import com.hypixel.hytale.sneakythrow.SneakyThrow;
import java.util.function.Consumer;
@FunctionalInterface
public interface ThrowableConsumer<T, E extends Throwable> extends Consumer<T> {
default void accept(T t) {
try {
this.acceptNow(t);
} catch (Throwable e) {
throw SneakyThrow.sneakyThrow(e);
}
}
void acceptNow(T var1) throws E;
}