Skip to content

Instantly share code, notes, and snippets.

package lp;
import it.unimi.dsi.fastutil.longs.LongArrayList;
import it.unimi.dsi.fastutil.longs.LongList;
import java.util.Arrays;
public class ArrayLevelPropagator extends LevelPropagator {
private static final int MARKER = -1;
private final int[][] data;
package lp;
import it.unimi.dsi.fastutil.longs.Long2ByteFunction;
import it.unimi.dsi.fastutil.longs.Long2ByteOpenHashMap;
import it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet;
/**
* Maintains a smooth gradient of some small value (the "level") in a (possibly infinite)
* graph. The gradient must be increasing away from the manually set states, meaning that
* manual level updates must only be able to lower the level, or raise it in a (previously
net.minecraft
net/minecraft/client/util/math/Quaternion (a)
net/minecraft/client/util/math/Vector3f (b)
net/minecraft/ChatFormat (c)
net/minecraft/util/crash/CrashReport (d)
net/minecraft/util/crash/CrashReportSection (e)
net/minecraft/util/crash/CrashCallable (f)
net/minecraft/util/UncaughtExceptionLogger (g)
net/minecraft/util/UncaughtExceptionHandler (h)
net/minecraft/MinecraftVersion (i)
@Pokechu22
Pokechu22 / Setting up MCP without a full MCP release.md
Last active July 5, 2024 20:28
Setting up MCP for newer versions (e.g. 1.12.2)

It's possible to use create an MCP installation for versions of Minecraft where there hasn't been a full MCP release. It takes a little bit of manual setup, but the end result is highly useful.

  1. Download and extract the most recent MCP build from http://www.modcoderpack.com/. (Currently, the latest build is http://www.modcoderpack.com/files/mcp940.zip)

  2. Edit version.cfg in the conf folder, and change ClientVersion and ServerVersion to the version you want (for instance, 1.12.2).

  3. Download the SRG zip for the version you want; these can generally be found at http://mcpbot.bspk.rs/mcp/<version>/mcp-<version>-srg.zip (for example, http://mcpbot.bspk.rs/mcp/1.11.2/mcp-1.11.2-srg.zip) or at http://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp/<version>/mcp-<version>-srg.zip (for example, http://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp/1.12.2/mcp-1.12.2-srg.zip). (For 1.12.1 and 1.12.2, only the minecraftforge link works)

  4. Extract that zip into the MCP conf folder, over

@paulwoods
paulwoods / gist:1142106
Created August 12, 2011 14:06
gradle - exclude files from a jar.
jar {
manifest {
attributes "Implementation-Title": "Gradle Quickstart"
attributes "Implementation-Version": version
attributes "Main-Class" : "com.ti.specteam.programs.Application"
}
// remove the security files (from mail.jar / activation.jar) so that the jar will be executable.