Ideas:
This file contains hidden or 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
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| maven { | |
| name = "forge" | |
| url = "http://files.minecraftforge.net/maven" | |
| } | |
| maven { | |
| name = "sonatype" | |
| url = "https://oss.sonatype.org/content/repositories/snapshots/" |
This file contains hidden or 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
| "C:\Program Files\Java\jdk1.7.0_40\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:37930,suspend=y,server=n -Djezza.debug=true -javaagent:C:\Users\Jeremy\.IdeaIC14\system\groovyHotSwap\gragent.jar -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.7.0_40\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\jfxrt.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\ext\jaccess.jar;C:\Program F |
This file contains hidden or 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
| "C:\Program Files\Java\jdk1.7.0_40\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:33091,suspend=y,server=n -Djezza.debug=true -javaagent:C:\Users\Jeremy\.IdeaIC14\system\groovyHotSwap\gragent.jar -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.7.0_40\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\jfxrt.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.7.0_40\jre\lib\ext\jaccess.jar;C:\Program F |
This file contains hidden or 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
| configurations.compile.copy().each { file -> | |
| logger.lifecycle "Processing ${file.path}..." | |
| copy { | |
| from(zipTree(file.path)) { | |
| includeEmptyDirs = false | |
| include '**/*_at.cfg' | |
| } | |
| into('src/api/resources/at') | |
| } | |
| } |
This file contains hidden or 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
| Test gist |
This file contains hidden or 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
| tile.jackolantern.name=Jack-O-Lantern | |
| tile.creeperlantern.name=Creeper Lantern | |
| tile.zombielantern.name=Zombie Lantern | |
| tile.skeletonlantern.name=Skeleton Lantern | |
| tile.spiderlantern.name=Spider Lantern | |
| tile.slimelantern.name=Slime Lantern | |
| tile.endermenlantern.name=Endermen Lantern | |
| tile.pigmenlantern.name=Pigmen Lantern | |
| tile.blazelantern.name=Blaze Lantern | |
| tile.magmacubelantern.name=Magma Cube Lantern |
This file contains hidden or 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
| package me.jezza.oc.api.configuration; | |
| import java.lang.annotation.*; | |
| public class Config { | |
| public static final Class[] VALID_CONFIG_ANNOTATIONS = new Class[]{ | |
| ConfigBoolean.class, | |
| ConfigBooleanArray.class, | |
| ConfigInteger.class, |
This file contains hidden or 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
| public class ConfigHandler { | |
| private Collection<Class<?>> registeredClasses; | |
| private ConfigCollection<? extends Annotation> configCollection; | |
| public ConfigHandler() { | |
| registeredClasses = new LinkedHashSet<>(); | |
| configCollection = new ConfigCollection<>(); | |
| configCollection.registerAnnotations(Config.VALID_CONFIG_ANNOTATIONS); |
This file contains hidden or 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
| public class ConfigCollection { | |
| private LinkedHashMap<Class<? extends Annotation>, Collection<? extends Annotation>> configMap; | |
| public ConfigCollection() { | |
| configMap = new LinkedHashMap<>(); | |
| } | |
| @SafeVarargs | |
| public final <T extends Annotation> void registerAnnotations(Class<T>... annotations) { |