public class NMSUtil extends Object
Constructor and Description |
---|
NMSUtil() |
Modifier and Type | Method and Description |
---|---|
static Class<?> |
getCraftClass(String className) |
static Field |
getField(Class<?> clazz,
String name,
boolean declared) |
static Object |
getFieldObject(Object object,
Field field) |
static Class<?> |
getNMSClass(String className) |
static String |
getVersion() |
static int |
getVersionNumber() |
static int |
getVersionReleaseNumber() |
static void |
sendPacket(org.bukkit.entity.Player player,
Object packet) |
static void |
setField(Object object,
String fieldName,
Object fieldValue,
boolean declared) |
public static String getVersion()
public static int getVersionNumber()
public static int getVersionReleaseNumber()
public static Class<?> getCraftClass(String className) throws ClassNotFoundException
ClassNotFoundException
public static void setField(Object object, String fieldName, Object fieldValue, boolean declared)
public static void sendPacket(org.bukkit.entity.Player player, Object packet)
Copyright © 2018. All rights reserved.