Enum MinecraftPackage
- All Implemented Interfaces:
PackageHandle,Serializable,Comparable<MinecraftPackage>
Common Minecraft packages.
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface com.cryptomorin.xseries.reflection.jvm.classes.PackageHandle
JAVA_IDENTIFIER_PATTERN, JAVA_PACKAGE_PATTERN -
Method Summary
Modifier and TypeMethodDescriptiongetPackage(String packageName) static MinecraftPackageReturns the enum constant of this type with the specified name.static MinecraftPackage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NMS
-
CB
-
BUKKIT
-
SPIGOT
-
-
Method Details
-
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
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
packageId
- Specified by:
packageIdin interfacePackageHandle
-
getBasePackageName
- Specified by:
getBasePackageNamein interfacePackageHandle
-
getPackage
public String getPackage(@Pattern("(\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*\\.)*\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*") String packageName) - Specified by:
getPackagein interfacePackageHandle
-