aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/EntryRegistry.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-01-02 14:31:16 +0800
committershedaniel <daniel@shedaniel.me>2020-01-02 14:31:16 +0800
commit5e2eccadbd91171c01cdb209d1338bcfb7786b1c (patch)
tree6c7387de5baea8b335e8abe58651018f77ad2d41 /src/main/java/me/shedaniel/rei/api/EntryRegistry.java
parente8714fe8fc1dcaec7ad299c63e2b657870c8fb40 (diff)
downloadRoughlyEnoughItems-5e2eccadbd91171c01cdb209d1338bcfb7786b1c.tar.gz
RoughlyEnoughItems-5e2eccadbd91171c01cdb209d1338bcfb7786b1c.tar.bz2
RoughlyEnoughItems-5e2eccadbd91171c01cdb209d1338bcfb7786b1c.zip
3.3
Fix #58 Close #134 Close #158 Fix #227
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/EntryRegistry.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/EntryRegistry.java28
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);
}
-
+
}