Package net.darkhax.curseforgegradle
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 TypeMethodDescriptionvoiddetectVersions(GameVersions validGameVersions) Initiates 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
Initiates the detection of game versions. IfisEnabledis false this will not run.- Parameters:
validGameVersions- Valid game versions for the current game.
-
getDetectedVersions
Gets an immutable collection of all the detected game versions.- Returns:
- An immutable collection of all the detected game versions.
-