diff options
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/EntryRegistry.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/EntryRegistry.java | 14 |
1 files changed, 13 insertions, 1 deletions
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 |
