Skip to content

Instantly share code, notes, and snippets.

@Chocohead
Chocohead / (Module) build.gradle
Last active May 8, 2020 01:30
Fat JiJing with Loom
archivesBaseName = "Module A"
version = "2.1"
@Chocohead
Chocohead / 1.14_combat-0.json
Last active August 23, 2020 01:10
Combat Snapshots
{
"arguments":{
"game":[
"--username",
"${auth_player_name}",
"--version",
"${version_name}",
"--gameDir",
"${game_directory}",
"--assetsDir",
@Chocohead
Chocohead / CommandRemoval.java
Last active December 22, 2019 22:22
Brigadier command removal
import java.lang.reflect.Field;
import java.util.Map;
import com.mojang.brigadier.tree.ArgumentCommandNode;
import com.mojang.brigadier.tree.CommandNode;
import com.mojang.brigadier.tree.LiteralCommandNode;
import net.minecraft.server.MinecraftServer;
public class CommandRemoval {
@Chocohead
Chocohead / 1.2.5 Merge.tiny
Last active September 30, 2022 12:48
Provisional Intermediaries
v1 intermediary glue server client
CLASS argo/format/CompactJsonFormatter argo/format/CompactJsonFormatter dn
METHOD argo/format/CompactJsonFormatter (Largo/jdom/JsonRootNode;Ljava/io/Writer;)V format format a
METHOD argo/format/CompactJsonFormatter (Largo/jdom/JsonNode;Ljava/io/Writer;)V formatJsonNode formatJsonNode a
CLASS argo/format/CompactJsonFormatter$1 argo/format/CompactJsonFormatter$1 ib
FIELD argo/format/CompactJsonFormatter$1 [I $SwitchMap$argo$jdom$JsonNodeType $SwitchMap$argo$jdom$JsonNodeType a
CLASS argo/format/JsonEscapedString argo/format/JsonEscapedString ami
FIELD argo/format/JsonEscapedString Ljava/lang/String; escapedString escapedString a
CLASS argo/format/JsonFormatter argo/format/JsonFormatter jb
METHOD argo/format/JsonFormatter (Largo/jdom/JsonRootNode;)Ljava/lang/String; format format a
import net.minecraft.init.Blocks;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.util.NonNullList;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;
import buildcraft.lib.recipe.ChangingItemStack;