Package com.plotsquared.core.util
Class ReflectionUtils
java.lang.Object
com.plotsquared.core.util.ReflectionUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
RefClass - utility to simplify work with reflections.static class
Constructor wrapperstatic class
static class
Method wrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class
<?> static <T> Class
<? extends T> static ReflectionUtils.RefClass
getRefClass
(Class<?> clazz) get RefClass object by real classstatic ReflectionUtils.RefClass
getRefClass
(String className) Get class for name.
-
Constructor Details
-
ReflectionUtils
-
-
Method Details
-
getClass
-
getClass
-
getRefClass
Get class for name. Replace {nms} to net.minecraft.server.V*. Replace {cb} to org.bukkit.craftbukkit.V*. Replace {nm} to net.minecraft- Parameters:
className
- possible class paths- Returns:
- RefClass object
- Throws:
ClassNotFoundException
- if no class found
-
getRefClass
get RefClass object by real class- Parameters:
clazz
- class- Returns:
- RefClass based on passed class
-