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 / example.json
Last active July 4, 2023 01:01
Forge Update JSON file.
{
"homepage": "http://files.minecraftforge.net/maven/net/minecraftforge/forge/",
"promos": {
"1.8-latest": "11.14.3.1543",
"1.8-recommended": "11.14.3.1450"
},
"1.8": {
"11.14.3.1543": "fry: Fix color multiplier applied incorrectly for items.\nfry: OBJ loader: fixed another whitespace-related issue; removed unused "modifyUVs" property for now; added the "flip-v" property to switch between OpenGL-style and DirextX-style model UVs; fixed normals - they are now correct in-world, still a bit strange for the items; fixed normals a little bit for B3D models too.",
"11.14.3.1532": "fry: Fixed normal calculation for vanilla models, fixed the grass darkening and simular issues.\nfry: More lighting fixes, flat lighting now works correctly for grass and torches."
}
# -*- 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
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;
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.
{
"name" : "net/minecraft/block/Block",
"fields": [
{
"name" : "field_1234_a",
"access" : 0x00000000,
"desc" : "I"
}
],
"methods": [
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;
}
Build: nullBuild: null
Build: 0Build: 0
Publishing to repo folderPublishing to repo folder
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
@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
****************************
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 / 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;