mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-23 00:27:21 +00:00
deprecare getByID
This commit is contained in:
1 parent
c8beb0f965
commit
b04a4850da
1 file changed
+1
@@ -82,6 +82,7 @@ public interface Registry<T> extends TypeLoader<T> {
|
||||
return getType().getRawType();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
default Optional<T> getByID(String id) {
|
||||
return getByID(id, map -> {
|
||||
if(map.isEmpty()) return Optional.empty();
|
||||
|
||||
Reference in new issue
Block a user