-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
57 changed files
with
6,048 additions
and
825 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
maven { | ||
name = "forge" | ||
url = "http://files.minecraftforge.net/maven" | ||
} | ||
maven { | ||
name = "sonatype" | ||
url = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
} | ||
} | ||
dependencies { | ||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' | ||
} | ||
} | ||
|
||
apply plugin: 'forge' | ||
|
||
version = "1.5.8.10" | ||
group= "com.jtrent238.epicproportionsmod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html | ||
archivesBaseName = "epicproportionsmod" | ||
|
||
minecraft { | ||
version = "1.7.10-10.13.4.1448-1.7.10" | ||
runDir = "eclipse" | ||
} | ||
|
||
dependencies { | ||
// you may put jars on which you depend on in ./libs | ||
// or you may define them like so.. | ||
//compile "some.group:artifact:version:classifier" | ||
//compile "some.group:artifact:version" | ||
|
||
// real examples | ||
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env | ||
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env | ||
|
||
// for more info... | ||
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html | ||
// http://www.gradle.org/docs/current/userguide/dependency_management.html | ||
|
||
} | ||
|
||
processResources | ||
{ | ||
// this will ensure that this task is redone when the versions change. | ||
inputs.property "version", project.version | ||
inputs.property "mcversion", project.minecraft.version | ||
|
||
// replace stuff in mcmod.info, nothing else | ||
from(sourceSets.main.resources.srcDirs) { | ||
include 'mcmod.info' | ||
|
||
// replace version and mcversion | ||
expand 'version':project.version, 'mcversion':project.minecraft.version | ||
} | ||
|
||
// copy everything else, thats not the mcmod.info | ||
from(sourceSets.main.resources.srcDirs) { | ||
exclude 'mcmod.info' | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
src/main/java/com/jtrent238/epicproportions/AddonManager.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,63 @@ | ||
package com.jtrent238.epicproportions; | ||
|
||
import java.util.ArrayList; | ||
|
||
import cpw.mods.fml.common.Loader; | ||
|
||
public class AddonManager { | ||
|
||
static ArrayList<String> AddonName = new ArrayList<String>(); | ||
static ArrayList<String> AddonId = new ArrayList<String>(); | ||
static ArrayList<String> AddonVersion = new ArrayList<String>(); | ||
static ArrayList<String> AddonAuthor = new ArrayList<String>(); | ||
|
||
private static boolean halloweenloaded; | ||
private static boolean christmasloaded; | ||
|
||
private static String name= "Addon Name: "; | ||
private static String id= "Addon ID: "; | ||
private static String version= "Addon Version: "; | ||
private static String author= "Addon Author: "; | ||
|
||
|
||
public static void registerAddons() { | ||
|
||
//Halloween Addon | ||
if(Loader.isModLoaded("epicproportionsmod_halloween")){ | ||
//Halloween Addon | ||
AddonName.add(0, "Halloween Addon"); | ||
AddonId.add(0, "epicproportionsmod_halloween"); | ||
AddonVersion.add(0, "1.0.1.1"); | ||
AddonAuthor.add(0, "jtrent238"); | ||
halloweenloaded = true; | ||
} | ||
else | ||
System.out.println("Halloween Addon NOT FOUND!!!"); | ||
|
||
//Christmas Addon | ||
if(Loader.isModLoaded("epicproportionsmod_christmas")){ | ||
AddonName.add(1, "Christmas Addon"); | ||
AddonId.add(1, "epicproportionsmod_christmas"); | ||
AddonVersion.add(1, "1.0.0.0"); | ||
AddonAuthor.add(1, "jtrent238"); | ||
christmasloaded = true; | ||
} | ||
else | ||
System.out.println("Christmas Addon NOT FOUND!!!"); | ||
|
||
if(halloweenloaded == true){ | ||
System.out.println(AddonName.get(0) + " FOUND"); | ||
System.out.println(name + AddonName.get(0)); | ||
System.out.println(id + AddonId.get(0)); | ||
System.out.println(version + AddonVersion.get(0)); | ||
System.out.println(author + AddonAuthor.get(0)); | ||
} | ||
if(christmasloaded == true){ | ||
System.out.println(AddonName.get(1) + " FOUND"); | ||
System.out.println(name + AddonName.get(1)); | ||
System.out.println(id + AddonId.get(1)); | ||
System.out.println(version + AddonVersion.get(1)); | ||
System.out.println(author + AddonAuthor.get(1)); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.