Enum ReflectionUtils.PackageType
java.lang.Object
java.lang.Enum<ReflectionUtils.PackageType>
dev.esophose.playerparticles.particles.spawning.reflective.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
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description java.lang.Class<?>
getClass(java.lang.String className)
Returns the class with the given namejava.lang.String
getPath()
Returns the path of this package typestatic java.lang.String
getServerVersion()
Returns the version of your serverjava.lang.String
toString()
static ReflectionUtils.PackageType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ReflectionUtils.PackageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MINECRAFT_SERVER
-
CRAFTBUKKIT
-
CRAFTBUKKIT_BLOCK
-
CRAFTBUKKIT_CHUNKIO
-
CRAFTBUKKIT_COMMAND
-
CRAFTBUKKIT_CONVERSATIONS
-
CRAFTBUKKIT_ENCHANTMENS
-
CRAFTBUKKIT_ENTITY
-
CRAFTBUKKIT_EVENT
-
CRAFTBUKKIT_GENERATOR
-
CRAFTBUKKIT_HELP
-
CRAFTBUKKIT_INVENTORY
-
CRAFTBUKKIT_MAP
-
CRAFTBUKKIT_METADATA
-
CRAFTBUKKIT_POTION
-
CRAFTBUKKIT_PROJECTILES
-
CRAFTBUKKIT_SCHEDULER
-
CRAFTBUKKIT_SCOREBOARD
-
CRAFTBUKKIT_UPDATER
-
CRAFTBUKKIT_UTIL
-
-
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
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.ClassNotFoundExceptionReturns 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
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Enum<ReflectionUtils.PackageType>
-
getServerVersion
public static java.lang.String getServerVersion()Returns the version of your server- Returns:
- The server version
-