Package me.ryun.plugintools
Class CraftBukkitFinder
java.lang.Object
me.ryun.plugintools.CraftBukkitFinder
A class that scans the package names for an available CraftBukkit version with backward and forward compatibility
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe package name before the different version names startsstatic final intThe maximum major version which is the first numberstatic final intThe minimum major version which is the first numberstatic final intThe maximum minor version which is the second numberstatic final intThe minimum minor version which is the second numberstatic final intThe final number preceded by an R which is short for "Revision".static final StringThe Class to be tested to exist to check if the package name exists -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
baseClassPath
The package name before the different version names starts- See Also:
-
testClassName
The Class to be tested to exist to check if the package name exists- See Also:
-
MAJOR_MINIMUM
public static final int MAJOR_MINIMUMThe minimum major version which is the first number- See Also:
-
MAJOR_MAXIMUM
public static final int MAJOR_MAXIMUMThe maximum major version which is the first number- See Also:
-
MINOR_MINIMUM
public static final int MINOR_MINIMUMThe minimum minor version which is the second number- See Also:
-
MINOR_MAXIMUM
public static final int MINOR_MAXIMUMThe maximum minor version which is the second number- See Also:
-
REVISION_MAXIMUM
public static final int REVISION_MAXIMUMThe final number preceded by an R which is short for "Revision". Note that all Revisions starts from 1, so we don't need to specify- See Also:
-
-
Constructor Details
-
CraftBukkitFinder
public CraftBukkitFinder()
-
-
Method Details
-
scan
Scans the package names for a working classpath by testing it with a known available class- Parameters:
isLogging- If the scan will log if it found a working version or not for each try- Returns:
- The package name i.e. org.bukkit.craftbukkit.v1_20_R1
-