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
| task processSources(type: Copy) { | |
| from (sourceSets.main.java) { | |
| include "**/SpongeWorldEdit.java" | |
| filter { line -> line.replaceAll("%VERSION%", project.version) } | |
| } | |
| from (sourceSets.main.java) { | |
| exclude "**/SpongeWorldEdit.java" | |
| } | |
| into 'build/sources/main/java' |
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
| import java.util.Map; | |
| import java.util.regex.Matcher; | |
| // args[] is an array of the arguments.. | |
| // should be.. | |
| // srcDIr MethodCsv FieldCsv | |
| // define constants | |
| def METHOD = /func_[0-9]+_[a-zA-Z_]+/ | |
| def FIELD = /field_[0-9]+_[a-zA-Z_]+/ |
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
| import groovy.json.JsonSlurper | |
| import java.util.zip.ZipEntry | |
| import java.util.zip.ZipFile | |
| // This script renames files in the specified directory that have the name format something-something-version.ext | |
| // they will be renamed to something-0something-mcversion-version.ext | |
| // the mcversion information is taken from the mcmod.info file in each file. | |
| // Files that do not follow the above naming convention, or do not have an mcmod.info file are ignored. | |
| // takes 1 arg, jarDir. |
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
| jar { | |
| from(sourceSets.main.output) { | |
| include 'myPackages/**' | |
| } | |
| // set temp location | |
| destinationDir = file("build/tmp") | |
| archiveName = "signed.jar" | |
| // sign it. |
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
| #! /bin/bash | |
| game=some/place #/home/abrarsyed/pahicraft/ForgeCraft2_mc | |
| seafile=some/other/place #/home/abrarsyed/pahicraft/instances/ForgeCraft2 | |
| # just to be sure | |
| mkdir -p $game/config $game/mods $game/hats $game/resourcepacks | |
| #sync mods and configs and hats | |
| rsync -r --delete $seafile/mods $game |
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 interface IMultiBlockHandler | |
| { | |
| public void addMember(World world, int x, int y, int z); | |
| public void addSpecialHandler(Object obj); | |
| } |
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
| task build | |
| task clean | |
| task setup | |
| ext.output = new File(rootProject.projectDir, "output") | |
| subprojects { | |
| afterEvaluate { | |
| // not using ForgeGradle? skipping you. | |
| if (!hasPlugin("forge") && !hasPlugin("fml") && !hasPlugin("liteloader")) |
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
| #!/usr/bin/env groovy | |
| File root; | |
| if (args.length == 0) | |
| root = new File('.').getCanonicalFile() | |
| else | |
| root = new File(args[0]) | |
| root.eachFileRecurse(FileType.FILES) { file -> |
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 net.minecraftforge.permissions.api; | |
| import net.minecraft.entity.player.EntityPlayer; | |
| import java.util.Collection; | |
| import java.util.UUID; | |
| /** | |
| * A group object in the API. | |
| * |
OlderNewer