-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d06293d
commit e2c2927
Showing
14 changed files
with
111 additions
and
83 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
loader-common/src/main/java/org/cyclops/cyclopscore/GeneralConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.cyclops.cyclopscore; | ||
|
||
import org.cyclops.cyclopscore.config.ConfigurablePropertyCommon; | ||
import org.cyclops.cyclopscore.config.ModConfigLocation; | ||
import org.cyclops.cyclopscore.config.extendedconfig.DummyConfigCommon; | ||
import org.cyclops.cyclopscore.helper.ModBaseCommon; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* A config with general options for this mod. | ||
* @author rubensworks | ||
* | ||
*/ | ||
public class GeneralConfig extends DummyConfigCommon<ModBaseCommon<?>> { | ||
|
||
@ConfigurablePropertyCommon(category = "core", comment = "If an anonymous mod startup analytics request may be sent to our analytics service.") | ||
public static boolean analytics = true; | ||
|
||
@ConfigurablePropertyCommon(category = "core", comment = "The anonymous id used by the analytics service.") | ||
public static String anonymousAnalyticsID = UUID.randomUUID().toString(); | ||
|
||
@ConfigurablePropertyCommon(category = "core", comment = "If the version checker should be enabled.") | ||
public static boolean versionChecker = true; | ||
|
||
@ConfigurablePropertyCommon(category = "general", comment = "When in a dev environment, if a button should be added to the main menu to open a dev world (shift-click creates a new world).", configLocation = ModConfigLocation.CLIENT) | ||
public static boolean devWorldButton = true; | ||
|
||
@ConfigurablePropertyCommon(category = "general", comment = "When in a dev environment, if music should be disabled at startup.", configLocation = ModConfigLocation.CLIENT) | ||
public static boolean devDisableMusic = true; | ||
|
||
/** | ||
* Create a new instance. | ||
*/ | ||
public GeneralConfig(ModBaseCommon<?> mod) { | ||
super(mod, "general"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 0 additions & 64 deletions
64
loader-neoforge/src/main/java/org/cyclops/cyclopscore/GeneralConfig.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
loader-neoforge/src/main/java/org/cyclops/cyclopscore/GeneralConfigNeoForge.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.cyclops.cyclopscore; | ||
|
||
import org.cyclops.cyclopscore.init.ModBase; | ||
import org.cyclops.cyclopscore.tracking.Analytics; | ||
import org.cyclops.cyclopscore.tracking.Versions; | ||
|
||
/** | ||
* @author rubensworks | ||
*/ | ||
public class GeneralConfigNeoForge extends GeneralConfig { | ||
public GeneralConfigNeoForge() { | ||
super(CyclopsCore._instance); | ||
} | ||
|
||
@Override | ||
public void onRegistered() { | ||
if(analytics) { | ||
Analytics.registerMod((ModBase) getMod(), Reference.GA_TRACKING_ID); | ||
} | ||
if(versionChecker) { | ||
Versions.registerMod((ModBase) getMod(), CyclopsCore._instance, "https://raw.githubusercontent.com/CyclopsMC/Versions/master/" + getMod().getModHelpers().getMinecraftHelpers().getMinecraftVersionMajorMinor() + "/CyclopsCore.txt"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters