Class VersionDetector
java.lang.Object
net.darkhax.curseforgegradle.VersionDetector
This class is responsible for detecting versions from properties in the build environment. Each task will have one
instance of this class associated to it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanA flag that determines if the auto-detection is enabled. -
Method Summary
Modifier and TypeMethodDescriptionvoidInitiates the detection of game versions.Gets an immutable collection of all the detected game versions.
-
Field Details
-
isEnabled
public boolean isEnabledA flag that determines if the auto-detection is enabled. This can be disabled with user configs.
-
-
Method Details
-
detectVersions
public void detectVersions()Initiates the detection of game versions. IfisEnabledis false this will not run. -
getDetectedVersions
Gets an immutable collection of all the detected game versions.- Returns:
- An immutable collection of all the detected game versions.
-