Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 518 Bytes

File metadata and controls

11 lines (8 loc) · 518 Bytes

Reflection helpers

Available on: Bukkit ✅ full (incl. CraftBukkit/NMS lookups) · Velocity ✅ generic only · BungeeCord ✅ generic only · Hytale ✅ generic only

BlueFoundation.Reflection provides small helpers for CraftBukkit/NMS lookups and packet sending.

Class<?> craftPlayer = BlueFoundation.Reflection.craftBukkitClass("entity.CraftPlayer");
Class<?> packetClass = BlueFoundation.Reflection.nmsClass("PacketPlayOutChat");
Object handle = BlueFoundation.Reflection.getHandle(player);