Skip to content

Instantly share code, notes, and snippets.

@JDLogic
JDLogic / updateMappings.md
Last active November 25, 2022 14:17
How to use ForgeGradle's updateMappings task

What is it

This task will migrate (remap) the project's source files to a new mapping version.

Warning:

Running this task with edit your project's source files. It does NOT make a backup. It is highly recommened that you commit any pending changes before doing this. (If you are not using version control, you should be.)

Before running the command

Source must be compilable

This process uses Srg2Source to remap the project's source files. Therefore, your project must be compilable for this process to work.

@JDLogic
JDLogic / SimpleFontLoader.java
Created June 22, 2019 18:26
MC ASCII Font Loader
package net.minecraftforge.fml.client;
import com.google.common.base.CharMatcher;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.fonts.Font;