add Registry#getRawType

This commit is contained in:
dfsek
2021-12-25 11:00:10 -07:00
parent 46e7bd917a
commit 7c32626bc0

View File

@@ -79,6 +79,10 @@ public interface Registry<T> extends TypeLoader<T> {
TypeKey<T> getType();
default Class<? super T> getRawType() {
return getType().getRawType();
}
default Optional<T> getByID(String id) {
return getByID(id, map -> {
if(map.isEmpty()) return Optional.empty();