Skip to content

Instantly share code, notes, and snippets.

/**
* Called from acceptOptions after parsing out command line arguments
*
* @param gameDirectory
* @param assetsDirectory
*/
public void provideRequiredArgs(File gameDirectory, File assetsDirectory)
{
@SuppressWarnings("unchecked")
final List<String> argumentList = (List<String>)Launch.blackboard.get("ArgumentList");
@Mumfrey
Mumfrey / gist:8182407
Last active January 1, 2016 18:18
UDiff patch for commands.py for MCP 9.02 beta to make reobf of external classes using an interface work properly. Github seems to screw up the indentation so you can download the raw diff file here: http://eq2.co.uk/minecraft/commands.py.diff
--- runtime/commands.py Tue Dec 24 14:33:08 2013
+++ runtime/commands.py Mon Dec 30 13:54:57 2013
@@ -1211,12 +1211,27 @@
raise Exception('Exceptor Log not found: ' + exclogdry[side])
renames = {}
+ mapped = {}
log = [l.strip() for l in open(exclogdry[side], 'r').readlines()]
for line in log:
{
"id": "1.7.10-LiteLoader1.7.10",
"time": "2014-05-14T18:29:23+01:00",
"releaseTime": "2014-05-14T18:29:23+01:00",
"type": "release",
"minecraftArguments": "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userProperties ${user_properties} --userType ${user_type} --tweakClass com.mumfrey.liteloader.launch.LiteLoaderTweaker",
"libraries": [
{
"name": "com.mumfrey:liteloader:1.7.10",
"url": "http://dl.liteloader.com/versions/"
package com.example.asm;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.FieldVisitor;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
public class MyClassVisitor extends ClassVisitor {
@Mumfrey
Mumfrey / init.gradle
Created April 29, 2015 10:36
init.gradle
allprojects {
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}
repositories {
mavenLocal()
}
buildscript {
@Mumfrey
Mumfrey / FuckYouAnotherBadlyPhotoshoppedPhotoofMichaelCeraEveryday.js
Created November 17, 2015 01:10
FuckYouAnotherBadlyPhotoshoppedPhotoofMichaelCeraEveryday.js
// ==UserScript==
// @name FuckYouAnotherBadlyPhotoshoppedPhotoofMichaelCeraEveryday
// @namespace eq2.co.uk
// @description Fuck You AnotherBadlyPhotoshoppedPhotoofMichaelCeraEveryday
// @include http://imgur.com/gallery/*
// @version 1
// @grant none
// ==/UserScript==
document.addEventListener("DOMNodeInserted", function check(evt) {
@Mumfrey
Mumfrey / init.gradle
Created February 3, 2016 15:12
Specify local .m2 repository
allprojects {
repositories {
mavenLocal()
}
buildscript {
repositories {
mavenLocal()
}
}
}
package net.eq2online.macros.scripting.actions.lang;
import java.util.Random;
import net.eq2online.macros.scripting.api.IMacro;
import net.eq2online.macros.scripting.api.IMacroAction;
import net.eq2online.macros.scripting.api.IReturnValue;
import net.eq2online.macros.scripting.api.IScriptActionProvider;
import net.eq2online.macros.scripting.api.ReturnValue;
import net.eq2online.macros.scripting.parser.ScriptAction;

List Values

Unlike basic values, obtaining values from lists is slightly more involved, as multiple values are present. The main accessors for lists are

  • getList(Function<Object, T>):List<T>
  • getList(Function<Object, T>, List<T>):List<T>
  • getList(TypeToken<T>):List<T>
  • getList(TypeToken<T>, List<T>):List<T>.
Code Key
0 KEY_NONE
1 KEY_ESCAPE
2 KEY_1
3 KEY_2
4 KEY_3
5 KEY_4
6 KEY_5
7 KEY_6
8 KEY_7