From fd4026dd30a2f8ba4c261f344a16b3adee9823a4 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Wed, 2 Jun 2021 16:22:27 +0800 Subject: Allow a broader registerFiller --- .../me/shedaniel/rei/api/client/registry/display/DisplayRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/src') diff --git a/api/src/main/java/me/shedaniel/rei/api/client/registry/display/DisplayRegistry.java b/api/src/main/java/me/shedaniel/rei/api/client/registry/display/DisplayRegistry.java index 36c726145..1c9ac5d0c 100644 --- a/api/src/main/java/me/shedaniel/rei/api/client/registry/display/DisplayRegistry.java +++ b/api/src/main/java/me/shedaniel/rei/api/client/registry/display/DisplayRegistry.java @@ -183,7 +183,7 @@ public interface DisplayRegistry extends RecipeManagerContext { * @param the type of object * @param the type of display */ - default void registerFiller(Class typeClass, Function filler) { + default void registerFiller(Class typeClass, Function filler) { registerFiller(typeClass, Predicates.alwaysTrue(), filler); } @@ -199,7 +199,7 @@ public interface DisplayRegistry extends RecipeManagerContext { * @param the type of object * @param the type of display */ - void registerFiller(Class typeClass, Predicate predicate, Function filler); + void registerFiller(Class typeClass, Predicate predicate, Function filler); /** * Registers a display filler, to be filled during {@link #tryFillDisplay(Object)}. -- cgit