Class ReflectionUtils

java.lang.Object
com.minecolonies.api.util.ReflectionUtils

public final class ReflectionUtils extends Object
Utility class with methods regarding reflection.
  • 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
      Throws:
      NoSuchFieldException
      IllegalAccessException