Skip to content

Instantly share code, notes, and snippets.

View LexManos's full-sized avatar

LexManos LexManos

  • Forge Development LLC
  • Oregon
View GitHub Profile
@LexManos
LexManos / ObfusicationHelper.java
Last active December 17, 2015 06:28
ObfusicationHelper
package net.minecraftforge.lex.rendering;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
@LexManos
LexManos / ForgeVersion.java
Created December 25, 2013 08:32
Forge Potential Update Check System
/**
* This software is provided under the terms of the Minecraft Forge Public
* License v1.0.
*/
package net.minecraftforge.common;
import static net.minecraftforge.common.ForgeVersion.Status.*;
import java.io.InputStream;
import java.net.URL;
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
FAILURE: Build failed with an exception.
@LexManos
LexManos / Fernflower.csg
Last active August 29, 2015 13:57
Fernflower Deobfusicaton
de/fernflower/main/extern/a de/fernflower/main/extern/IFernflowerLoggerLevels
A de/fernflower/main/classreader/opcodes/InvokeInterface
B pkg/B
C pkg/NestedClassDecompiler
D de/fernflower/main/classreader/opcodes/LdcW
E pkg/ca_E
F pkg/ThreadMethodDecompiler
G pkg/ca_G
H pkg/H
I de/fernflower/main/classreader/opcodes/Sipush
Build: nullBuild: null
Build: 0Build: 0
Publishing to repo folderPublishing to repo folder
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
public boolean rotateBlock(World world, BlockPos pos, EnumFacing axis)
{
IBlockState state = world.getBlockState(pos);
for (IProperty prop : (java.util.Set<IProperty>)state.getProperties().keySet())
{
if (prop.getName().equals("facing"))
{
world.setBlockState(pos, state.cycleProperty(prop));
return true;
}
{
"name" : "net/minecraft/block/Block",
"fields": [
{
"name" : "field_1234_a",
"access" : 0x00000000,
"desc" : "I"
}
],
"methods": [
package net.minecraftforge.common.util;
import java.io.DataInput;
import java.io.IOException;
import net.minecraft.nbt.NBTSizeTracker;
/**
* This is a wrapper around a DataInput and a NBTSizeTracker, this is a simple
* way to TRUELY keep track of everything that we are reading from the buffer.
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.nio.IntBuffer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 19 16:29:03 2012
Rewritten on Tue July 28 13:09:00 2015
@author: Fesh0r, LexManos
@version: v7.0
"""
import sys