public class ClassPatchManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
static boolean |
dumpPatched |
static ClassPatchManager |
INSTANCE |
private java.util.Map<java.lang.String,byte[]> |
patchedClasses |
private GDiffPatcher |
patcher |
private com.google.common.collect.ListMultimap<java.lang.String,ClassPatch> |
patches |
private java.io.File |
tempDir |
Modifier | Constructor and Description |
---|---|
private |
ClassPatchManager() |
Modifier and Type | Method and Description |
---|---|
byte[] |
applyPatch(java.lang.String name,
java.lang.String mappedName,
byte[] inputData) |
byte[] |
getPatchedResource(java.lang.String name,
java.lang.String mappedName,
net.minecraft.launchwrapper.LaunchClassLoader loader) |
private ClassPatch |
readPatch(java.util.jar.JarEntry patchEntry,
java.util.jar.JarInputStream jis) |
void |
setup(Side side) |
public static final boolean dumpPatched
public static final boolean DEBUG
public static final ClassPatchManager INSTANCE
private GDiffPatcher patcher
private com.google.common.collect.ListMultimap<java.lang.String,ClassPatch> patches
private java.util.Map<java.lang.String,byte[]> patchedClasses
private java.io.File tempDir
public byte[] getPatchedResource(java.lang.String name, java.lang.String mappedName, net.minecraft.launchwrapper.LaunchClassLoader loader) throws java.io.IOException
java.io.IOException
public byte[] applyPatch(java.lang.String name, java.lang.String mappedName, byte[] inputData)
public void setup(Side side)
private ClassPatch readPatch(java.util.jar.JarEntry patchEntry, java.util.jar.JarInputStream jis)