deprecare getByID

This commit is contained in:
dfsek
2022-08-18 16:54:16 -07:00
parent c8beb0f965
commit b04a4850da

View File

@@ -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();