diff options
| author | shedaniel <daniel@shedaniel.me> | 2022-06-21 22:04:46 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2022-06-28 03:21:12 +0800 |
| commit | 3dd124e7d67ea84e6170329eb47d1ffd54e76463 (patch) | |
| tree | a98d88c8b47258bdd534133a28156b38d5dc370c /api/src | |
| parent | 83a3c0ea4a601e2cdb80c2875e9e42b28721b5c2 (diff) | |
| download | RoughlyEnoughItems-3dd124e7d67ea84e6170329eb47d1ffd54e76463.tar.gz RoughlyEnoughItems-3dd124e7d67ea84e6170329eb47d1ffd54e76463.tar.bz2 RoughlyEnoughItems-3dd124e7d67ea84e6170329eb47d1ffd54e76463.zip | |
Refactor PreFilteredEntryList out into its own class
Diffstat (limited to 'api/src')
| -rw-r--r-- | api/src/main/java/me/shedaniel/rei/api/client/registry/entry/EntryRegistry.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/api/src/main/java/me/shedaniel/rei/api/client/registry/entry/EntryRegistry.java b/api/src/main/java/me/shedaniel/rei/api/client/registry/entry/EntryRegistry.java index b60baec9a..63ed14d72 100644 --- a/api/src/main/java/me/shedaniel/rei/api/client/registry/entry/EntryRegistry.java +++ b/api/src/main/java/me/shedaniel/rei/api/client/registry/entry/EntryRegistry.java @@ -199,4 +199,12 @@ public interface EntryRegistry extends Reloadable<REIClientPlugin> { * @return whether it was successful to remove any entry */ boolean removeEntryFuzzyHashIf(LongPredicate predicate); + + /** + * Returns whether the registry is in its reloading phase. + * Registration after the reloading phase will be slow and may not be reflected immediately. + * + * @return whether the registry is in its reloading phase + */ + boolean isReloading(); } |
