Class VersionHandle<T>
java.lang.Object
com.cryptomorin.xseries.reflection.VersionHandle<T>
- Type Parameters:
T- the type of object to check.
Provides objects based on the current version of the server (
XReflection.supports(int, int, int)),
it's mostly useful for primitive values, for reflection you should use the specialized
XReflection class instead.-
Constructor Summary
ConstructorsConstructorDescriptionVersionHandle(int version, int patch, Callable<T> handle) VersionHandle(int version, Callable<T> handle) -
Method Summary
Modifier and TypeMethodDescriptionIf none of the previous version checks matched, it'll return this object.
-
Constructor Details
-
VersionHandle
-
VersionHandle
-
-
Method Details
-
v
-
v
-
v
-
orElse
If none of the previous version checks matched, it'll return this object. -
orElse
-