mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-26 14:00:14 +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();
|
return getType().getRawType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
default Optional<T> getByID(String id) {
|
default Optional<T> getByID(String id) {
|
||||||
return getByID(id, map -> {
|
return getByID(id, map -> {
|
||||||
if(map.isEmpty()) return Optional.empty();
|
if(map.isEmpty()) return Optional.empty();
|
||||||
|
|||||||
Reference in new issue
Block a user