aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/EntryRegistry.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2019-12-24 11:31:40 +0800
committershedaniel <daniel@shedaniel.me>2019-12-24 11:31:40 +0800
commit08d80d588a36598114087a79917e36e9d2cc97c3 (patch)
tree95cde698bbf1eca2f83143d39fd206cf2dc803f2 /src/main/java/me/shedaniel/rei/api/EntryRegistry.java
parent7d438f554c4173880a407a6bb8fc80b8a4723845 (diff)
downloadRoughlyEnoughItems-08d80d588a36598114087a79917e36e9d2cc97c3.tar.gz
RoughlyEnoughItems-08d80d588a36598114087a79917e36e9d2cc97c3.tar.bz2
RoughlyEnoughItems-08d80d588a36598114087a79917e36e9d2cc97c3.zip
Finishing workstation usage and close #220
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/EntryRegistry.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/EntryRegistry.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/EntryRegistry.java b/src/main/java/me/shedaniel/rei/api/EntryRegistry.java
index 6c9f56fdd..1a8c5f157 100644
--- a/src/main/java/me/shedaniel/rei/api/EntryRegistry.java
+++ b/src/main/java/me/shedaniel/rei/api/EntryRegistry.java
@@ -13,19 +13,19 @@ import net.minecraft.item.ItemStack;
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();
-
+
/**
* Gets all possible stacks from an item
*
@@ -33,11 +33,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
*
@@ -47,7 +47,7 @@ public interface EntryRegistry {
default void registerEntryAfter(EntryStack afterEntry, EntryStack stack) {
registerEntryAfter(afterEntry, stack, true);
}
-
+
/**
* Registers an new stack to the entry list
*
@@ -57,7 +57,7 @@ public interface EntryRegistry {
*/
@Deprecated
void registerEntryAfter(EntryStack afterEntry, EntryStack stack, boolean checkAlreadyContains);
-
+
/**
* Registers multiple stacks to the item list
*
@@ -71,7 +71,7 @@ public interface EntryRegistry {
registerEntryAfter(afterStack, stack);
}
}
-
+
/**
* Registers multiple stacks to the item list
*
@@ -80,7 +80,7 @@ public interface EntryRegistry {
default void registerEntries(EntryStack... stacks) {
registerEntriesAfter(null, stacks);
}
-
+
/**
* Checks if a stack is already registered
*
@@ -90,5 +90,5 @@ public interface EntryRegistry {
default boolean alreadyContain(EntryStack stack) {
return CollectionUtils.anyMatchEqualsAll(getStacksList(), stack);
}
-
+
}