Package baritone.api.utils
Class TypeUtils
java.lang.Object
baritone.api.utils.TypeUtils
- Since:
- 4/20/2019
- Author:
- Brady
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> resolveBaseClass(Type type) Resolves the "base type" for the specified type.
-
Method Details
-
resolveBaseClass
Resolves the "base type" for the specified type. For example, if the specified type isList<String>, thenList.classwill be returned. If the specified type is already a class, then it is directly returned.- Parameters:
type- The type to resolve- Returns:
- The base class
-