Class NMSManager

java.lang.Object
com.bencodez.advancedcore.nms.NMSManager

@Deprecated public class NMSManager extends Object
Deprecated.
The Class NMSManager.
  • Field Details

    • CORRESPONDING_TYPES

      public static final Map<Class<?>,Class<?>> CORRESPONDING_TYPES
      Deprecated.
      The Constant CORRESPONDING_TYPES.
  • Constructor Details

    • NMSManager

      public NMSManager()
      Deprecated.
  • Method Details

    • equalsTypeArray

      public static boolean equalsTypeArray(Class<?>[] a, Class<?>[] o)
      Deprecated.
      Equals type array.
      Parameters:
      a - the a
      o - the o
      Returns:
      true, if successful
    • get

      public static NMSManager get()
      Deprecated.
      Gets the.
      Returns:
      the NMS manager
    • getInstance

      public static NMSManager getInstance()
      Deprecated.
      Gets the.
      Returns:
      the NMS manager
    • set

      public static boolean set(Object object, String fieldName, Object fieldValue)
      Deprecated.
      Sets the.
      Parameters:
      object - the object
      fieldName - the field name
      fieldValue - the field value
      Returns:
      true, if successful
    • ClassListEqual

      public boolean ClassListEqual(Class<?>[] l1, Class<?>[] l2)
      Deprecated.
      Class list equal.
      Parameters:
      l1 - the l 1
      l2 - the l 2
      Returns:
      true, if successful
    • getField

      public Field getField(Class<?> clazz, String name)
      Deprecated.
      Gets the field.
      Parameters:
      clazz - the clazz
      name - the name
      Returns:
      the field
    • getHandle

      public Object getHandle(Object obj)
      Deprecated.
      Gets the handle.
      Parameters:
      obj - the obj
      Returns:
      the handle
    • getMethod

      public Method getMethod(Class<?> clazz, String name, Class<?>... args)
      Deprecated.
      Gets the method.
      Parameters:
      clazz - the clazz
      name - the name
      args - the args
      Returns:
      the method
    • getMethod

      public Method getMethod(String name, Class<?> clazz, Class<?>... paramTypes)
      Deprecated.
      Gets the method.
      Parameters:
      name - the name
      clazz - the clazz
      paramTypes - the param types
      Returns:
      the method
    • getNMSClass

      @Deprecated public Class<?> getNMSClass(String className)
      Deprecated.
      Gets the NMS class.
      Parameters:
      className - the class name
      Returns:
      the NMS class
    • getPlayerField

      Deprecated.
      Gets the player field.
      Parameters:
      player - the player
      name - the name
      Returns:
      the player field
      Throws:
      SecurityException - the security exception
      NoSuchMethodException - the no such method exception
      NoSuchFieldException - the no such field exception
      IllegalArgumentException - the illegal argument exception
      IllegalAccessException - the illegal access exception
      InvocationTargetException - the invocation target exception
    • getPrimitiveType

      public Class<?> getPrimitiveType(Class<?> clazz)
      Deprecated.
      Gets the primitive type.
      Parameters:
      clazz - the clazz
      Returns:
      the primitive type
    • getVersion

      public String getVersion()
      Deprecated.
      Gets the version.
      Returns:
      the version
    • invokeMethod

      public Object invokeMethod(String method, Object obj)
      Deprecated.
      Invoke method.
      Parameters:
      method - the method
      obj - the obj
      Returns:
      the object
    • invokeMethodWithArgs

      public Object invokeMethodWithArgs(String method, Object obj, Object... args)
      Deprecated.
      Invoke method with args.
      Parameters:
      method - the method
      obj - the obj
      args - the args
      Returns:
      the object
    • isVersion

      public boolean isVersion(String... versions)
      Deprecated.
    • toPrimitiveTypeArray

      public Class<?>[] toPrimitiveTypeArray(Class<?>[] classes)
      Deprecated.
      To primitive type array.
      Parameters:
      classes - the classes
      Returns:
      the class[]