Skip to content

Instantly share code, notes, and snippets.

View gabizou's full-sized avatar

Gabriel Harris-Rouquette gabizou

View GitHub Profile
interface ItemType
{
int getMaxDamage();
}
class net.minecraft.src.Item
{
...
allprojects {
afterEvaluate {
def versions = [
'1.6' : "/opt/java6/jre/lib/"
]
// convert map to classpaths
versions = versions.collectEntries { key, value ->
def path = new File(value)
value = path.listFiles().findAll { it.getPath().endsWith(".jar") }