mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-06-29 05:41:45 +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);
|
|
}
|
|
}
|