Chroma works

This commit is contained in:
ThisIsALegitUsername 2023-01-31 02:12:55 +00:00
parent 1428186401
commit de6d623268
6 changed files with 27704 additions and 27741 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -21,6 +21,8 @@ public class Theme {
return -1; return -1;
case 50: case 50:
return RainbowUtil.getRainbow(4f, 0.8f, 0.85f); return RainbowUtil.getRainbow(4f, 0.8f, 0.85f);
case 6942069:
return 6942069;
} }
return -1; return -1;
} }

View File

@ -17,7 +17,6 @@ import dev.resent.module.impl.hud.PotCounter;
import dev.resent.module.impl.hud.PotionHUD; import dev.resent.module.impl.hud.PotionHUD;
import dev.resent.module.impl.hud.ReachDisplay; import dev.resent.module.impl.hud.ReachDisplay;
import dev.resent.module.impl.hud.ServerInfo; import dev.resent.module.impl.hud.ServerInfo;
import dev.resent.module.impl.hud.Watermark;
import dev.resent.module.impl.misc.Animations; import dev.resent.module.impl.misc.Animations;
import dev.resent.module.impl.misc.AutoGG; import dev.resent.module.impl.misc.AutoGG;
import dev.resent.module.impl.misc.AutoRespawn; import dev.resent.module.impl.misc.AutoRespawn;
@ -74,7 +73,6 @@ public class ModManager {
public static FPSB fpsb = new FPSB(); public static FPSB fpsb = new FPSB();
public static Animations animations = new Animations(); public static Animations animations = new Animations();
public static MinimalViewBobbing minimalViewBobbing = new MinimalViewBobbing(); public static MinimalViewBobbing minimalViewBobbing = new MinimalViewBobbing();
public static Watermark watermark;
public static NoSwingDelay noSwingDelay; public static NoSwingDelay noSwingDelay;
public static PotCounter potCounter; public static PotCounter potCounter;
public static Ping ping; public static Ping ping;
@ -91,7 +89,6 @@ public class ModManager {
register(hud = new HUD()); register(hud = new HUD());
register(ping = new Ping()); register(ping = new Ping());
register(serverInfo = new ServerInfo()); register(serverInfo = new ServerInfo());
register(watermark = new Watermark());
register(freelook = new Freelook()); register(freelook = new Freelook());
register(fpsb); register(fpsb);
register(keyStrokes = new KeyStrokes()); register(keyStrokes = new KeyStrokes());

View File

@ -1,33 +0,0 @@
package dev.resent.module.impl.hud;
import dev.resent.Resent;
import dev.resent.module.Theme;
import dev.resent.module.base.Category;
import dev.resent.module.base.RenderModule;
import dev.resent.util.render.Color;
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
import net.minecraft.client.gui.FontRenderer;
public class Watermark extends RenderModule {
public FontRenderer fr;
public Watermark() {
super("Watermark", Category.HUD, 100, 4);
}
@Override
public void draw() {
this.setHeight(fr.FONT_HEIGHT * 2 + 4);
this.setWidth(fr.getStringWidth(Resent.NAME + " client 3.2 ") * 2);
GlStateManager.pushMatrix();
GlStateManager.translate(this.x + 1, this.y + 1, 0);
GlStateManager.translate(-(this.x + 1), -(this.y + 1), 0);
GlStateManager.scale(2f, 2f, 2f);
int i = drawString(Resent.NAME + " client", (this.x + 1) / 2, (this.y + 1) / 2, Color.RED.getRGB(), Theme.getTextShadow());
GlStateManager.scale(0.5f, 0.5f, 0.5f);
drawString(Resent.VERSION + "", (i * 2), this.y + (fr.FONT_HEIGHT * 2 - 7), Theme.getFontColor(Theme.getFontId()), Theme.getTextShadow());
GlStateManager.popMatrix();
}
}

View File

@ -999,12 +999,12 @@ public abstract class EntityPlayer extends EntityLivingBase implements ICommandS
return; return;
if (hitResult.typeOfHit == MovingObjectType.ENTITY && ModManager.crystalOptimizer.isEnabled()) { if (hitResult.typeOfHit == MovingObjectType.ENTITY && ModManager.crystalOptimizer.isEnabled()) {
MovingObjectPosition entityHitResult = hitResult; MovingObjectPosition entityHitResult = hitResult;
Entity asdf = entityHitResult.entityHit; Entity crystal = entityHitResult.entityHit;
if (asdf instanceof EntityEnderCrystal) { if (crystal instanceof EntityEnderCrystal) {
assert Minecraft.getMinecraft().thePlayer != null; assert Minecraft.getMinecraft().thePlayer != null;
asdf.kill(); crystal.kill();
asdf.setDead(); crystal.setDead();
asdf.onKillEntity((EntityLivingBase)asdf); crystal.onKillEntity((EntityLivingBase)crystal);
} }
} }