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 | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/EntryRegistry.java b/src/main/java/me/shedaniel/rei/api/EntryRegistry.java index 06a9cca1f..01539e374 100644 --- a/src/main/java/me/shedaniel/rei/api/EntryRegistry.java +++ b/src/main/java/me/shedaniel/rei/api/EntryRegistry.java @@ -15,21 +15,21 @@ import java.util.Collection; import java.util.List; public interface EntryRegistry { - + @SuppressWarnings("deprecation") static EntryRegistry getInstance() { return RoughlyEnoughItemsCore.getEntryRegistry(); } - + /** * Gets the current modifiable stacks list * * @return a stacks list */ List<EntryStack> getStacksList(); - + List<ItemStack> appendStacksForItem(Item item); - + /** * Gets all possible stacks from an item * @@ -37,11 +37,11 @@ public interface EntryRegistry { * @return the array of possible stacks */ ItemStack[] getAllStacksFromItem(Item item); - + default void registerEntry(EntryStack stack) { registerEntryAfter(null, stack); } - + /** * Registers an new stack to the entry list * @@ -51,7 +51,7 @@ public interface EntryRegistry { default void registerEntryAfter(EntryStack afterEntry, EntryStack stack) { registerEntryAfter(afterEntry, stack, true); } - + /** * Registers an new stack to the entry list * @@ -61,10 +61,10 @@ public interface EntryRegistry { */ @Deprecated void registerEntryAfter(EntryStack afterEntry, EntryStack stack, boolean checkAlreadyContains); - - + + void queueRegisterEntryAfter(EntryStack afterEntry, Collection<? extends EntryStack> stacks); - + /** * Registers multiple stacks to the item list * @@ -74,7 +74,7 @@ public interface EntryRegistry { default void registerEntriesAfter(EntryStack afterStack, EntryStack... stacks) { registerEntriesAfter(afterStack, Arrays.asList(stacks)); } - + /** * Registers multiple stacks to the item list * @@ -82,7 +82,7 @@ public interface EntryRegistry { * @param stacks the stacks to register */ void registerEntriesAfter(EntryStack afterStack, Collection<? extends EntryStack> stacks); - + /** * Registers multiple stacks to the item list * @@ -91,7 +91,7 @@ public interface EntryRegistry { default void registerEntries(EntryStack... stacks) { registerEntriesAfter(null, stacks); } - + /** * Checks if a stack is already registered * @@ -101,5 +101,5 @@ public interface EntryRegistry { default boolean alreadyContain(EntryStack stack) { return CollectionUtils.anyMatchEqualsAll(getStacksList(), stack); } - + } |
