Port FPS to 1.8, remove instances of EaglerAdapter

This commit is contained in:
ThisIsALegitUsername 2022-12-27 21:26:30 +00:00
parent 44b2634605
commit 43115ef1d4
13 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ import dev.resent.event.impl.EventUpdate;
import dev.resent.module.base.Category;
import dev.resent.module.base.Mod;
import dev.resent.util.misc.W;
import net.lax1dude.eaglercraft.EaglerAdapter;
import net.lax1dude.eaglercraft.v1_8.Keyboard;
import net.minecraft.client.Minecraft;
@SuppressWarnings("all")
@ -36,7 +36,7 @@ public class Freelook extends Mod {
mc.gameSettings.thirdPersonView = previousePrespective;
}
if (EaglerAdapter.getEventKey() == 6 && mc.gameSettings.keyBindFunction.pressed) {
if (Keyboard.getEventKey() == 6 && mc.gameSettings.keyBindFunction.pressed) {
perspectiveToggled = false;
}
}

View File

@ -10,7 +10,7 @@ import dev.resent.setting.ModeSetting;
import dev.resent.util.misc.FuncUtils;
import dev.resent.util.render.RainbowUtil;
import dev.resent.util.render.RenderUtils;
import net.lax1dude.eaglercraft.EaglerAdapter;
GlStateManager.popMatrix();
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;

View File

@ -4,7 +4,7 @@ import dev.resent.Resent;
import dev.resent.module.base.Category;
import dev.resent.module.base.RenderModule;
import dev.resent.util.render.Color;
import net.lax1dude.eaglercraft.EaglerAdapter;
GlStateManager.popMatrix();
import net.minecraft.src.FontRenderer;
public class Watermark extends RenderModule{

View File

@ -4,7 +4,7 @@ import dev.resent.Resent;
import dev.resent.event.impl.RenderWorldEvent;
import dev.resent.module.base.Category;
import dev.resent.module.base.Mod;
import net.lax1dude.eaglercraft.EaglerAdapter;
GlStateManager.popMatrix();
import net.minecraft.src.AxisAlignedBB;
import net.minecraft.src.RenderGlobal;
import net.minecraft.src.RenderManager;

View File

@ -7,7 +7,7 @@ import dev.resent.module.base.Mod;
import dev.resent.setting.BooleanSetting;
import dev.resent.setting.Setting;
import dev.resent.util.misc.Keyboard;
import net.lax1dude.eaglercraft.EaglerAdapter;
GlStateManager.popMatrix();
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;
import net.minecraft.src.GuiButton;

View File

@ -9,7 +9,7 @@ import dev.resent.setting.Setting;
import dev.resent.util.misc.Keyboard;
import dev.resent.util.render.Color;
import dev.resent.util.render.RenderUtils;
import net.lax1dude.eaglercraft.EaglerAdapter;
GlStateManager.popMatrix();
import net.minecraft.client.Minecraft;
import net.minecraft.src.FontRenderer;
import net.minecraft.client.gui.Gui;

View File

@ -212,7 +212,7 @@ public class Minecraft implements IThreadListener {
public GameSettings gameSettings;
public MouseHelper mouseHelper;
private final String launchedVersion;
private static int debugFPS;
public static int debugFPS;
private int rightClickDelayTimer;
private String serverName;
private int serverPort;