oiqwhgosladkjf

This commit is contained in:
ThisIsALegitUsername 2023-03-28 03:16:51 +00:00
parent fb864de2b4
commit 080ac70b54
12 changed files with 114605 additions and 114473 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -18,6 +18,7 @@ public abstract class Mod {
private Category category;
private boolean enabled;
private boolean hasSetting;
private boolean admin;
public SimpleAnimation toggleAnimation = new SimpleAnimation(0);
public List<Setting> settings = new ArrayList<>();
@ -79,6 +80,7 @@ public abstract class Mod {
}
public boolean isEnabled() { return enabled; }
public boolean isAdmin() { return admin; }
public boolean doesHaveSetting() { return hasSetting; }
public String getName() { return name; }
public Category getCategory() { return category; }

View File

@ -19,6 +19,7 @@ import dev.resent.module.impl.hud.KeyStrokes;
import dev.resent.module.impl.hud.PotCounter;
import dev.resent.module.impl.hud.PotionHUD;
import dev.resent.module.impl.hud.ReachDisplay;
import dev.resent.module.impl.misc.AdminSpawner;
import dev.resent.module.impl.misc.AdminXray;
import dev.resent.module.impl.misc.Animations;
import dev.resent.module.impl.misc.AutoGG;
@ -78,9 +79,11 @@ public class ModManager {
public static ItemPhysics itemPhysics = new ItemPhysics();
public static FPSOptions fpsOptions = new FPSOptions();
public static AdminXray adminXray = new AdminXray();
public static AdminSpawner adminSpawner =new AdminSpawner();
public ModManager() {
//Hud
register(adminSpawner);
register(adminXray);
register(fpsOptions);
register(itemPhysics);

View File

@ -0,0 +1,58 @@
package dev.resent.module.impl.misc;
import dev.resent.annotation.Module;
import dev.resent.module.base.Mod;
import dev.resent.module.base.Mod.Category;
import net.lax1dude.eaglercraft.v1_8.opengl.EaglercraftGPU;
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.RenderGlobal;
import net.minecraft.tileentity.TileEntityMobSpawner;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
@Module(name = "ESP", category = Category.HUD)
public class AdminSpawner extends Mod {
public void draw(){
for(Object o: mc.theWorld.loadedTileEntityList) {
if(o instanceof TileEntityMobSpawner) {
blockESPBox(((TileEntityMobSpawner)o).getPos());
}
}
}
@Override
public boolean isAdmin(){
return true;
}
public static void blockESPBox(BlockPos blockPos) {
Minecraft mc = Minecraft.getMinecraft();
double x =
blockPos.getX()
- mc.getRenderManager().renderPosX;
double y =
blockPos.getY()
- mc.getRenderManager().renderPosY;
double z =
blockPos.getZ()
- mc.getRenderManager().renderPosZ;
GlStateManager.blendFunc(770, 771);
GlStateManager.enableBlend();
EaglercraftGPU.glLineWidth(2.0F);
GlStateManager.color(0, 0, 1, 0.15F);
GlStateManager.disableTexture2D();
GlStateManager.disableAlpha();
GlStateManager.depthMask(false);
//Box
GlStateManager.color(0, 0, 1, 0.5F);
RenderGlobal.func_181561_a(new AxisAlignedBB(x, y, z, x + 1.0, y + 1.0, z + 1.0));
GlStateManager.enableTexture2D();
GlStateManager.enableDepth();
GlStateManager.depthMask(true);
GlStateManager.disableBlend();
}
}

View File

@ -28,6 +28,11 @@ public class AdminXray extends Mod{
addSetting(iron, diamond, gold, redstone, lapis, quartz, water);
}
@Override
public boolean isAdmin(){
return true;
}
public static boolean shouldRender(Block block){
return xrayBlocks.contains(block);
}

View File

@ -68,7 +68,7 @@ public class ClickGUI extends GuiScreen {
Resent.INSTANCE.modManager.modsInCategory(selectedCategory).sort(Comparator.comparingInt(m -> fr.getStringWidth(m.getName())));
for (Mod m : Resent.INSTANCE.modManager.modsInCategory(selectedCategory) ) {
if(m.getName() != "Xray" || EntityRenderer.test){
if(!m.isAdmin() || EntityRenderer.test){
int fh = 9;
if (isMouseInside(mouseX, mouseY, this.x + 90 + xo - 1 + 10, height - 2 - fh * -(off) + 51 - 1 - offset, this.x + 90 + xo - 1 + 21, height + 30 - fh * (-off) + 30 - 1 + 2 - 1 - offset) && m.doesHaveSetting() && openedMod == null) {
@ -193,7 +193,7 @@ public class ClickGUI extends GuiScreen {
Resent.INSTANCE.modManager.modsInCategory(selectedCategory).sort(Comparator.comparingInt(m -> fr.getStringWidth(m.getName())));
for (Mod m : Resent.INSTANCE.modManager.modsInCategory(selectedCategory)) {
if (this.openedMod == null && m.getName() != "Xray" || this.openedMod == null && EntityRenderer.test) {
if (this.openedMod == null && !m.isAdmin() || this.openedMod == null && EntityRenderer.test) {
int fh = 9;
if (height - 2 - fh * -(off) + 50 - 2 - offset > height + 29 && height + 40 - fh * (-off) + 30 +15 - offset < y + 20 && (introAnimation != null ? introAnimation.isDone() : true)) {
// Enabled outline
@ -279,7 +279,7 @@ public class ClickGUI extends GuiScreen {
}
}
if(m.getName() != "Xray" || EntityRenderer.test){
if(!m.isAdmin() || EntityRenderer.test){
if (xo > width / 2) {
xo = 0;
off += 5;

View File

@ -1375,7 +1375,7 @@ public class Minecraft implements IThreadListener {
this.displayGuiScreen(new PreGUI());
}
if(k == KeyboardConstants.KEY_X && EntityRenderer.test){
if(k == this.gameSettings.keyBindAdminX.keyCode && EntityRenderer.test){
AdminXray.initXRayBlocks();
ModManager.adminXray.setEnabled(!ModManager.adminXray.isEnabled());
this.renderGlobal.loadRenderers();

View File

@ -129,9 +129,9 @@ public class RenderManager {
private Map<String, RenderPlayer> skinMap = Maps.newHashMap();
private RenderPlayer playerRenderer;
private FontRenderer textRenderer;
private double renderPosX;
private double renderPosY;
private double renderPosZ;
public double renderPosX;
public double renderPosY;
public double renderPosZ;
public TextureManager renderEngine;
public World worldObj;
public Entity livingPlayer;