mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-07-08 18:00:04 +00:00
17 lines
335 B
Java
17 lines
335 B
Java
|
package com.boydti.fawe.object;
|
||
|
|
||
|
import java.util.function.Consumer;
|
||
|
|
||
|
public abstract class DelegateConsumer<T> implements Consumer<T> {
|
||
|
private final Consumer parent;
|
||
|
|
||
|
public DelegateConsumer(Consumer parent) {
|
||
|
this.parent = parent;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void accept(T o) {
|
||
|
parent.accept(o);
|
||
|
}
|
||
|
}
|