Package net.minecraftforge.fml.util
Interface ThreeConsumer<T,U,V>
-
public interface ThreeConsumer<T,U,V>
Three-consumer version of consumer. Allows wrapping methods with three arguments.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(T t, U u, V v)
static <T,U,V>
java.util.function.Consumer<T>bindArgs(ThreeConsumer<? super T,U,V> c, U arg2, V arg3)
Bind arguments to the three consumer to generate a consumer.
-
-
-
Method Detail
-
bindArgs
static <T,U,V> java.util.function.Consumer<T> bindArgs(ThreeConsumer<? super T,U,V> c, U arg2, V arg3)
Bind arguments to the three consumer to generate a consumer.ThreeConsumer.bindArgs(MyClass::instanceMethodReference, arg1, arg2).apply(myClassInstance)
- Returns:
- a Consumer which has the second and third arguments bound.
-
-