package com.boydti.fawe.object; import java.util.function.BiConsumer; public abstract class RunnableVal2 implements Runnable, BiConsumer { public T value1; public U value2; public RunnableVal2() { } public RunnableVal2(T value1, U value2) { this.value1 = value1; this.value2 = value2; } @Override public void run() { run(this.value1, this.value2); } public abstract void run(T value1, U value2); public RunnableVal2 runAndGet(T value1, U value2) { run(value1, value2); return this; } @Override public void accept(T t, U u) { run(t, u); } }