From 7d145d3265d1de8daaccc13e8a50aa8930706790 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Sat, 7 Dec 2019 18:57:27 +0800 Subject: 3.2.15 Fix #199 Close #195 Close #138 --- src/main/java/me/shedaniel/rei/api/EntryRegistry.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/main/java/me/shedaniel/rei/api/EntryRegistry.java') diff --git a/src/main/java/me/shedaniel/rei/api/EntryRegistry.java b/src/main/java/me/shedaniel/rei/api/EntryRegistry.java index 4fe71b5e3..6c9f56fdd 100644 --- a/src/main/java/me/shedaniel/rei/api/EntryRegistry.java +++ b/src/main/java/me/shedaniel/rei/api/EntryRegistry.java @@ -44,7 +44,19 @@ public interface EntryRegistry { * @param afterEntry the stack to put after * @param stack the stack to register */ - void registerEntryAfter(EntryStack afterEntry, EntryStack stack); + default void registerEntryAfter(EntryStack afterEntry, EntryStack stack) { + registerEntryAfter(afterEntry, stack, true); + } + + /** + * Registers an new stack to the entry list + * + * @param afterEntry the stack to put after + * @param stack the stack to register + * @param checkAlreadyContains whether the list should check if it is already on the list + */ + @Deprecated + void registerEntryAfter(EntryStack afterEntry, EntryStack stack, boolean checkAlreadyContains); /** * Registers multiple stacks to the item list -- cgit