Class ReflectionUtil

java.lang.Object
xyz.gmitch215.socketmc.util.ReflectionUtil

public final class ReflectionUtil extends Object
Reflection utilities used client-side.
  • Method Details

    • apply

      public static <T> void apply(T target, T apply, Class<T> clazz) throws IllegalArgumentException
      Applies all fields from the apply object to the target object.
      Type Parameters:
      T - Type of the objects
      Parameters:
      target - Target object to apply to
      apply - Apply object to use
      clazz - Class of the objects
      Throws:
      IllegalArgumentException - If the class or objects are null