Enum ReflectionUtils.PackageType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ReflectionUtils.PackageType>, java.lang.constant.Constable
    Enclosing class:
    ReflectionUtils

    public static enum ReflectionUtils.PackageType
    extends java.lang.Enum<ReflectionUtils.PackageType>
    Represents an enumeration of dynamic packages of NMS and CraftBukkit

    This class is part of the ReflectionUtils and follows the same usage conditions

    Since:
    1.0
    • Method Detail

      • values

        public static ReflectionUtils.PackageType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ReflectionUtils.PackageType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getServerVersion

        public static java.lang.String getServerVersion()
        Returns the version of your server
        Returns:
        The server version
      • getPath

        public java.lang.String getPath()
        Returns the path of this package type
        Returns:
        The path
      • getClass

        public java.lang.Class<?> getClass​(java.lang.String className)
                                    throws java.lang.ClassNotFoundException
        Returns the class with the given name
        Parameters:
        className - Name of the desired class
        Returns:
        The class with the specified name
        Throws:
        java.lang.ClassNotFoundException - If the desired class with the specified name and package cannot be found