mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-07 16:26:13 +00:00
add Registry#getRawType
This commit is contained in:
@@ -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