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

public class ReflectUtil extends Object
  • Method Details

    • getClassOrThrow

      @NotNull public static @NotNull Class<?> getClassOrThrow(String name)
    • getOptionalClass

      @Nullable public static @Nullable Class<?> getOptionalClass(String name)
    • getEnumInstance

      @NotNull public static @NotNull Object getEnumInstance(@NotNull @NotNull Class<?> clazz, @NotNull @NotNull String name)
    • findField

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

      @NotNull public static <T, V> @NotNull FieldAccessor<T,V> findFieldUnchecked(@NotNull @NotNull Class<?> clazz, int index, @NotNull @NotNull Class<?> valueClass)
    • findOptionalConstructor

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

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

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