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 | |
tmp_dir=$(mktemp -p "" -d -t liveMcpMappings-XXXXXXXXXX) | |
version_string=$RANDOM | |
echo Downloading live mappings to temporary directory $tmp_dir | |
cd $tmp_dir | |
wget -o /dev/null http://export.mcpbot.bspk.rs/fields.csv || echo "Downloading field.csv failed" | |
wget -o /dev/null http://export.mcpbot.bspk.rs/methods.csv || echo "Downloading methods.csv failed" | |
wget -o /dev/null http://export.mcpbot.bspk.rs/params.csv || echo "Downloading params.csv failed" |
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 { | |
attachSource | |
} | |
def loadSourcePaths() { | |
def result = new HashMap<String, String>() | |
configurations.attachSource.each { | |
def depFile = file(it) | |
def filename = depFile.getName() |
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
def tmpRes = 'build/dependencyATs' | |
sourceSets.main.resources.srcDirs += [tmpRes] | |
configurations.compile.copy().each { file -> | |
logger.lifecycle "Processing ${file.path}..." | |
copy { | |
from(zipTree(file.path)) { | |
include '*_at.cfg' | |
} | |
into(tmpRes) |
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 { | |
attachThisSource | |
} | |
dependencies { | |
compile 'codechicken:CodeChickenCore:1.7.10-1.0.2.11:dev' | |
compile 'codechicken:CodeChickenLib:1.7.10-1.1.1.95:dev' | |
compile 'codechicken:ForgeMultipart:1.7.10-1.1.0.297:dev' | |
compile 'codechicken:NotEnoughItems:1.7.10-1.0.2.28:dev' | |
attachThisSource 'codechicken:CodeChickenCore:1.7.10-1.0.2.11:src' |
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 com.examplemod.network; | |
import io.netty.buffer.ByteBuf; | |
import net.minecraft.world.World; | |
import cpw.mods.fml.common.network.simpleimpl.IMessage; | |
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler; | |
import cpw.mods.fml.common.network.simpleimpl.MessageContext; |