Class ReflectUtil
java.lang.Object
net.megavex.scoreboardlibrary.implementation.packetAdapter.util.reflect.ReflectUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @Nullable ConstructorAccessor<T> findConstructorOrNull(@NotNull Class<T> clazz, @NotNull Class<?>... args) static <T> @NotNull ConstructorAccessor<T> findConstructorOrThrow(@NotNull Class<T> clazz, @NotNull Class<?>... args) static <T,V> @NotNull FieldAccessor <T, V> static <T> @NotNull PacketConstructor<T> getEmptyConstructor(@NotNull Class<T> packetClass)
-
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)
-