public static enum ReflectionUtils.PackageType extends Enum<ReflectionUtils.PackageType>
This class is part of the ReflectionUtils and follows the same usage conditions
Modifier and Type | Method and Description |
---|---|
Class<?> |
getClass(String className)
Returns the class with the given name
|
String |
getPath()
Returns the path of this package type
|
static String |
getServerVersion()
Returns the version of your server
|
String |
toString() |
static ReflectionUtils.PackageType |
valueOf(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.
|
public static final ReflectionUtils.PackageType MINECRAFT_SERVER
public static final ReflectionUtils.PackageType CRAFTBUKKIT
public static final ReflectionUtils.PackageType CRAFTBUKKIT_BLOCK
public static final ReflectionUtils.PackageType CRAFTBUKKIT_CHUNKIO
public static final ReflectionUtils.PackageType CRAFTBUKKIT_COMMAND
public static final ReflectionUtils.PackageType CRAFTBUKKIT_CONVERSATIONS
public static final ReflectionUtils.PackageType CRAFTBUKKIT_ENCHANTMENS
public static final ReflectionUtils.PackageType CRAFTBUKKIT_ENTITY
public static final ReflectionUtils.PackageType CRAFTBUKKIT_EVENT
public static final ReflectionUtils.PackageType CRAFTBUKKIT_GENERATOR
public static final ReflectionUtils.PackageType CRAFTBUKKIT_HELP
public static final ReflectionUtils.PackageType CRAFTBUKKIT_INVENTORY
public static final ReflectionUtils.PackageType CRAFTBUKKIT_MAP
public static final ReflectionUtils.PackageType CRAFTBUKKIT_METADATA
public static final ReflectionUtils.PackageType CRAFTBUKKIT_POTION
public static final ReflectionUtils.PackageType CRAFTBUKKIT_PROJECTILES
public static final ReflectionUtils.PackageType CRAFTBUKKIT_SCHEDULER
public static final ReflectionUtils.PackageType CRAFTBUKKIT_SCOREBOARD
public static final ReflectionUtils.PackageType CRAFTBUKKIT_UPDATER
public static final ReflectionUtils.PackageType CRAFTBUKKIT_UTIL
public static ReflectionUtils.PackageType[] values()
for (ReflectionUtils.PackageType c : ReflectionUtils.PackageType.values()) System.out.println(c);
public static ReflectionUtils.PackageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String getServerVersion()
public String getPath()
public Class<?> getClass(String className) throws ClassNotFoundException
className
- Name of the desired classClassNotFoundException
- If the desired class with the specified name and package cannot be foundpublic String toString()
toString
in class Enum<ReflectionUtils.PackageType>
Copyright © 2023. All rights reserved.