From 8ea301b596f9bbe00e7d7fb04089bef9e902e37e Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 2 Feb 2022 18:48:34 +0100 Subject: [PATCH] Untyped field --- .../src/com/comphenix/tinyprotocol/Reflection.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java b/SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java index 1742df4..5d49953 100644 --- a/SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java +++ b/SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java @@ -110,6 +110,10 @@ public final class Reflection { return getField(getClass(className), name, fieldType, 0); } + public static Reflection.FieldAccessor getUntypedField(Class target, Class fieldType, int index) { + return getField(target, fieldType, index); + } + /** * Retrieve a field accessor for a specific field type and name. *