Package com.bencodez.advancedcore.nms
Class NMSManager
java.lang.Object
com.bencodez.advancedcore.nms.NMSManager
Deprecated.
The Class NMSManager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.The Constant CORRESPONDING_TYPES. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanClassListEqual(Class<?>[] l1, Class<?>[] l2) Deprecated.Class list equal.static booleanequalsTypeArray(Class<?>[] a, Class<?>[] o) Deprecated.Equals type array.static NMSManagerget()Deprecated.Gets the.Deprecated.Gets the field.Deprecated.Gets the handle.static NMSManagerDeprecated.Gets the.Deprecated.Gets the method.Deprecated.Gets the method.Class<?> getNMSClass(String className) Deprecated.getPlayerField(org.bukkit.entity.Player player, String name) Deprecated.Gets the player field.Class<?> getPrimitiveType(Class<?> clazz) Deprecated.Gets the primitive type.Deprecated.Gets the version.invokeMethod(String method, Object obj) Deprecated.Invoke method.invokeMethodWithArgs(String method, Object obj, Object... args) Deprecated.Invoke method with args.booleanDeprecated.static booleanDeprecated.Sets the.Class<?>[]toPrimitiveTypeArray(Class<?>[] classes) Deprecated.To primitive type array.
-
Field Details
-
CORRESPONDING_TYPES
Deprecated.The Constant CORRESPONDING_TYPES.
-
-
Constructor Details
-
NMSManager
public NMSManager()Deprecated.
-
-
Method Details
-
equalsTypeArray
Deprecated.Equals type array.- Parameters:
a- the ao- the o- Returns:
- true, if successful
-
get
Deprecated.Gets the.- Returns:
- the NMS manager
-
getInstance
Deprecated.Gets the.- Returns:
- the NMS manager
-
set
Deprecated.Sets the.- Parameters:
object- the objectfieldName- the field namefieldValue- the field value- Returns:
- true, if successful
-
ClassListEqual
Deprecated.Class list equal.- Parameters:
l1- the l 1l2- the l 2- Returns:
- true, if successful
-
getField
Deprecated.Gets the field.- Parameters:
clazz- the clazzname- the name- Returns:
- the field
-
getHandle
Deprecated.Gets the handle.- Parameters:
obj- the obj- Returns:
- the handle
-
getMethod
Deprecated.Gets the method.- Parameters:
clazz- the clazzname- the nameargs- the args- Returns:
- the method
-
getMethod
Deprecated.Gets the method.- Parameters:
name- the nameclazz- the clazzparamTypes- the param types- Returns:
- the method
-
getNMSClass
Deprecated.Gets the NMS class.- Parameters:
className- the class name- Returns:
- the NMS class
-
getPlayerField
public Object getPlayerField(org.bukkit.entity.Player player, String name) throws SecurityException, NoSuchMethodException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException, InvocationTargetException Deprecated.Gets the player field.- Parameters:
player- the playername- the name- Returns:
- the player field
- Throws:
SecurityException- the security exceptionNoSuchMethodException- the no such method exceptionNoSuchFieldException- the no such field exceptionIllegalArgumentException- the illegal argument exceptionIllegalAccessException- the illegal access exceptionInvocationTargetException- the invocation target exception
-
getPrimitiveType
Deprecated.Gets the primitive type.- Parameters:
clazz- the clazz- Returns:
- the primitive type
-
getVersion
Deprecated.Gets the version.- Returns:
- the version
-
invokeMethod
Deprecated.Invoke method.- Parameters:
method- the methodobj- the obj- Returns:
- the object
-
invokeMethodWithArgs
Deprecated.Invoke method with args.- Parameters:
method- the methodobj- the objargs- the args- Returns:
- the object
-
isVersion
Deprecated. -
toPrimitiveTypeArray
Deprecated.To primitive type array.- Parameters:
classes- the classes- Returns:
- the class[]
-