mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-22 08:07:51 +00:00
add Registry#getRawType
This commit is contained in:
1 parent
46e7bd917a
commit
7c32626bc0
1 file changed
+4
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user