// 
// Decompiled by Procyon v0.6.0
// 

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(final T t) {
        try {
            this.acceptNow(t);
        }
        catch (final Throwable e) {
            throw SneakyThrow.sneakyThrow(e);
        }
    }
    
    void acceptNow(final T p0) throws E, Throwable;
}
