java.lang.Object
net.megavex.scoreboardlibrary.implementation.packetAdapter.util.reflect.ReflectUtil

public class ReflectUtil extends Object
  • Method Details

    • findField

      @NotNull public static <T, V> @NotNull FieldAccessor<T,V> findField(@NotNull @NotNull Class<T> clazz, int index, @NotNull @NotNull Class<V> valueClass)
    • findConstructorOrThrow

      @NotNull public static <T> @NotNull ConstructorAccessor<T> findConstructorOrThrow(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull Class<?>... args)
    • findConstructorOrNull

      @Nullable public static <T> @Nullable ConstructorAccessor<T> findConstructorOrNull(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull Class<?>... args)
    • getEmptyConstructor

      @NotNull public static <T> @NotNull PacketConstructor<T> getEmptyConstructor(@NotNull @NotNull Class<T> packetClass)