Update preprocessor

- Switch from ECJ to IDEA (with potential for kotlin)
- Can pull SRG mappings from FG, reducing amount of manual mappings (basically just class mappings and fixing errors in SRG mappings)
This commit is contained in:
Jonas Herzig
2019-06-23 13:29:03 +02:00
parent b846d5308e
commit 862c8d9b36
11 changed files with 20 additions and 82 deletions

View File

@@ -608,9 +608,6 @@ public class MCVer {
//#endif
//#if MC>=11300
public static void color(float r, float g, float b, float a) { GlStateManager.color4f(r, g, b, a); }
public static void enableAlpha() { GlStateManager.enableAlphaTest(); }
@SuppressWarnings("unused")
public static abstract class Keyboard {
public static final int KEY_LCONTROL = GLFW.GLFW_KEY_LEFT_CONTROL;

View File

@@ -21,10 +21,7 @@ import de.johni0702.minecraft.gui.versions.callbacks.PostRenderHudCallback;
import static com.replaymod.core.ReplayMod.TEXTURE;
import static com.replaymod.core.ReplayMod.TEXTURE_SIZE;
import static com.replaymod.core.versions.MCVer.*;
//#if MC<11300
//$$ import static net.minecraft.client.renderer.GlStateManager.*;
//#endif
import static com.mojang.blaze3d.platform.GlStateManager.*;
/**
* Renders overlay during recording.
@@ -57,7 +54,7 @@ public class GuiRecordingOverlay extends EventRegistrations {
String text = guiControls.isPaused() ? I18n.translate("replaymod.gui.paused") : I18n.translate("replaymod.gui.recording");
fontRenderer.draw(text.toUpperCase(), 30, 18 - (fontRenderer.fontHeight / 2), 0xffffffff);
bindTexture(TEXTURE);
enableAlpha();
enableAlphaTest();
GuiRenderer renderer = new MinecraftGuiRenderer(MCVer.newScaledResolution(mc));
renderer.drawTexturedRect(10, 10, 58, 20, 16, 16, 16, 16, TEXTURE_SIZE, TEXTURE_SIZE);
}