Class Reflection
java.lang.Object
rocks.gravili.notquests.paper.managers.packets.ownpacketstuff.reflection.Reflection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>
static Field
static <T> T
getFieldValue
(Field field, Object obj) static Object
getFieldValueOfObject
(Object instance, String fieldName) static Object
getMethodValueOfObject
(Object instance, String methodName) static Class<?>
getNMSClass
(String className) static Object
getNmsPlayer
(org.bukkit.entity.Player p) static Object
getNmsScoreboard
(io.lumine.xikage.mythicmobs.utils.scoreboard.Scoreboard s) static void
sendAllPacket
(Object packet) static void
sendListPacket
(List<String> players, Object packet) static void
sendPlayerPacket
(org.bukkit.entity.Player p, Object packet) static void
-
Constructor Details
-
Reflection
public Reflection()
-
-
Method Details
-
getNMSClass
-
getClass
-
getNmsPlayer
- Throws:
Exception
-
getNmsScoreboard
public static Object getNmsScoreboard(io.lumine.xikage.mythicmobs.utils.scoreboard.Scoreboard s) throws Exception - Throws:
Exception
-
getFieldValueOfObject
- Throws:
Exception
-
getMethodValueOfObject
- Throws:
Exception
-
getFieldValue
-
getField
- Throws:
Exception
-
setValue
-
sendAllPacket
- Throws:
Exception
-
sendListPacket
-
sendPlayerPacket
- Throws:
Exception
-