Package com.minecolonies.api.util
Class ReflectionUtils
java.lang.Object
com.minecolonies.api.util.ReflectionUtils
Utility class with methods regarding reflection.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Set<com.google.common.reflect.TypeToken<?>>getSuperClasses(com.google.common.reflect.TypeToken<T> token) Method to get all Super types of a given Class.static voidsetFMLLoggingLevelOnConsoleToDebug(org.apache.logging.log4j.core.config.AppenderControl control)
-
Method Details
-
getSuperClasses
public static <T> Set<com.google.common.reflect.TypeToken<?>> getSuperClasses(com.google.common.reflect.TypeToken<T> token) Method to get all Super types of a given Class.- Type Parameters:
T- The type to get the super types for.- Parameters:
token- The type to get the Supertypes for.- Returns:
- A set with the super types of the given type.
-
setFMLLoggingLevelOnConsoleToDebug
public static void setFMLLoggingLevelOnConsoleToDebug(org.apache.logging.log4j.core.config.AppenderControl control) throws NoSuchFieldException, IllegalAccessException
-