This file contains 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
private void pasteNameFromInt(AbstractInsnNode insnode) { | |
try { | |
Field[] fields = Opcodes.class.getFields(); | |
for (Field field : fields) { | |
Object obj = field.get(null); | |
if (!(obj instanceof Integer)) { | |
continue; | |
} | |
if ((Integer) obj == insnode.getOpcode()) { | |
System.out.println(field.getName() + " - " + insnode.getOpcode() + " - " + insnode); |
This file contains 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
// ONLY DEBUG | |
// WILL BE REMOVED. | |
@SubscribeEvent | |
public void a(CapeUpdatedEvent event) { | |
event.setResourceLocation(new ResourceLocation("textures/blocks/ice.png")); | |
} | |
@SubscribeEvent | |
public void a(EntityViewRenderEvent.CameraSetup event) { | |
int rendererUpdateCount = ObfuscationReflectionHelper.getPrivateValue(EntityRenderer.class, event.getRenderer(), "rendererUpdateCount", "field_78529_t"); |
This file contains 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
private Main main = Main.getInstance(); | |
private ExecutorService pool; | |
private Field uuidField; | |
private HashMap<Player, NickName> nicknames = new HashMap<>(); | |
public NickApi() { | |
pool = Executors.newCachedThreadPool(); |
This file contains 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.hycrafthd.main.util; | |
import java.lang.reflect.Field; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Set; | |
import java.util.concurrent.ExecutorService; |
This file contains 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 | |
MCP_VERSION="721" | |
FORGE_VERSION="latest" | |
MCP_URL="https://dl.dropbox.com/s/dao8itysfwuhj9q/mcp$MCP_VERSION.zip?dl=1" | |
FORGE_URL="http://files.minecraftforge.net/minecraftforge-src-$FORGE_VERSION.zip" | |
mkdir -p forge | |
cd forge |
This file contains 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
AudioFormat format = new AudioFormat(44100, 16, 2, true, true); | |
DataLine.Info targetInfo = new DataLine.Info(TargetDataLine.class, format); | |
DataLine.Info sourceInfo = new DataLine.Info(SourceDataLine.class, format); | |
try { | |
TargetDataLine targetLine = (TargetDataLine) AudioSystem.getLine(targetInfo); | |
targetLine.open(format); | |
targetLine.start(); | |
NewerOlder