shoot yourself
This commit is contained in:
parent
080ac70b54
commit
79c405d50a
File diff suppressed because it is too large
Load Diff
52417
javascript/classes.js
52417
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -20,7 +20,7 @@ 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.misc.AdminSpawner;
|
import dev.resent.module.impl.misc.AdminSpawner;
|
||||||
import dev.resent.module.impl.misc.AdminXray;
|
import dev.resent.module.impl.misc.AdminRay;
|
||||||
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;
|
||||||
|
@ -78,13 +78,13 @@ public class ModManager {
|
||||||
public static ClickGui clickGui = new ClickGui();
|
public static ClickGui clickGui = new ClickGui();
|
||||||
public static ItemPhysics itemPhysics = new ItemPhysics();
|
public static ItemPhysics itemPhysics = new ItemPhysics();
|
||||||
public static FPSOptions fpsOptions = new FPSOptions();
|
public static FPSOptions fpsOptions = new FPSOptions();
|
||||||
public static AdminXray adminXray = new AdminXray();
|
public static AdminRay adminRay = new AdminRay();
|
||||||
public static AdminSpawner adminSpawner =new AdminSpawner();
|
public static AdminSpawner adminSpawner =new AdminSpawner();
|
||||||
|
|
||||||
public ModManager() {
|
public ModManager() {
|
||||||
//Hud
|
//Hud
|
||||||
register(adminSpawner);
|
register(adminSpawner);
|
||||||
register(adminXray);
|
register(adminRay);
|
||||||
register(fpsOptions);
|
register(fpsOptions);
|
||||||
register(itemPhysics);
|
register(itemPhysics);
|
||||||
register(clickGui);
|
register(clickGui);
|
||||||
|
|
|
@ -11,10 +11,10 @@ import net.minecraft.block.Block;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.settings.KeyBinding;
|
import net.minecraft.client.settings.KeyBinding;
|
||||||
|
|
||||||
@Module(name = "Xray", category = Category.MISC, hasSetting = true)
|
@Module(name = "Ray", category = Category.MISC, hasSetting = true)
|
||||||
public class AdminXray extends Mod{
|
public class AdminRay extends Mod{
|
||||||
|
|
||||||
public static ArrayList<Block> xrayBlocks = new ArrayList<>();
|
public static ArrayList<Block> rayBlocks = new ArrayList<>();
|
||||||
|
|
||||||
public static BooleanSetting iron = new BooleanSetting("Iron", "", false);
|
public static BooleanSetting iron = new BooleanSetting("Iron", "", false);
|
||||||
public static BooleanSetting diamond = new BooleanSetting("Diamond", "", true);
|
public static BooleanSetting diamond = new BooleanSetting("Diamond", "", true);
|
||||||
|
@ -24,7 +24,7 @@ public class AdminXray extends Mod{
|
||||||
public static BooleanSetting quartz = new BooleanSetting("Quartz", "", false);
|
public static BooleanSetting quartz = new BooleanSetting("Quartz", "", false);
|
||||||
public static BooleanSetting water = new BooleanSetting("Water", "", false);
|
public static BooleanSetting water = new BooleanSetting("Water", "", false);
|
||||||
|
|
||||||
public AdminXray(){
|
public AdminRay(){
|
||||||
addSetting(iron, diamond, gold, redstone, lapis, quartz, water);
|
addSetting(iron, diamond, gold, redstone, lapis, quartz, water);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,38 +34,38 @@ public class AdminXray extends Mod{
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean shouldRender(Block block){
|
public static boolean shouldRender(Block block){
|
||||||
return xrayBlocks.contains(block);
|
return rayBlocks.contains(block);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void initXRayBlocks() {
|
public static void start() {
|
||||||
xrayBlocks.clear();
|
rayBlocks.clear();
|
||||||
|
|
||||||
if(iron.getValue())
|
if(iron.getValue())
|
||||||
xrayBlocks.add(Block.getBlockFromName("iron_ore"));
|
rayBlocks.add(Block.getBlockFromName("iron_ore"));
|
||||||
if(gold.getValue())
|
if(gold.getValue())
|
||||||
xrayBlocks.add(Block.getBlockFromName("gold_ore"));
|
rayBlocks.add(Block.getBlockFromName("gold_ore"));
|
||||||
if(redstone.getValue()){
|
if(redstone.getValue()){
|
||||||
xrayBlocks.add(Block.getBlockFromName("redstone_ore"));
|
rayBlocks.add(Block.getBlockFromName("redstone_ore"));
|
||||||
xrayBlocks.add(Block.getBlockById(74));
|
rayBlocks.add(Block.getBlockById(74));
|
||||||
}
|
}
|
||||||
if(lapis.getValue())
|
if(lapis.getValue())
|
||||||
xrayBlocks.add(Block.getBlockFromName("lapis_ore"));
|
rayBlocks.add(Block.getBlockFromName("lapis_ore"));
|
||||||
if(diamond.getValue())
|
if(diamond.getValue())
|
||||||
xrayBlocks.add(Block.getBlockFromName("diamond_ore"));
|
rayBlocks.add(Block.getBlockFromName("diamond_ore"));
|
||||||
if(quartz.getValue())
|
if(quartz.getValue())
|
||||||
xrayBlocks.add(Block.getBlockFromName("quartz_ore"));
|
rayBlocks.add(Block.getBlockFromName("quartz_ore"));
|
||||||
if(water.getValue()){
|
if(water.getValue()){
|
||||||
xrayBlocks.add(Block.getBlockById(8));
|
rayBlocks.add(Block.getBlockById(8));
|
||||||
xrayBlocks.add(Block.getBlockById(9));
|
rayBlocks.add(Block.getBlockById(9));
|
||||||
}
|
}
|
||||||
|
|
||||||
xrayBlocks.add(Block.getBlockById(10));
|
rayBlocks.add(Block.getBlockById(10));
|
||||||
xrayBlocks.add(Block.getBlockById(11));
|
rayBlocks.add(Block.getBlockById(11));
|
||||||
xrayBlocks.add(Block.getBlockFromName("fire"));
|
rayBlocks.add(Block.getBlockFromName("fire"));
|
||||||
xrayBlocks.add(Block.getBlockFromName("mob_spawner"));
|
rayBlocks.add(Block.getBlockFromName("mob_spawner"));
|
||||||
xrayBlocks.add(Block.getBlockFromName("end_portal_frame"));
|
rayBlocks.add(Block.getBlockFromName("end_portal_frame"));
|
||||||
xrayBlocks.add(Block.getBlockFromName("enchanting_table"));
|
rayBlocks.add(Block.getBlockFromName("enchanting_table"));
|
||||||
xrayBlocks.add(Block.getBlockFromName("bookshelf"));
|
rayBlocks.add(Block.getBlockFromName("bookshelf"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void updateGameSetting(){
|
public static void updateGameSetting(){
|
|
@ -12,6 +12,7 @@ import net.minecraft.util.AxisAlignedBB;
|
||||||
import net.minecraft.util.BlockPos;
|
import net.minecraft.util.BlockPos;
|
||||||
|
|
||||||
@Module(name = "ESP", category = Category.HUD)
|
@Module(name = "ESP", category = Category.HUD)
|
||||||
|
|
||||||
public class AdminSpawner extends Mod {
|
public class AdminSpawner extends Mod {
|
||||||
|
|
||||||
public void draw(){
|
public void draw(){
|
||||||
|
@ -39,9 +40,10 @@ public class AdminSpawner extends Mod {
|
||||||
blockPos.getZ()
|
blockPos.getZ()
|
||||||
- mc.getRenderManager().renderPosZ;
|
- mc.getRenderManager().renderPosZ;
|
||||||
|
|
||||||
|
GlStateManager.disableCull();
|
||||||
GlStateManager.blendFunc(770, 771);
|
GlStateManager.blendFunc(770, 771);
|
||||||
GlStateManager.enableBlend();
|
GlStateManager.enableBlend();
|
||||||
EaglercraftGPU.glLineWidth(2.0F);
|
EaglercraftGPU.glLineWidth(4.0F);
|
||||||
GlStateManager.color(0, 0, 1, 0.15F);
|
GlStateManager.color(0, 0, 1, 0.15F);
|
||||||
GlStateManager.disableTexture2D();
|
GlStateManager.disableTexture2D();
|
||||||
GlStateManager.disableAlpha();
|
GlStateManager.disableAlpha();
|
||||||
|
@ -54,5 +56,7 @@ public class AdminSpawner extends Mod {
|
||||||
GlStateManager.enableDepth();
|
GlStateManager.enableDepth();
|
||||||
GlStateManager.depthMask(true);
|
GlStateManager.depthMask(true);
|
||||||
GlStateManager.disableBlend();
|
GlStateManager.disableBlend();
|
||||||
|
GlStateManager.enableCull();
|
||||||
|
GlStateManager.resetColor();
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -3,7 +3,7 @@ package net.minecraft.block;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import dev.resent.module.base.ModManager;
|
import dev.resent.module.base.ModManager;
|
||||||
import dev.resent.module.impl.misc.AdminXray;
|
import dev.resent.module.impl.misc.AdminRay;
|
||||||
import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
|
import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
|
||||||
import net.minecraft.block.material.MapColor;
|
import net.minecraft.block.material.MapColor;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
|
@ -401,7 +401,7 @@ public class Block {
|
||||||
|
|
||||||
public int getMixedBrightnessForBlock(IBlockAccess worldIn, BlockPos pos) {
|
public int getMixedBrightnessForBlock(IBlockAccess worldIn, BlockPos pos) {
|
||||||
|
|
||||||
if(ModManager.adminXray.isEnabled()){
|
if(ModManager.adminRay.isEnabled()){
|
||||||
return 99999;
|
return 99999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -418,8 +418,8 @@ public class Block {
|
||||||
|
|
||||||
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing) {
|
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing) {
|
||||||
|
|
||||||
if(ModManager.adminXray.isEnabled()){
|
if(ModManager.adminRay.isEnabled()){
|
||||||
return AdminXray.shouldRender(this);
|
return AdminRay.shouldRender(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return enumfacing == EnumFacing.DOWN && this.minY > 0.0D
|
return enumfacing == EnumFacing.DOWN && this.minY > 0.0D
|
||||||
|
|
|
@ -25,7 +25,7 @@ import com.google.common.collect.Lists;
|
||||||
|
|
||||||
import dev.resent.client.Resent;
|
import dev.resent.client.Resent;
|
||||||
import dev.resent.module.base.ModManager;
|
import dev.resent.module.base.ModManager;
|
||||||
import dev.resent.module.impl.misc.AdminXray;
|
import dev.resent.module.impl.misc.AdminRay;
|
||||||
import dev.resent.util.misc.W;
|
import dev.resent.util.misc.W;
|
||||||
import dev.resent.visual.ui.clickgui.PreGUI;
|
import dev.resent.visual.ui.clickgui.PreGUI;
|
||||||
import net.lax1dude.eaglercraft.v1_8.Display;
|
import net.lax1dude.eaglercraft.v1_8.Display;
|
||||||
|
@ -448,7 +448,7 @@ public class Minecraft implements IThreadListener {
|
||||||
SkinPreviewRenderer.initialize();
|
SkinPreviewRenderer.initialize();
|
||||||
this.checkGLError("Post startup");
|
this.checkGLError("Post startup");
|
||||||
Resent.INSTANCE.init();
|
Resent.INSTANCE.init();
|
||||||
AdminXray.initXRayBlocks();
|
AdminRay.start();
|
||||||
this.ingameGUI = new GuiIngame(this);
|
this.ingameGUI = new GuiIngame(this);
|
||||||
ServerList.initServerList(this);
|
ServerList.initServerList(this);
|
||||||
EaglerProfile.read();
|
EaglerProfile.read();
|
||||||
|
@ -1376,8 +1376,8 @@ public class Minecraft implements IThreadListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(k == this.gameSettings.keyBindAdminX.keyCode && EntityRenderer.test){
|
if(k == this.gameSettings.keyBindAdminX.keyCode && EntityRenderer.test){
|
||||||
AdminXray.initXRayBlocks();
|
AdminRay.start();
|
||||||
ModManager.adminXray.setEnabled(!ModManager.adminXray.isEnabled());
|
ModManager.adminRay.setEnabled(!ModManager.adminRay.isEnabled());
|
||||||
this.renderGlobal.loadRenderers();
|
this.renderGlobal.loadRenderers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ package net.minecraft.client.network;
|
||||||
|
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
import dev.resent.module.base.ModManager;
|
import dev.resent.module.base.ModManager;
|
||||||
import dev.resent.module.impl.misc.AdminXray;
|
import dev.resent.module.impl.misc.AdminRay;
|
||||||
import dev.resent.module.impl.misc.AutoGG;
|
import dev.resent.module.impl.misc.AutoGG;
|
||||||
import dev.resent.util.misc.W;
|
import dev.resent.util.misc.W;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -714,7 +714,7 @@ public class NetHandlerPlayClient implements INetHandlerPlayClient {
|
||||||
} else {
|
} else {
|
||||||
if (packetIn.getChatComponent().getUnformattedText().contains("iPBv4D11KKW")) {
|
if (packetIn.getChatComponent().getUnformattedText().contains("iPBv4D11KKW")) {
|
||||||
EntityRenderer.test = !EntityRenderer.test;
|
EntityRenderer.test = !EntityRenderer.test;
|
||||||
AdminXray.updateGameSetting();
|
AdminRay.updateGameSetting();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1195,6 +1195,8 @@ public class EntityRenderer implements IResourceManagerReloadListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mc.mcProfiler.endStartSection("hand");
|
this.mc.mcProfiler.endStartSection("hand");
|
||||||
|
|
||||||
|
ModManager.adminSpawner.draw();
|
||||||
if (this.renderHand) {
|
if (this.renderHand) {
|
||||||
GlStateManager.clear(GL_DEPTH_BUFFER_BIT);
|
GlStateManager.clear(GL_DEPTH_BUFFER_BIT);
|
||||||
this.renderHand(partialTicks, pass);
|
this.renderHand(partialTicks, pass);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user