public class ReflectionUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReflectionUtils.NMSMerchantRecipe |
static class |
ReflectionUtils.NMSMerchantRecipeList |
static class |
ReflectionUtils.OBCCraftItemStack |
Constructor and Description |
---|
ReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static Class |
getClassByName(String name) |
static Object |
getField(Class c,
Object obj,
String key) |
static String |
getNMSPackageName()
Get the Package from net.minecraft
Example: net.minecraft.v1_6_R3
|
static String |
getOBCPackageName()
Get the Package from org.bukkit.craftbukkit
Example: org.bukkit.craftbukkit.v1_6_R3
|
static void |
replaceField(Class c,
Object obj,
String key,
Object value) |
static Object |
toEntityHuman(org.bukkit.entity.Player player) |
public static Object toEntityHuman(org.bukkit.entity.Player player)
public static Object getField(Class c, Object obj, String key) throws Exception
Exception
public static void replaceField(Class c, Object obj, String key, Object value) throws Exception
Exception
public static String getNMSPackageName()
public static String getOBCPackageName()
Copyright © 2014. All rights reserved.