file_name
stringlengths 6
86
| file_path
stringlengths 45
249
| content
stringlengths 47
6.26M
| file_size
int64 47
6.26M
| language
stringclasses 1
value | extension
stringclasses 1
value | repo_name
stringclasses 767
values | repo_stars
int64 8
14.4k
| repo_forks
int64 0
1.17k
| repo_open_issues
int64 0
788
| repo_created_at
stringclasses 767
values | repo_pushed_at
stringclasses 767
values |
---|---|---|---|---|---|---|---|---|---|---|---|
NowYouSeeMe.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/thaumichorizons/NowYouSeeMe.java | package ehacks.mod.modulesystem.classes.mods.thaumichorizons;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.client.entity.EntityClientPlayerMP;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
public class NowYouSeeMe extends Module {
public NowYouSeeMe() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "NowYouSeeMe";
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("com.kentington.thaumichorizons.common.lib.PacketToggleInvisibleToServer");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public String getModName() {
return "ThaumicHorizons";
}
@Override
public String getDescription() {
return "Turn yourself invisible";
}
@Override
public void onModuleEnabled() {
sendPacket();
}
@Override
public void onModuleDisabled() {
sendPacket();
}
//Check if the player is invisible for a LONG time
@Override
public boolean isActive() {
EntityClientPlayerMP player = Wrapper.INSTANCE.player();
if (player == null) {
return false;
}
if (player.isPotionActive(Potion.invisibility)) {
PotionEffect activePotionEffect = player.getActivePotionEffect(Potion.invisibility);
return activePotionEffect.getDuration() > 20000;
}
return false;
}
private void sendPacket() {
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(13);//Index of packet in packet handler
buf.writeInt(Wrapper.INSTANCE.player().getEntityId());
buf.writeInt(Wrapper.INSTANCE.player().dimension);
C17PacketCustomPayload packet = new C17PacketCustomPayload("thaumichorizons", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
}
| 2,223 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
CarpenterOpener.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/carpentersblocks/CarpenterOpener.java | package ehacks.mod.modulesystem.classes.mods.carpentersblocks;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.util.MovingObjectPosition;
import net.minecraftforge.client.event.MouseEvent;
import org.lwjgl.input.Mouse;
public class CarpenterOpener extends Module {
public CarpenterOpener() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "ContOpener";
}
@Override
public String getDescription() {
return "Allows to open containers on right click on servers with bad WorldGuard";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("com.carpentersblocks.network.PacketActivateBlock");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("com.carpentersblocks.network.PacketActivateBlock");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onMouse(MouseEvent event) {
try {
MovingObjectPosition position = Wrapper.INSTANCE.mc().objectMouseOver;
if (position.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && Mouse.isButtonDown(1)) {
if (event.isCancelable()) {
event.setCanceled(true);
}
ByteBuf buf = Unpooled.buffer(0);
buf.writeInt(0);
buf.writeInt(position.blockX);
buf.writeInt(position.blockY);
buf.writeInt(position.blockZ);
buf.writeInt(position.sideHit);
C17PacketCustomPayload packet = new C17PacketCustomPayload("CarpentersBlocks", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
} catch (Exception e) {
}
}
@Override
public String getModName() {
return "Carpenters";
}
}
| 2,274 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
IronChestFinder.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/ironchest/IronChestFinder.java | package ehacks.mod.modulesystem.classes.mods.ironchest;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.GLUtils;
import ehacks.mod.util.axis.AltAxisAlignedBB;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import org.lwjgl.opengl.GL11;
public class IronChestFinder
extends Module {
public IronChestFinder() {
super(ModuleCategory.RENDER);
}
@Override
public String getName() {
return "IronChestFinder";
}
@Override
public String getModName() {
return "IronChest";
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("cpw.mods.ironchest.TileEntityIronChest");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleEnabled() {
try {
Class.forName("cpw.mods.ironchest.TileEntityIronChest");
} catch (Exception e) {
this.off();
}
}
@Override
public String getDescription() {
return "Shows all chests from IronChests mod around you";
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
try {
for (Object o : Wrapper.INSTANCE.world().loadedTileEntityList) {
if (Class.forName("cpw.mods.ironchest.TileEntityIronChest").isInstance(o)) {
TileEntity chest = (TileEntity) o;
double renderX = chest.xCoord - RenderManager.renderPosX;
double renderY = chest.yCoord - RenderManager.renderPosY;
double renderZ = chest.zCoord - RenderManager.renderPosZ;
GL11.glPushMatrix();
GL11.glTranslated(renderX, renderY, renderZ);
GL11.glColor3f(1.0f, 1.0f, 0.0f);
AltAxisAlignedBB boundingBox = AltAxisAlignedBB.getBoundingBox(0.0, 0.0, 0.0, 1.0, 1.0, 1.0);
GL11.glColor4f(0.0f, 1.0f, 1.0f, 0.1f);
GLUtils.startDrawingESPs(boundingBox, 0.3f, 0.8f, 1.0f);
GL11.glPopMatrix();
}
}
} catch (Exception e) {
}
}
}
| 2,443 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
PipeGive.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/buildcraft/PipeGive.java | package ehacks.mod.modulesystem.classes.mods.buildcraft;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.GiveKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Statics;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import org.lwjgl.input.Keyboard;
public class PipeGive
extends Module {
public PipeGive() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "PipeGive";
}
@Override
public String getDescription() {
return "You can put any ItemStack in Construction Marker from BuildCraft\nUsage: \n Numpad0 - Perform action on container";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("buildcraft.builders.TileConstructionMarker");
Class.forName("buildcraft.core.Box");
try {
Class.forName("buildcraft.core.lib.utils.NetworkUtils");
} catch (Exception ex) {
Class.forName("buildcraft.core.utils.Utils");
}
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("buildcraft.builders.TileConstructionMarker");
Class.forName("buildcraft.core.Box");
try {
Class.forName("buildcraft.core.lib.utils.NetworkUtils");
} catch (Exception ex) {
Class.forName("buildcraft.core.utils.Utils");
}
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private boolean prevState = false;
@Override
public void onTicks() {
try {
boolean newState = Keyboard.isKeyDown(GiveKeybind.getKey());
if (newState && !prevState) {
prevState = newState;
MovingObjectPosition mop = Wrapper.INSTANCE.mc().objectMouseOver;
TileEntity entity = Wrapper.INSTANCE.world().getTileEntity(mop.blockX, mop.blockY, mop.blockZ);
if (entity != null && Class.forName("buildcraft.builders.TileConstructionMarker").isInstance(entity)) {
setSlot(mop.blockX, mop.blockY, mop.blockZ);
InteropUtils.log("Set", this);
}
}
prevState = newState;
} catch (Exception e) {
}
}
public void setSlot(int x, int y, int z) throws Exception {
ByteBuf buf = Unpooled.buffer(0);
buf.writeShort(0);
buf.writeInt(x);
buf.writeShort(y);
buf.writeInt(z);
Class.forName("buildcraft.core.Box").getMethod("writeData", ByteBuf.class).invoke(Class.forName("buildcraft.core.Box").getConstructor().newInstance(), buf);
buf.writeByte(2);
try {
Class.forName("buildcraft.core.lib.utils.NetworkUtils").getMethod("writeStack", ByteBuf.class, ItemStack.class).invoke(null, buf, Statics.STATIC_ITEMSTACK);
} catch (Exception ex) {
Class.forName("buildcraft.core.utils.Utils").getMethod("writeStack", ByteBuf.class, ItemStack.class).invoke(null, buf, Statics.STATIC_ITEMSTACK);
}
C17PacketCustomPayload packet = new C17PacketCustomPayload("BC-CORE", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "BuildCraft";
}
}
| 3,818 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
PacketFlooder.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/forge/PacketFlooder.java | package ehacks.mod.modulesystem.classes.mods.forge;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.util.Random;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.util.ArrayList;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
public class PacketFlooder
extends Module {
private final ArrayList<FakePacket> validPackets = new ArrayList<>();
private final Random rand = new Random();
public PacketFlooder() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "PacketFlooder";
}
@Override
public String getDescription() {
return "Floods a lot of random packets to server\n\u00A7cTURN IT ON EVERY TIME YOU USE PACKETHACKS!";
}
@Override
public void onModuleEnabled() {
validPackets.clear();
for (FakePacket packet : FakePacket.values()) {
if (checkClass(packet.clazz())) {
validPackets.add(packet);
}
}
InteropUtils.log("Enabled: " + String.valueOf(validPackets.size()) + "/" + String.valueOf(FakePacket.values().length) + " packets", this);
}
public boolean checkClass(String clazz) {
try {
Class.forName(clazz);
return true;
} catch (ClassNotFoundException e) {
return false;
}
}
private int tempTimeout = 0;
private int nextSet = 2;
@Override
public void onTicks() {
if (tempTimeout == 0) {
sendRandomPacket();
}
tempTimeout++;
if (tempTimeout == nextSet) {
tempTimeout = 0;
nextSet = rand.num(2, 16);
}
}
enum FakePacket {
NEI_SendLoginState("codechicken.lib.packet.PacketCustom"),
NEI_SpawnerID("codechicken.lib.packet.PacketCustom"),
CRAYFISH_MessageTVServer("com.mrcrayfish.furniture.network.message.MessageTVServer"),
CRAYFISH_MessageEmptyBin("com.mrcrayfish.furniture.network.message.MessageEmptyBin"),
CRAYFISH_MessageMicrowave("com.mrcrayfish.furniture.network.message.MessageMicrowave"),
FORESTRY_PacketBeeLogicEntityRequest("forestry.apiculture.network.packets.PacketBeeLogicEntityRequest"),
FORESTRY_PacketGuiSelectRequest("forestry.core.network.packets.PacketGuiSelectRequest"),
FORESTRY_PacketPipetteClick("forestry.core.network.packets.PacketPipetteClick"),
FORESTRY_PacketLetterTextSet("forestry.mail.network.packets.PacketLetterTextSet"),
ADVSOLAR_PacketGUIPressButton("advsolar.network.PacketGUIPressButton"),
AE2_PacketValueConfig("appeng.core.sync.packets.PacketValueConfig"),
AE2_PacketPartialItem("appeng.core.sync.packets.PacketPartialItem"),
AE2_PacketCompassRequest("appeng.core.sync.packets.PacketCompassRequest"),
BUILDCRAFT_PacketTabletMessage("buildcraft.core.tablet.PacketTabletMessage"),
BUILDCRAFT_PacketSlotChange("buildcraft.core.lib.network.PacketSlotChange"),
CARPENTER_PacketEnrichPlant("com.carpentersblocks.network.PacketEnrichPlant"),
CARPENTER_PacketSlopeSelect("com.carpentersblocks.network.PacketSlopeSelect"),
CODECHICKEN_ChunkLoaderCPH("codechicken.chunkloader.ChunkLoaderCPH"),
ENDERIO_PacketSlotVisibility("crazypants.enderio.conduit.gui.PacketSlotVisibility"),
ENDERIO_PacketMoveItems("crazypants.enderio.machine.invpanel.PacketMoveItems"),
ENDERIO_PacketDrainPlayerXP("crazypants.enderio.xp.PacketDrainPlayerXP"),
EXTRACELLS_PacketFluidStorage("extracells.network.packet.part.PacketFluidStorage"),
FLANS_PacketDriveableGUI("com.flansmod.common.network.PacketDriveableGUI"),
FLANS_PacketDriveableKey("com.flansmod.common.network.PacketDriveableKey"),
FLANS_PacketDriveableKeyHeld("com.flansmod.common.network.PacketDriveableKeyHeld"),
IC2NC_PacketServerUpdate("shedar.mods.ic2.nuclearcontrol.network.message.PacketServerUpdate"),
IC2NC_PacketClientSound("shedar.mods.ic2.nuclearcontrol.network.message.PacketClientSound"),
IC2NC_PacketClientRequest("shedar.mods.ic2.nuclearcontrol.network.message.PacketClientRequest"),
MALISISDOORS_DoorFactoryMessage("net.malisis.doors.network.DoorFactoryMessage$Packet"),
MEKANISM_PacketTileEntity("mekanism.common.network.PacketTileEntity$TileEntityMessage"),
MEKANISM_PacketNewFilter("mekanism.common.network.PacketNewFilter$NewFilterMessage"),
MEKANISM_PacketEditFilter("mekanism.common.network.PacketEditFilter$EditFilterMessage"),
OPENBLOCKS_PlayerActionEvent("openblocks.events.PlayerActionEvent$Type"),
OPENBLOCKS_PlayerMovementEvent("openmods.movement.PlayerMovementEvent$Type"),
OC_SendClipboard("li.cil.oc.client.PacketSender"),
OC_SendCopyToAnalyzer("li.cil.oc.client.PacketSender"),
OC_SendRobotStateRequest("li.cil.oc.client.PacketSender"),
TINKER_SignDataPacket("tconstruct.util.network.SignDataPacket"),
TINKER_SmelteryPacket("tconstruct.util.network.SmelteryPacket"),
TINKER_ToolStationPacket("tconstruct.util.network.ToolStationPacket"),
THERMAL_TeleportChannelRegistry("cofh.thermalexpansion.core.TeleportChannelRegistry"),
THERMAL_SendLexiconStudyPacketToServer("cofh.thermalfoundation.network.PacketTFBase"),
THERMAL_SendLexiconStudySelectPacketToServer("cofh.thermalfoundation.network.PacketTFBase"),
WRADDON_SendOpenSniffer("codechicken.wirelessredstone.addons.WRAddonCPH"),
WRADDON_SendCloseSniffer("codechicken.wirelessredstone.addons.WRAddonCPH"),
WRADDON_SendResetMap("codechicken.wirelessredstone.addons.WRAddonCPH"),
BIBLIOCRAFT_BiblioClipBlock("jds.bibliocraft.BiblioCraft"),
BIBLIOCRAFT_BiblioPaintingC("jds.bibliocraft.BiblioCraft"),
BIBLIOCRAFT_BiblioTypeGui("jds.bibliocraft.BiblioCraft"),
PROJECTRED_TileAutoCrafter("mrtjp.projectred.expansion.TileAutoCrafter"),
PROJECTRED_TileFilteredImporter("mrtjp.projectred.expansion.TileFilteredImporter"),
PROJECTRED_TileProjectBench("mrtjp.projectred.expansion.TileProjectBench"),
THAUMCRAFT_Note("thaumcraft.common.lib.network.misc.PacketNote"),
THAUMCRAFT_FocusChange("thaumcraft.common.lib.network.misc.PacketFocusChangeToServer"),
THAUMCRAFT_ItemKey("thaumcraft.common.lib.network.misc.PacketItemKeyToServer");
private final String clazz;
private FakePacket(String clazz) {
this.clazz = clazz;
}
public String clazz() {
return clazz;
}
}
public void sendRandomPacket() {
if (validPackets.isEmpty()) {
return;
}
FakePacket packet = validPackets.get(rand.num(validPackets.size()));
try {
Class packetClass = Class.forName(packet.clazz());
for (int i = 0; i < 1; i++) {
switch (packet) {
case NEI_SendLoginState:
packetClass.getDeclaredMethod("sendToServer").invoke(packetClass.getDeclaredConstructor(Object.class, int.class).newInstance("NEI", 10));
break;
case NEI_SpawnerID:
Object SpawnerID_constructor = packetClass.getDeclaredConstructor(Object.class, int.class).newInstance("NEI", 15);
SpawnerID_constructor.getClass().getDeclaredMethod("writeCoord", int.class, int.class, int.class).invoke(SpawnerID_constructor, rand.x(), rand.y(), rand.z());
SpawnerID_constructor.getClass().getDeclaredMethod("writeString", String.class).invoke(SpawnerID_constructor, rand.str());
SpawnerID_constructor.getClass().getDeclaredMethod("sendToServer").invoke(SpawnerID_constructor);
break;
case CRAYFISH_MessageTVServer:
case CRAYFISH_MessageMicrowave:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("com.mrcrayfish.furniture.network.PacketHandler").getDeclaredField("INSTANCE").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class, int.class).newInstance(0, rand.x(), rand.y(), rand.z()));
break;
case CRAYFISH_MessageEmptyBin:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("com.mrcrayfish.furniture.network.PacketHandler").getDeclaredField("INSTANCE").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class).newInstance(rand.x(), rand.y(), rand.z()));
break;
case FORESTRY_PacketBeeLogicEntityRequest:
Class.forName("forestry.core.proxy.ProxyNetwork").getDeclaredMethod("sendToServer", Class.forName("forestry.core.network.IForestryPacketServer")).invoke(Class.forName("forestry.core.proxy.Proxies").getDeclaredField("net").get(null), packetClass.getDeclaredConstructor(Entity.class).newInstance(rand.ent()));
break;
case FORESTRY_PacketGuiSelectRequest:
Class.forName("forestry.core.proxy.ProxyNetwork").getDeclaredMethod("sendToServer", Class.forName("forestry.core.network.IForestryPacketServer")).invoke(Class.forName("forestry.core.proxy.Proxies").getDeclaredField("net").get(null), packetClass.getDeclaredConstructor(int.class, int.class).newInstance(rand.num(), rand.num()));
break;
case FORESTRY_PacketPipetteClick:
Class.forName("forestry.core.proxy.ProxyNetwork").getDeclaredMethod("sendToServer", Class.forName("forestry.core.network.IForestryPacketServer")).invoke(Class.forName("forestry.core.proxy.Proxies").getDeclaredField("net").get(null), packetClass.getDeclaredConstructor(TileEntity.class, int.class).newInstance(rand.tile(), rand.num()));
break;
case FORESTRY_PacketLetterTextSet:
Class.forName("forestry.core.proxy.ProxyNetwork").getDeclaredMethod("sendToServer", Class.forName("forestry.core.network.IForestryPacketServer")).invoke(Class.forName("forestry.core.proxy.Proxies").getDeclaredField("net").get(null), packetClass.getDeclaredConstructor(String.class).newInstance(rand.str()));
break;
case ADVSOLAR_PacketGUIPressButton:
Class.forName("advsolar.network.ASPPacketHandler").getDeclaredMethod("sendToServer", Class.forName("advsolar.network.IPacket")).invoke(null, packetClass.getDeclaredConstructor().newInstance());
break;
case AE2_PacketValueConfig:
Class.forName("appeng.core.sync.network.NetworkHandler").getDeclaredMethod("sendToServer", Class.forName("appeng.core.sync.AppEngPacket")).invoke(Class.forName("appeng.core.sync.network.NetworkHandler").getDeclaredField("instance").get(null), packetClass.getDeclaredConstructor(String.class, String.class).newInstance(rand.str(), rand.str()));
break;
case AE2_PacketPartialItem:
Class.forName("appeng.core.sync.network.NetworkHandler").getDeclaredMethod("sendToServer", Class.forName("appeng.core.sync.AppEngPacket")).invoke(Class.forName("appeng.core.sync.network.NetworkHandler").getDeclaredField("instance").get(null), packetClass.getDeclaredConstructor(int.class, int.class, byte[].class).newInstance(rand.num(), rand.num(), new byte[0]));
break;
case AE2_PacketCompassRequest:
Class.forName("appeng.core.sync.network.NetworkHandler").getDeclaredMethod("sendToServer", Class.forName("appeng.core.sync.AppEngPacket")).invoke(Class.forName("appeng.core.sync.network.NetworkHandler").getDeclaredField("instance").get(null), packetClass.getDeclaredConstructor(long.class, int.class, int.class, int.class).newInstance((long) rand.num(), rand.x(), rand.y(), rand.z()));
break;
case BUILDCRAFT_PacketTabletMessage:
Class.forName("buildcraft.BuildCraftMod").getDeclaredMethod("sendToServer", Class.forName("buildcraft.core.lib.network.Packet")).invoke(Class.forName("buildcraft.BuildCraftCore").getDeclaredField("instance").get(null), packetClass.getDeclaredConstructor(NBTTagCompound.class).newInstance(rand.nbt()));
break;
case BUILDCRAFT_PacketSlotChange:
Class.forName("buildcraft.BuildCraftMod").getDeclaredMethod("sendToServer", Class.forName("buildcraft.core.lib.network.Packet")).invoke(Class.forName("buildcraft.BuildCraftCore").getDeclaredField("instance").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class, int.class, int.class, ItemStack.class).newInstance(70, rand.x(), rand.y(), rand.z(), 0, rand.item()));
break;
case CARPENTER_PacketEnrichPlant:
Class.forName("com.carpentersblocks.util.handler.PacketHandler").getDeclaredMethod("sendPacketToServer", Class.forName("com.carpentersblocks.network.ICarpentersPacket")).invoke(null, packetClass.getDeclaredConstructor(int.class, int.class, int.class, int.class).newInstance(rand.x(), rand.y(), rand.z(), rand.num()));
break;
case CARPENTER_PacketSlopeSelect:
Class.forName("com.carpentersblocks.util.handler.PacketHandler").getDeclaredMethod("sendPacketToServer", Class.forName("com.carpentersblocks.network.ICarpentersPacket")).invoke(null, packetClass.getDeclaredConstructor(int.class, boolean.class).newInstance(rand.num(9), rand.bool()));
break;
case CODECHICKEN_ChunkLoaderCPH:
packetClass.getDeclaredMethod("sendGuiClosing").invoke(null);
break;
case ENDERIO_PacketSlotVisibility:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("crazypants.enderio.network.PacketHandler").getDeclaredField("INSTANCE").get(null), packetClass.getDeclaredConstructor(boolean.class, boolean.class).newInstance(rand.bool(), rand.bool()));
break;
case ENDERIO_PacketMoveItems:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("crazypants.enderio.network.PacketHandler").getDeclaredField("INSTANCE").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class, int.class).newInstance(rand.num(), rand.num(), rand.num(), rand.num()));
break;
case ENDERIO_PacketDrainPlayerXP:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("crazypants.enderio.network.PacketHandler").getDeclaredField("INSTANCE").get(null), packetClass.getDeclaredConstructor(TileEntity.class, int.class, boolean.class).newInstance(rand.tile(), rand.num(), rand.bool()));
break;
case EXTRACELLS_PacketFluidStorage:
Class.forName("extracells.network.AbstractPacket").getDeclaredMethod("sendPacketToServer").invoke(packetClass.getDeclaredConstructor(EntityPlayer.class).newInstance(Wrapper.INSTANCE.player()));
break;
case FLANS_PacketDriveableGUI:
case FLANS_PacketDriveableKey:
Class.forName("com.flansmod.common.network.PacketHandler").getDeclaredMethod("sendToServer", Class.forName("com.flansmod.common.network.PacketBase")).invoke(Class.forName("com.flansmod.common.FlansMod").getDeclaredField("packetHandler").get(null), packetClass.getDeclaredConstructor(int.class).newInstance(rand.num()));
break;
case FLANS_PacketDriveableKeyHeld:
Class.forName("com.flansmod.common.network.PacketHandler").getDeclaredMethod("sendToServer", Class.forName("com.flansmod.common.network.PacketBase")).invoke(Class.forName("com.flansmod.common.FlansMod").getDeclaredField("packetHandler").get(null), packetClass.getDeclaredConstructor(int.class, boolean.class).newInstance(rand.num(), rand.bool()));
break;
case IC2NC_PacketServerUpdate:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("shedar.mods.ic2.nuclearcontrol.network.ChannelHandler").getDeclaredField("network").get(null), packetClass.getDeclaredConstructor(ItemStack.class).newInstance(rand.item()));
break;
case IC2NC_PacketClientSound:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("shedar.mods.ic2.nuclearcontrol.network.ChannelHandler").getDeclaredField("network").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class, byte.class, String.class).newInstance(rand.x(), rand.y(), rand.z(), (byte) 0, rand.str()));
break;
case IC2NC_PacketClientRequest:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("shedar.mods.ic2.nuclearcontrol.network.ChannelHandler").getDeclaredField("network").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class).newInstance(rand.x(), rand.y(), rand.z()));
break;
case MALISISDOORS_DoorFactoryMessage:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("net.malisis.doors.MalisisDoors").getDeclaredField("network").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class, int.class).newInstance(rand.num(), rand.x(), rand.y(), rand.z()));
break;
case MEKANISM_PacketTileEntity:
Class.forName("mekanism.common.PacketHandler").getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("mekanism.common.Mekanism").getDeclaredField("packetHandler").get(null), packetClass.getDeclaredConstructor(Class.forName("mekanism.api.Coord4D"), ArrayList.class).newInstance(Class.forName("mekanism.api.Coord4D").getDeclaredConstructor(int.class, int.class, int.class).newInstance(rand.x(), rand.y(), rand.z()), new ArrayList()));
break;
case MEKANISM_PacketNewFilter:
Class.forName("mekanism.common.PacketHandler").getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("mekanism.common.Mekanism").getDeclaredField("packetHandler").get(null), packetClass.getDeclaredConstructor(Class.forName("mekanism.api.Coord4D"), Object.class).newInstance(Class.forName("mekanism.api.Coord4D").getDeclaredConstructor(int.class, int.class, int.class).newInstance(rand.x(), rand.y(), rand.z()), new Object()));
break;
case MEKANISM_PacketEditFilter:
Class.forName("mekanism.common.PacketHandler").getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("mekanism.common.Mekanism").getDeclaredField("packetHandler").get(null), packetClass.getDeclaredConstructor(Class.forName("mekanism.api.Coord4D"), boolean.class, Object.class, Object.class).newInstance(Class.forName("mekanism.api.Coord4D").getDeclaredConstructor(int.class, int.class, int.class).newInstance(rand.x(), rand.y(), rand.z()), rand.bool(), new Object(), new Object()));
break;
case OPENBLOCKS_PlayerActionEvent:
Class.forName("openmods.network.event.NetworkEvent").getDeclaredMethod("sendToServer").invoke(Class.forName("openblocks.events.PlayerActionEvent").getDeclaredConstructor(packetClass).newInstance(packetClass.getDeclaredField("BOO").get(null)));
break;
case OPENBLOCKS_PlayerMovementEvent:
Class.forName("openmods.network.event.NetworkEvent").getDeclaredMethod("sendToServer").invoke(Class.forName("openblocks.events.ElevatorActionEvent").getDeclaredConstructor(int.class, int.class, int.class, int.class, packetClass).newInstance(0, rand.x(), 0, rand.z(), packetClass.getDeclaredField("JUMP").get(null)));
break;
case OC_SendClipboard:
packetClass.getDeclaredMethod("sendClipboard", String.class, String.class).invoke(null, rand.str(), rand.str());
break;
case OC_SendCopyToAnalyzer:
packetClass.getDeclaredMethod("sendCopyToAnalyzer", String.class, int.class).invoke(null, rand.str(), rand.num());
break;
case OC_SendRobotStateRequest:
packetClass.getDeclaredMethod("sendRobotStateRequest", int.class, int.class, int.class, int.class).invoke(null, 0, rand.x(), rand.y(), rand.z());
break;
case TINKER_SignDataPacket:
Class.forName("tconstruct.util.network.PacketPipeline").getDeclaredMethod("sendToServer", Class.forName("mantle.common.network.AbstractPacket")).invoke(Class.forName("tconstruct.TConstruct").getDeclaredField("packetPipeline").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class, int.class, String[].class).newInstance(0, rand.x(), rand.y(), rand.z(), new String[0]));
break;
case TINKER_SmelteryPacket:
Class.forName("tconstruct.util.network.PacketPipeline").getDeclaredMethod("sendToServer", Class.forName("mantle.common.network.AbstractPacket")).invoke(Class.forName("tconstruct.TConstruct").getDeclaredField("packetPipeline").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class, int.class, boolean.class, int.class).newInstance(0, rand.x(), rand.y(), rand.z(), rand.bool(), 0));
break;
case TINKER_ToolStationPacket:
Class.forName("tconstruct.util.network.PacketPipeline").getDeclaredMethod("sendToServer", Class.forName("mantle.common.network.AbstractPacket")).invoke(Class.forName("tconstruct.TConstruct").getDeclaredField("packetPipeline").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class, String.class).newInstance(rand.x(), rand.y(), rand.z(), rand.str()));
break;
case THERMAL_TeleportChannelRegistry:
packetClass.getDeclaredMethod("requestChannelList", String.class).invoke(null, rand.str());
break;
case THERMAL_SendLexiconStudyPacketToServer:
packetClass.getDeclaredMethod("sendLexiconStudyPacketToServer", int.class).invoke(null, rand.num());
break;
case THERMAL_SendLexiconStudySelectPacketToServer:
packetClass.getDeclaredMethod("sendLexiconStudySelectPacketToServer", int.class, String.class).invoke(null, rand.num(), rand.str());
break;
case WRADDON_SendOpenSniffer:
packetClass.getDeclaredMethod("sendOpenSniffer").invoke(null);
break;
case WRADDON_SendCloseSniffer:
packetClass.getDeclaredMethod("sendCloseSniffer").invoke(null);
break;
case WRADDON_SendResetMap:
packetClass.getDeclaredMethod("sendResetMap").invoke(null);
break;
case BIBLIOCRAFT_BiblioClipBlock:
Class.forName("cpw.mods.fml.common.network.FMLEventChannel").getDeclaredMethod("sendToServer", Class.forName("cpw.mods.fml.common.network.internal.FMLProxyPacket")).invoke(packetClass.getDeclaredField("ch_BiblioClipBlock").get(null), Class.forName("cpw.mods.fml.common.network.internal.FMLProxyPacket").getDeclaredConstructor(ByteBuf.class, String.class).newInstance(Unpooled.buffer(), "BiblioClipBlock"));
break;
case BIBLIOCRAFT_BiblioPaintingC:
Class.forName("cpw.mods.fml.common.network.FMLEventChannel").getDeclaredMethod("sendToServer", Class.forName("cpw.mods.fml.common.network.internal.FMLProxyPacket")).invoke(packetClass.getDeclaredField("ch_BiblioPaintingC").get(null), Class.forName("cpw.mods.fml.common.network.internal.FMLProxyPacket").getDeclaredConstructor(ByteBuf.class, String.class).newInstance(Unpooled.buffer(), "BiblioPaintingC"));
break;
case BIBLIOCRAFT_BiblioTypeGui:
Class.forName("cpw.mods.fml.common.network.FMLEventChannel").getDeclaredMethod("sendToServer", Class.forName("cpw.mods.fml.common.network.internal.FMLProxyPacket")).invoke(packetClass.getDeclaredField("ch_BiblioType").get(null), Class.forName("cpw.mods.fml.common.network.internal.FMLProxyPacket").getDeclaredConstructor(ByteBuf.class, String.class).newInstance(Unpooled.buffer(), "BiblioTypeGui"));
break;
case PROJECTRED_TileAutoCrafter:
packetClass.getDeclaredMethod("sendCyclePlanSlot").invoke(packetClass.getDeclaredConstructor().newInstance());
break;
case PROJECTRED_TileFilteredImporter:
packetClass.getDeclaredMethod("clientCycleColourUp").invoke(packetClass.getDeclaredConstructor().newInstance());
break;
case PROJECTRED_TileProjectBench:
packetClass.getDeclaredMethod("sendWriteButtonAction").invoke(packetClass.getDeclaredConstructor().newInstance());
break;
case THAUMCRAFT_Note:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("thaumcraft.common.lib.network.PacketHandler").getDeclaredField("INSTANCE").get(null), packetClass.getDeclaredConstructor(int.class, int.class, int.class, int.class).newInstance(rand.x(), rand.y(), rand.z(), 0));
break;
//case THAUMCRAFT_FocusChange:
// SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("thaumcraft.common.lib.network.PacketHandler").getDeclaredField("INSTANCE").get(null), packetClass.getDeclaredConstructor(EntityPlayer.class, String.class).newInstance(Wrapper.INSTANCE.player(), rand.str()));
// break;
case THAUMCRAFT_ItemKey:
SimpleNetworkWrapper.class.getDeclaredMethod("sendToServer", IMessage.class).invoke(Class.forName("thaumcraft.common.lib.network.PacketHandler").getDeclaredField("INSTANCE").get(null), packetClass.getDeclaredConstructor(EntityPlayer.class, int.class).newInstance(Wrapper.INSTANCE.player(), rand.num()));
break;
}
}
} catch (Exception e) {
}
}
@Override
public String getModName() {
return "Forge";
}
}
| 28,061 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoLimitAura.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/taintedmagic/NoLimitAura.java | package ehacks.mod.modulesystem.classes.mods.taintedmagic;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.entity.Entity;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class NoLimitAura
extends Module {
public NoLimitAura() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "NoLimitAura";
}
@Override
public String getDescription() {
return "Gives Float.MAX_VALUE of damage to all entities around you";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("taintedmagic.common.network.PacketKatanaAttack");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("taintedmagic.common.network.PacketKatanaAttack");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private float getDistanceToEntity(Entity from, Entity to) {
return from.getDistanceToEntity(to);
}
private boolean isWithinRange(float range, Entity e) {
return this.getDistanceToEntity(e, Wrapper.INSTANCE.player()) <= range;
}
@Override
public void onTicks() {
try {
Wrapper.INSTANCE.world().loadedEntityList.stream().filter((o) -> (((Entity) o).getEntityId() != Wrapper.INSTANCE.player().getEntityId())).forEachOrdered((o) -> {
killEntity(((Entity) o).getEntityId());
});
} catch (Exception e) {
}
}
public void killEntity(int entityId) {
int playerId = Wrapper.INSTANCE.player().getEntityId();
int dimensionId = Wrapper.INSTANCE.player().dimension;
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(0);
buf.writeInt(entityId);
buf.writeInt(playerId);
buf.writeInt(dimensionId);
buf.writeFloat(Float.MAX_VALUE);
buf.writeBoolean(false);
C17PacketCustomPayload packet = new C17PacketCustomPayload("taintedmagic", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "Tainted Magic";
}
}
| 2,467 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
LimitedAura.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/taintedmagic/LimitedAura.java | package ehacks.mod.modulesystem.classes.mods.taintedmagic;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.entity.Entity;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class LimitedAura
extends Module {
public LimitedAura() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "LimitedAura";
}
@Override
public String getDescription() {
return "Performs Float.MAX_VALUE damage on all entities around you in radius of 4 blocks";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("taintedmagic.common.network.PacketKatanaAttack");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("taintedmagic.common.network.PacketKatanaAttack");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private float getDistanceToEntity(Entity from, Entity to) {
return from.getDistanceToEntity(to);
}
private boolean isWithinRange(float range, Entity e) {
return this.getDistanceToEntity(e, Wrapper.INSTANCE.player()) <= range;
}
@Override
public void onTicks() {
try {
Wrapper.INSTANCE.world().loadedEntityList.stream().filter((o) -> (isWithinRange(4, (Entity) o))).filter((o) -> (((Entity) o).getEntityId() != Wrapper.INSTANCE.player().getEntityId())).forEachOrdered((o) -> {
killEntity(((Entity) o).getEntityId());
});
} catch (Exception e) {
}
}
public void killEntity(int entityId) {
int playerId = Wrapper.INSTANCE.player().getEntityId();
int dimensionId = Wrapper.INSTANCE.player().dimension;
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(0);
buf.writeInt(entityId);
buf.writeInt(playerId);
buf.writeInt(dimensionId);
buf.writeFloat(Float.MAX_VALUE);
buf.writeBoolean(false);
C17PacketCustomPayload packet = new C17PacketCustomPayload("taintedmagic", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "Tainted Magic";
}
}
| 2,535 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoLimitDamage.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/taintedmagic/NoLimitDamage.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.mods.taintedmagic;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraftforge.client.event.MouseEvent;
/**
*
* @author radioegor146
*/
public class NoLimitDamage extends Module {
public NoLimitDamage() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "NoLimitDamage";
}
@Override
public String getDescription() {
return "Gives Float.MAX_VALUE to attacked entity";
}
public boolean lastPressed = false;
@Override
public void onMouse(MouseEvent event) {
if (Wrapper.INSTANCE.mc().objectMouseOver.entityHit != null && event.button == 0 && !lastPressed) {
int playerId = Wrapper.INSTANCE.player().getEntityId();
int entityId = Wrapper.INSTANCE.mc().objectMouseOver.entityHit.getEntityId();
int dimensionId = Wrapper.INSTANCE.player().dimension;
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(0);
buf.writeInt(entityId);
buf.writeInt(playerId);
buf.writeInt(dimensionId);
buf.writeFloat(Float.MAX_VALUE);
buf.writeBoolean(false);
C17PacketCustomPayload packet = new C17PacketCustomPayload("taintedmagic", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
lastPressed = true;
}
if (lastPressed && event.button == 0 && !event.buttonstate) {
lastPressed = false;
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("taintedmagic.common.network.PacketKatanaAttack");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleEnabled() {
try {
Class.forName("taintedmagic.common.network.PacketKatanaAttack");
} catch (Exception ex) {
this.off();
}
}
@Override
public String getModName() {
return "Tainted Magic";
}
}
| 2,522 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoLimitPlayers.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/taintedmagic/NoLimitPlayers.java | package ehacks.mod.modulesystem.classes.mods.taintedmagic;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.config.AuraConfiguration;
import ehacks.mod.gui.window.WindowPlayerIds;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.util.List;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class NoLimitPlayers
extends Module {
public NoLimitPlayers() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "NoLimitPlayers";
}
@Override
public String getDescription() {
return "Gives Float.MAX_VALUE of damage to all players around you";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("taintedmagic.common.network.PacketKatanaAttack");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("taintedmagic.common.network.PacketKatanaAttack");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onTicks() {
try {
List<EntityPlayer> players = WindowPlayerIds.useIt ? WindowPlayerIds.getPlayers() : Wrapper.INSTANCE.world().playerEntities;
players.stream().filter((o) -> (((Entity) o).getEntityId() != Wrapper.INSTANCE.player().getEntityId() && !AuraConfiguration.config.friends.contains(((Entity) o).getCommandSenderName()))).forEachOrdered((o) -> {
killEntity(((Entity) o).getEntityId());
});
} catch (Exception e) {
}
}
public void killEntity(int entityId) {
int playerId = Wrapper.INSTANCE.player().getEntityId();
int dimensionId = Wrapper.INSTANCE.player().dimension;
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(0);
buf.writeInt(entityId);
buf.writeInt(playerId);
buf.writeInt(dimensionId);
buf.writeFloat(Float.MAX_VALUE);
buf.writeBoolean(false);
C17PacketCustomPayload packet = new C17PacketCustomPayload("taintedmagic", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "Tainted Magic";
}
}
| 2,561 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
JesusGift.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/bibliocraft/JesusGift.java | package ehacks.mod.modulesystem.classes.mods.bibliocraft;
import cpw.mods.fml.common.network.ByteBufUtils;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.GiveKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Statics;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import org.lwjgl.input.Keyboard;
public class JesusGift
extends Module {
public JesusGift() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "JesusGift";
}
@Override
public String getDescription() {
return "Gives you items through Atlas item from BiblioCraft\nUsage:\n Numpad0 - perform give";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("jds.bibliocraft.BiblioCraft");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("jds.bibliocraft.BiblioCraft");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private boolean prevState = false;
@Override
public void onTicks() {
boolean newState = Keyboard.isKeyDown(GiveKeybind.getKey());
if (newState && !prevState) {
prevState = newState;
if (Statics.STATIC_ITEMSTACK == null) {
return;
}
tryAtlas(Statics.STATIC_ITEMSTACK);
}
prevState = newState;
}
public void tryAtlas(ItemStack item) {
ItemStack handItem = Wrapper.INSTANCE.player().getCurrentEquippedItem();
if (handItem != null && handItem.getUnlocalizedName().equals("item.AtlasBook")) {
NBTTagCompound itemTag = new NBTTagCompound();
itemTag.setByte("autoCenter", (byte) 0);
itemTag.setInteger("lastGUImode", 0);
itemTag.setInteger("mapSlot", -1);
itemTag.setInteger("zoomLevel", 0);
itemTag.setTag("maps", new NBTTagList());
NBTTagList inventoryList = new NBTTagList();
for (int slot = 0; slot < 5; slot++) {
inventoryList.appendTag(nbtItem(item, slot, true));
}
inventoryList.appendTag(nbtItem(handItem, 5, false));
for (int slot = 6; slot < 42; slot++) {
inventoryList.appendTag(nbtItem(item, slot, true));
}
for (int slot = 42; slot < 48; slot++) {
inventoryList.appendTag(nbtItem(handItem, slot, false));
}
itemTag.setTag("Inventory", inventoryList);
handItem.setTagCompound(itemTag);
ByteBuf buf = Unpooled.buffer(0);
ByteBufUtils.writeItemStack(buf, handItem);
try {
Class.forName("cpw.mods.fml.common.network.FMLEventChannel").getDeclaredMethod("sendToServer", Class.forName("cpw.mods.fml.common.network.internal.FMLProxyPacket")).invoke(Class.forName("jds.bibliocraft.BiblioCraft").getDeclaredField("ch_BiblioAtlasGUIswap").get(null), Class.forName("cpw.mods.fml.common.network.internal.FMLProxyPacket").getDeclaredConstructor(ByteBuf.class, String.class).newInstance(buf, "BiblioAtlasSWP"));
} catch (Exception e) {
InteropUtils.log("Mod error", this);
}
} else if (handItem != null && handItem.getUnlocalizedName().equals("item.SlottedBook")) {
NBTTagCompound itemTag = new NBTTagCompound();
itemTag.setString("authorName", "FF-Team");
NBTTagList inventoryList = new NBTTagList();
inventoryList.appendTag(nbtItem(item, 0, true));
itemTag.setTag("Inventory", inventoryList);
handItem.setTagCompound(itemTag);
ByteBuf buf = Unpooled.buffer(0);
ByteBufUtils.writeItemStack(buf, handItem);
try {
Class.forName("cpw.mods.fml.common.network.FMLEventChannel").getDeclaredMethod("sendToServer", Class.forName("cpw.mods.fml.common.network.internal.FMLProxyPacket")).invoke(Class.forName("jds.bibliocraft.BiblioCraft").getDeclaredField("ch_BiblioAtlasGUIswap").get(null), Class.forName("cpw.mods.fml.common.network.internal.FMLProxyPacket").getDeclaredConstructor(ByteBuf.class, String.class).newInstance(buf, "BiblioAtlasSWP"));
} catch (Exception e) {
InteropUtils.log("Mod error", this);
}
} else {
InteropUtils.log("Wrong item in hand", this);
}
}
private NBTTagCompound nbtItem(ItemStack item, int slot, boolean withNbt) {
NBTTagCompound itemTag = new NBTTagCompound();
itemTag.setByte("Count", (byte) item.stackSize);
itemTag.setByte("Slot", (byte) slot);
itemTag.setShort("id", (short) Item.getIdFromItem(item.getItem()));
itemTag.setShort("Damage", (short) item.getItemDamage());
if (item.hasTagCompound() && withNbt) {
itemTag.setTag("tag", item.getTagCompound());
}
return itemTag;
}
@Override
public String getModName() {
return "BiblioCraft";
}
}
| 5,472 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
OnlineCraft.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/bibliocraft/OnlineCraft.java | package ehacks.mod.modulesystem.classes.mods.bibliocraft;
import ehacks.debugme.Debug;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.mods.bibliocraft.OnlineCraft.CraftingGuiInventoryContainer;
import ehacks.mod.util.GLUtils;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.util.MinecraftGuiUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.InventoryCraftResult;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.inventory.Slot;
import net.minecraft.inventory.SlotCrafting;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.util.IIcon;
import org.lwjgl.opengl.GL11;
public class OnlineCraft
extends Module {
public OnlineCraft() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "OnlineCraft";
}
@Override
public String getDescription() {
return "Allows you to craft without crafting table\nUsage:\n Numpad0 - perform give";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("jds.bibliocraft.BiblioCraft");
Wrapper.INSTANCE.mc().displayGuiScreen(new CraftingGuiInventory(this));
this.off();
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("jds.bibliocraft.BiblioCraft");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private final boolean prevState = false;
private NBTTagCompound nbtItem(ItemStack item, int slot) {
NBTTagCompound itemTag = new NBTTagCompound();
itemTag.setByte("Count", (byte) item.stackSize);
itemTag.setByte("Slot", (byte) slot);
itemTag.setShort("id", (short) Item.getIdFromItem(item.getItem()));
itemTag.setShort("Damage", (short) item.getItemDamage());
if (item.hasTagCompound()) {
itemTag.setTag("tag", item.getTagCompound());
}
return itemTag;
}
@Override
public String getModName() {
return "BiblioCraft";
}
public class CraftingGuiInventoryContainer extends Container {
public InventoryCrafting craftMatrix = new InventoryCrafting(this, 2, 2);
public IInventory craftResult = new InventoryCraftResult();
public CraftingGuiInventoryContainer(EntityPlayer basePlayer) {
this.addSlotToContainer(new SlotCrafting(basePlayer, this.craftMatrix, this.craftResult, 0, -2000, -2000));
for (int i = 0; i < 4; ++i) {
this.addSlotToContainer(new Slot(this.craftMatrix, i, -2000, -2000));
}
for (int i = 0; i < 4; ++i) {
final int k = i;
this.addSlotToContainer(new Slot(basePlayer.inventory, basePlayer.inventory.getSizeInventory() - 1 - i, 8, 8 + i * 18) {
@Override
public int getSlotStackLimit() {
return 1;
}
@Override
public boolean isItemValid(ItemStack p_75214_1_) {
if (p_75214_1_ == null) {
return false;
}
return p_75214_1_.getItem().isValidArmor(p_75214_1_, k, Wrapper.INSTANCE.player());
}
@Override
public IIcon getBackgroundIconIndex() {
return ItemArmor.func_94602_b(k);
}
});
}
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 9; ++j) {
this.addSlotToContainer(new Slot(basePlayer.inventory, j + (i + 1) * 9, 8 + j * 18, 84 + i * 18));
}
}
for (int i = 0; i < 9; ++i) {
this.addSlotToContainer(new Slot(basePlayer.inventory, i, 8 + i * 18, 142));
}
this.onCraftMatrixChanged(this.craftMatrix);
}
@Override
public boolean canInteractWith(EntityPlayer p_75145_1_) {
return true;
}
}
public class CraftingGuiInventory extends GuiContainer {
private final ItemStack[] stacks = new ItemStack[10];
private GuiButton craftButton;
private final Module hackModule;
public CraftingGuiInventory(Module hackModule) {
super(new CraftingGuiInventoryContainer(Wrapper.INSTANCE.player()));
this.hackModule = hackModule;
}
@Override
public void initGui() {
super.initGui();
craftButton = new GuiButton(100, this.guiLeft + 106, this.guiTop + 50, 50, 20, "Craft");
craftButton.enabled = false;
this.buttonList.add(craftButton);
}
@Override
protected void handleMouseClick(Slot slot, int slotId, int buttonId, int modeId) {
if (slotId < 45) {
super.handleMouseClick(slot, slotId, buttonId, modeId);
} else {
Wrapper.INSTANCE.player().openContainer.slotClick(slotId, buttonId, modeId, Wrapper.INSTANCE.player());
}
}
@Override
protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) {
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
int k = this.guiLeft;
int l = this.guiTop;
MinecraftGuiUtils.drawBack(k, l, this.xSize, this.ySize);
k--;
l--;
for (int i = 0; i < 4; ++i) {
MinecraftGuiUtils.drawSlotBack(k + 8, l + 8 + i * 18);
}
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 9; ++j) {
MinecraftGuiUtils.drawSlotBack(k + 8 + j * 18, l + 84 + i * 18);
}
}
for (int i = 0; i < 9; ++i) {
MinecraftGuiUtils.drawSlotBack(k + 8 + i * 18, l + 142);
}
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 3; ++j) {
MinecraftGuiUtils.drawSlotBack(k + 41 + i * 18, l + 17 + j * 18);
}
}
GLUtils.drawRect(k + 102, l + 43 - 15, k + 102 + 14, l + 43 + 3 - 15, GLUtils.getColor(139, 139, 139));
for (int i = 0; i < 8; i++) {
GLUtils.drawRect(k + 102 + 14 + i, l + 43 + 3 - 9 + i - 15, k + 102 + 15 + i, l + 43 + 4 + 5 - i - 15, GLUtils.getColor(139, 139, 139));
}
MinecraftGuiUtils.drawSlotBack(k + 131, l + 17, 26, 26);
}
private void drawItemStack(ItemStack p_146982_1_, int p_146982_2_, int p_146982_3_, String p_146982_4_) {
GL11.glTranslatef(0.0F, 0.0F, 32.0F);
itemRender.zLevel = 200.0F;
FontRenderer font = null;
if (p_146982_1_ != null) {
font = p_146982_1_.getItem().getFontRenderer(p_146982_1_);
}
if (font == null) {
font = fontRendererObj;
}
itemRender.renderItemAndEffectIntoGUI(font, this.mc.getTextureManager(), p_146982_1_, p_146982_2_, p_146982_3_);
itemRender.renderItemOverlayIntoGUI(font, this.mc.getTextureManager(), p_146982_1_, p_146982_2_, p_146982_3_, p_146982_4_);
this.zLevel = 0.0F;
itemRender.zLevel = 0.0F;
}
@Override
public void drawScreen(int x, int y, float partialTicks) {
craftButton.enabled = stacks[9] != null;
super.drawScreen(x, y, partialTicks);
GL11.glPushMatrix();
RenderHelper.enableGUIStandardItemLighting();
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
itemRender.renderItemAndEffectIntoGUI(this.fontRendererObj, this.mc.getTextureManager(), stacks[i + j * 3], this.guiLeft + 41 + i * 18, this.guiTop + 17 + j * 18);
itemRender.renderItemOverlayIntoGUI(this.fontRendererObj, this.mc.getTextureManager(), stacks[i + j * 3], this.guiLeft + 41 + i * 18, this.guiTop + 17 + j * 18, "");
}
}
if (stacks[9] != null) {
itemRender.renderItemAndEffectIntoGUI(this.fontRendererObj, this.mc.getTextureManager(), stacks[9], this.guiLeft + 135, this.guiTop + 21);
itemRender.renderItemOverlayIntoGUI(this.fontRendererObj, this.mc.getTextureManager(), stacks[9], this.guiLeft + 135, this.guiTop + 21, stacks[9].stackSize > 1 ? String.valueOf(stacks[9].stackSize) : "");
}
RenderHelper.enableStandardItemLighting();
GL11.glPopMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_DEPTH_TEST);
ItemStack itemStack = null;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (this.guiLeft + 40 + i * 18 <= x && this.guiTop + 16 + j * 18 <= y && this.guiLeft + 40 + i * 18 + 18 > x && this.guiTop + 16 + j * 18 + 18 > y) {
GL11.glColorMask(true, true, true, false);
this.drawGradientRect(this.guiLeft + 40 + i * 18 + 1, this.guiTop + 16 + j * 18 + 1, this.guiLeft + 40 + i * 18 + 16 + 1, this.guiTop + 16 + j * 18 + 16 + 1, -2130706433, -2130706433);
GL11.glColorMask(true, true, true, true);
itemStack = stacks[i + j * 3];
}
}
}
craftButton.drawButton(mc, x, y);
if (itemStack != null && Wrapper.INSTANCE.player().inventory.getItemStack() == null) {
this.renderToolTip(itemStack, x, y);
}
ItemStack itemstack = Wrapper.INSTANCE.player().inventory.getItemStack();
if (itemstack != null) {
String s = "";
if (itemstack.stackSize > 1) {
s = "" + itemstack.stackSize;
}
GL11.glPushMatrix();
RenderHelper.enableGUIStandardItemLighting();
this.drawItemStack(itemstack, x - 8, y - 8, s);
GL11.glPopMatrix();
}
}
@Override
public void mouseClicked(int x, int y, int button) {
if (button == 0) {
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (this.guiLeft + 40 + i * 18 <= x && this.guiTop + 16 + j * 18 <= y && this.guiLeft + 40 + i * 18 + 18 > x && this.guiTop + 16 + j * 18 + 18 > y) {
stacks[i + j * 3] = Wrapper.INSTANCE.player().inventory.getItemStack();
InventoryCrafting crafting = new InventoryCrafting(new CraftingGuiInventoryContainer(mc.thePlayer), 3, 3);
for (int ii = 0; ii < 3; ii++) {
for (int jj = 0; jj < 3; jj++) {
crafting.setInventorySlotContents(ii + jj * 3, stacks[ii + jj * 3]);
}
}
stacks[9] = CraftingManager.getInstance().findMatchingRecipe(crafting, mc.theWorld);
return;
}
}
}
}
if (button == 1) {
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (this.guiLeft + 40 + i * 18 <= x && this.guiTop + 16 + j * 18 <= y && this.guiLeft + 40 + i * 18 + 18 > x && this.guiTop + 16 + j * 18 + 18 > y) {
stacks[i + j * 3] = null;
InventoryCrafting crafting = new InventoryCrafting(new CraftingGuiInventoryContainer(mc.thePlayer), 3, 3);
for (int ii = 0; ii < 3; ii++) {
for (int jj = 0; jj < 3; jj++) {
crafting.setInventorySlotContents(ii + jj * 3, stacks[ii + jj * 3]);
}
}
stacks[9] = CraftingManager.getInstance().findMatchingRecipe(crafting, mc.theWorld);
return;
}
}
}
}
super.mouseClicked(x, y, button);
}
@Override
public void actionPerformed(GuiButton button) {
if (button == craftButton) {
try {
ItemStack book = new ItemStack((Item) (Class.forName("jds.bibliocraft.items.ItemLoader").getField("bookRecipe").get(null)));
book.setTagCompound(new NBTTagCompound());
NBTTagList tList = new NBTTagList();
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (stacks[i + j * 3] != null) {
NBTTagCompound itemTag = new NBTTagCompound();
itemTag.setByte("Slot", (byte) (i + j * 3));
stacks[i + j * 3].writeToNBT(itemTag);
tList.appendTag(itemTag);
}
}
}
book.setTagInfo("grid", tList);
NBTTagCompound itemTag = new NBTTagCompound();
stacks[9].writeToNBT(itemTag);
book.setTagInfo("result", itemTag);
Debug.sendProxyPacket("BiblioRecipeCraft", new Object[]{book});
InteropUtils.log("Crafted", hackModule);
} catch (Exception e) {
InteropUtils.log("Can't craft", hackModule);
}
}
}
}
}
| 14,608 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
TableTop.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/bibliocraft/TableTop.java | package ehacks.mod.modulesystem.classes.mods.bibliocraft;
import cpw.mods.fml.common.network.ByteBufUtils;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.GiveKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Statics;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import org.lwjgl.input.Keyboard;
public class TableTop
extends Module {
public TableTop() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "TableTop";
}
@Override
public String getDescription() {
return "You can give any itemstack to writing table\nUsage:\n Numpad0 - give";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("jds.bibliocraft.BiblioCraft");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("jds.bibliocraft.BiblioCraft");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private boolean prevState = false;
@Override
public void onTicks() {
try {
boolean newState = Keyboard.isKeyDown(GiveKeybind.getKey());
if (newState && !prevState) {
prevState = newState;
MovingObjectPosition mop = Wrapper.INSTANCE.mc().objectMouseOver;
TileEntity entity = Wrapper.INSTANCE.world().getTileEntity(mop.blockX, mop.blockY, mop.blockZ);
if (entity != null && Class.forName("jds.bibliocraft.tileentities.TileEntityWritingDesk").isInstance(entity)) {
setSlot(mop.blockX, mop.blockY, mop.blockZ);
InteropUtils.log("Set", this);
}
}
prevState = newState;
} catch (Exception e) {
}
}
public void setSlot(int x, int y, int z) throws Exception {
ByteBuf buf = Unpooled.buffer(0);
ItemStack stack = Statics.STATIC_ITEMSTACK.copy();
stack.setStackDisplayName("Mega Super Spell");
ByteBufUtils.writeItemStack(buf, stack);
buf.writeInt(x);
buf.writeInt(y);
buf.writeInt(z);
buf.writeInt(1);
C17PacketCustomPayload packet = new C17PacketCustomPayload("BiblioMCBEdit", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "BiblioCraft";
}
}
| 2,884 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
DragonsFuck.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/dragonsradio/DragonsFuck.java | package ehacks.mod.modulesystem.classes.mods.dragonsradio;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import net.minecraftforge.client.event.MouseEvent;
import org.lwjgl.input.Mouse;
public class DragonsFuck
extends Module {
public DragonsFuck() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "DragonsFuck";
}
@Override
public String getDescription() {
return "You can open Dragon's radio block on right click";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("eu.thesociety.DragonbornSR.DragonsRadioMod.Block.TileEntity.TileEntityRadio");
Class.forName("eu.thesociety.DragonbornSR.DragonsRadioMod.Block.Gui.NGuiRadio");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("eu.thesociety.DragonbornSR.DragonsRadioMod.Block.TileEntity.TileEntityRadio");
Class.forName("eu.thesociety.DragonbornSR.DragonsRadioMod.Block.Gui.NGuiRadio");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onMouse(MouseEvent event) {
MovingObjectPosition mop = Wrapper.INSTANCE.mc().objectMouseOver;
if (mop.sideHit == -1) {
return;
}
if (Mouse.isButtonDown(1)) {
TileEntity entity = Wrapper.INSTANCE.world().getTileEntity(mop.blockX, mop.blockY, mop.blockZ);
try {
if (mop.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && entity != null && Class.forName("eu.thesociety.DragonbornSR.DragonsRadioMod.Block.TileEntity.TileEntityRadio").isInstance(entity)) {
Wrapper.INSTANCE.mc().displayGuiScreen((GuiScreen) Class.forName("eu.thesociety.DragonbornSR.DragonsRadioMod.Block.Gui.NGuiRadio").getConstructor(Class.forName("eu.thesociety.DragonbornSR.DragonsRadioMod.Block.TileEntity.TileEntityRadio")).newInstance(entity));
InteropUtils.log("Gui opened", this);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
} catch (Exception ex) {
InteropUtils.log("&cError", this);
}
}
}
@Override
public String getModName() {
return "Dragon's radio";
}
}
| 2,772 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
MusicalCrash.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/dragonsradio/MusicalCrash.java | package ehacks.mod.modulesystem.classes.mods.dragonsradio;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import net.minecraftforge.client.event.MouseEvent;
import org.lwjgl.input.Mouse;
public class MusicalCrash
extends Module {
public MusicalCrash() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "MusicalCrash";
}
@Override
public String getDescription() {
return "You can crash anyone using right click on TileEntity";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("eu.thesociety.DragonbornSR.DragonsRadioMod.Block.TileEntity.TileEntityRadio");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("eu.thesociety.DragonbornSR.DragonsRadioMod.Block.TileEntity.TileEntityRadio");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private boolean prevState = false;
@Override
public void onMouse(MouseEvent event) {
MovingObjectPosition mop = Wrapper.INSTANCE.mc().objectMouseOver;
if (mop.sideHit == -1) {
return;
}
boolean nowState = Mouse.isButtonDown(1);
if (!prevState && nowState) {
prevState = nowState;
TileEntity entity = Wrapper.INSTANCE.world().getTileEntity(mop.blockX, mop.blockY, mop.blockZ);
try {
if (mop.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && entity != null && !Class.forName("eu.thesociety.DragonbornSR.DragonsRadioMod.Block.TileEntity.TileEntityRadio").isInstance(entity)) {
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(0);
buf.writeInt(0);
buf.writeDouble(mop.blockX);
buf.writeDouble(mop.blockY);
buf.writeDouble(mop.blockZ);
buf.writeInt(Wrapper.INSTANCE.player().dimension);
buf.writeInt(0);
buf.writeBytes(new byte[0]);
buf.writeBoolean(false);
buf.writeFloat(0);
buf.writeDouble(0);
buf.writeDouble(0);
buf.writeDouble(0);
C17PacketCustomPayload packet = new C17PacketCustomPayload("DragonsRadioMod", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
InteropUtils.log("Crash sent", this);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
} catch (Exception ex) {
InteropUtils.log("Error happened", this);
}
}
prevState = nowState;
}
@Override
public String getModName() {
return "Dragon's radio";
}
}
| 3,382 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
RocketChaos.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/mfr/RocketChaos.java | package ehacks.mod.modulesystem.classes.mods.mfr;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.entity.Entity;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraftforge.client.event.MouseEvent;
import org.lwjgl.input.Mouse;
public class RocketChaos
extends Module {
public RocketChaos() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "RocketChaos";
}
@Override
public String getDescription() {
return "You can throw rockets with left click";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("powercrystals.minefactoryreloaded.net.ServerPacketHandler");
Class.forName("powercrystals.minefactoryreloaded.entity.EntityRocket");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("powercrystals.minefactoryreloaded.net.ServerPacketHandler");
Class.forName("powercrystals.minefactoryreloaded.entity.EntityRocket");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleDisabled() {
}
private float getDistanceToEntity(Entity from, Entity to) {
return from.getDistanceToEntity(to);
}
private boolean isWithinRange(float range, Entity e) {
return this.getDistanceToEntity(e, Wrapper.INSTANCE.player()) <= range;
}
@Override
public void onMouse(MouseEvent event) {
if (Mouse.isButtonDown(0)) {
sendRocket(0);
}
}
public void sendRocket(int entityId) {
int playerId = Wrapper.INSTANCE.player().getEntityId();
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(0);
buf.writeInt(Wrapper.INSTANCE.player().dimension);
buf.writeShort(11);
buf.writeInt(playerId);
buf.writeInt(entityId);
C17PacketCustomPayload packet = new C17PacketCustomPayload("MFReloaded", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "MFR";
}
}
| 2,458 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoLimitClear.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/mfr/NoLimitClear.java | package ehacks.mod.modulesystem.classes.mods.mfr;
import cpw.mods.fml.relauncher.ReflectionHelper;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.util.Mappings;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.util.List;
import net.minecraft.client.multiplayer.ChunkProviderClient;
import net.minecraft.inventory.IInventory;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.IChunkProvider;
public class NoLimitClear
extends Module {
public NoLimitClear() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "NoLimitClear";
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("powercrystals.minefactoryreloaded.net.ServerPacketHandler");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public String getDescription() {
return "Clears all containers around you";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("powercrystals.minefactoryreloaded.net.ServerPacketHandler");
int count = 0;
IChunkProvider chunkProvider = Wrapper.INSTANCE.world().getChunkProvider();
if (chunkProvider instanceof ChunkProviderClient) {
ChunkProviderClient clientProvider = (ChunkProviderClient) chunkProvider;
List<Chunk> chunks = ReflectionHelper.getPrivateValue(ChunkProviderClient.class, clientProvider, Mappings.chunkListing);
for (Chunk chunk : chunks) {
for (Object entityObj : chunk.chunkTileEntityMap.values()) {
if (!(entityObj instanceof TileEntity)) {
return;
}
TileEntity entity = (TileEntity) entityObj;
if (entity instanceof IInventory) {
IInventory inv = (IInventory) entity;
TileEntity ent = entity;
for (int i = 0; i < inv.getSizeInventory(); i++) {
setSlot(i, ent.xCoord, ent.yCoord, ent.zCoord);
}
count++;
}
}
}
}
InteropUtils.log("Cleared " + String.valueOf(count) + " containers", this);
this.off();
} catch (Exception ex) {
this.off();
}
}
public void setSlot(int slotId, int x, int y, int z) {
int playerId = Wrapper.INSTANCE.player().getEntityId();
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(0);
buf.writeInt(Wrapper.INSTANCE.player().dimension);
buf.writeShort(20);
buf.writeInt(x);
buf.writeInt(y);
buf.writeInt(z);
buf.writeInt(playerId);
buf.writeInt(slotId);
buf.writeByte(0);
C17PacketCustomPayload packet = new C17PacketCustomPayload("MFReloaded", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "MFR";
}
}
| 3,530 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoLimitRocket.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/mfr/NoLimitRocket.java | package ehacks.mod.modulesystem.classes.mods.mfr;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.util.List;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class NoLimitRocket
extends Module {
public NoLimitRocket() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "NoLimitRocket";
}
@Override
public String getDescription() {
return "Fires rocket to all entities around you every 4 seconds";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("powercrystals.minefactoryreloaded.net.ServerPacketHandler");
Class.forName("powercrystals.minefactoryreloaded.entity.EntityRocket");
} catch (Exception ex) {
this.off();
}
}
@Override
public void onModuleDisabled() {
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("powercrystals.minefactoryreloaded.net.ServerPacketHandler");
Class.forName("powercrystals.minefactoryreloaded.entity.EntityRocket");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private int ticksWait;
@Override
public void onTicks() {
ticksWait++;
if (ticksWait % 80 != 0) {
return;
}
try {
@SuppressWarnings("unchecked")
List<Entity> players = Wrapper.INSTANCE.world().loadedEntityList;
for (Object o : players) {
if (((Entity) o).getEntityId() != Wrapper.INSTANCE.player().getEntityId() && !Class.forName("powercrystals.minefactoryreloaded.entity.EntityRocket").isInstance(o) && !(o instanceof EntityItem)) {
sendRocket(((Entity) o).getEntityId());
}
}
} catch (Exception e) {
}
}
public void sendRocket(int entityId) {
int playerId = Wrapper.INSTANCE.player().getEntityId();
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(0);
buf.writeInt(Wrapper.INSTANCE.player().dimension);
buf.writeShort(11);
buf.writeInt(playerId);
buf.writeInt(entityId);
C17PacketCustomPayload packet = new C17PacketCustomPayload("MFReloaded", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "MFR";
}
}
| 2,751 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
ContainerClear.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/mfr/ContainerClear.java | package ehacks.mod.modulesystem.classes.mods.mfr;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.entity.Entity;
import net.minecraft.inventory.IInventory;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import net.minecraftforge.client.event.MouseEvent;
public class ContainerClear
extends Module {
public ContainerClear() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "ContainerClear";
}
@Override
public String getDescription() {
return "Clears container you're looking to";
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("powercrystals.minefactoryreloaded.net.ServerPacketHandler");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleEnabled() {
try {
Class.forName("powercrystals.minefactoryreloaded.net.ServerPacketHandler");
MovingObjectPosition mop = Wrapper.INSTANCE.mc().objectMouseOver;
TileEntity entity = Wrapper.INSTANCE.world().getTileEntity(mop.blockX, mop.blockY, mop.blockZ);
if (entity == null) {
this.off();
return;
}
if (entity instanceof IInventory) {
IInventory inv = (IInventory) entity;
for (int i = 0; i < inv.getSizeInventory(); i++) {
setSlot(i, mop.blockX, mop.blockY, mop.blockZ);
}
}
InteropUtils.log("Cleared", this);
this.off();
} catch (Exception ex) {
this.off();
}
}
@Override
public void onModuleDisabled() {
}
private float getDistanceToEntity(Entity from, Entity to) {
return from.getDistanceToEntity(to);
}
private boolean isWithinRange(float range, Entity e) {
return this.getDistanceToEntity(e, Wrapper.INSTANCE.player()) <= range;
}
@Override
public void onMouse(MouseEvent event) {
}
public void setSlot(int slotId, int x, int y, int z) {
int playerId = Wrapper.INSTANCE.player().getEntityId();
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(0);
buf.writeInt(Wrapper.INSTANCE.player().dimension);
buf.writeShort(20);
buf.writeInt(x);
buf.writeInt(y);
buf.writeInt(z);
buf.writeInt(playerId);
buf.writeInt(slotId);
buf.writeByte(0);
C17PacketCustomPayload packet = new C17PacketCustomPayload("MFReloaded", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "MFR";
}
}
| 3,106 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
ChestMagic.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/mfr/ChestMagic.java | package ehacks.mod.modulesystem.classes.mods.mfr;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.GiveKeybind;
import ehacks.mod.modulesystem.classes.keybinds.SelectPlayerKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import org.lwjgl.input.Keyboard;
public class ChestMagic
extends Module {
public ChestMagic() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "ChestMagic";
}
@Override
public String getDescription() {
return "You can fill containers with an item that player is holding in inventory\nUsage: \n Numpad3 - Select player\n Numpad0 - Perform action on container";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("powercrystals.minefactoryreloaded.net.ServerPacketHandler");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("powercrystals.minefactoryreloaded.net.ServerPacketHandler");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleDisabled() {
}
private boolean prevState = false;
private boolean prevStateT = false;
private int playerId = -1;
@Override
public void onTicks() {
boolean newState = Keyboard.isKeyDown(GiveKeybind.getKey());
if (newState && !prevState) {
prevState = newState;
MovingObjectPosition mop = Wrapper.INSTANCE.mc().objectMouseOver;
TileEntity entity = Wrapper.INSTANCE.world().getTileEntity(mop.blockX, mop.blockY, mop.blockZ);
if (entity instanceof IInventory) {
IInventory inv = (IInventory) entity;
boolean setFull = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT);
int count = setFull ? (Wrapper.INSTANCE.player().inventory.getItemStack() == null ? 1 : Wrapper.INSTANCE.player().inventory.getItemStack().getMaxStackSize()) : 1;
for (int i = 0; i < inv.getSizeInventory(); i++) {
for (int j = 0; j < count; j++) {
setSlot(i, mop.blockX, mop.blockY, mop.blockZ, playerId == -1 ? Wrapper.INSTANCE.player().getEntityId() : playerId);
}
}
InteropUtils.log("Set", this);
}
}
prevState = newState;
boolean newStateT = Keyboard.isKeyDown(SelectPlayerKeybind.getKey());
if (newStateT && !prevStateT) {
prevStateT = newStateT;
MovingObjectPosition mop = Wrapper.INSTANCE.mc().objectMouseOver;
if (mop.entityHit instanceof EntityPlayer) {
playerId = mop.entityHit.getEntityId();
InteropUtils.log("Set to player", this);
return;
}
playerId = -1;
InteropUtils.log("Player cleared", this);
}
prevStateT = newStateT;
}
public void setSlot(int slotId, int x, int y, int z, int playerId) {
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(0);
buf.writeInt(Wrapper.INSTANCE.player().dimension);
buf.writeShort(20);
buf.writeInt(x);
buf.writeInt(y);
buf.writeInt(z);
buf.writeInt(playerId);
buf.writeInt(slotId);
buf.writeByte(0);
C17PacketCustomPayload packet = new C17PacketCustomPayload("MFReloaded", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "MFR";
}
}
| 4,140 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
ResearchGod.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/thaumcraft/ResearchGod.java | package ehacks.mod.modulesystem.classes.mods.thaumcraft;
import cpw.mods.fml.common.network.ByteBufUtils;
import cpw.mods.fml.relauncher.ReflectionHelper;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.lang.reflect.Field;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class ResearchGod extends Module {
public ResearchGod() {
super(ModuleCategory.EHACKS);
}
private Object getPrivateValue(String className, String fieldName, Object from) throws Exception {
return ReflectionHelper.findField(Class.forName(className), fieldName).get(from);
}
@Override
public void onModuleEnabled() {
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("thaumcraft.api.research.ResearchCategories");
Class.forName("thaumcraft.api.research.ResearchCategoryList");
Class.forName("thaumcraft.api.research.ResearchItem");
Class.forName("thaumcraft.common.lib.research.ResearchManager");
Class.forName("thaumcraft.api.aspects.AspectList");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public String getModName() {
return "Thaumcraft";
}
@Override
public String getName() {
return "ResearchGod";
}
@Override
public String getDescription() {
return "Automatically researches all available thaumcraft researches";
}
public int tickId = -1;
@SuppressWarnings("unchecked")
@Override
public void onTicks() {
tickId++;
if (tickId % 40 != 0) {
return;
}
tickId = 0;
try {
Field f = Class.forName("thaumcraft.client.gui.GuiResearchPopup").getDeclaredField("theResearch");
f.setAccessible(true);
((Collection) f.get(Class.forName("thaumcraft.client.lib.ClientTickEventsFML").getField("researchPopup").get(null))).clear();
LinkedHashMap<String, Object> researchCategories
= (LinkedHashMap<String, Object>) getPrivateValue("thaumcraft.api.research.ResearchCategories", "researchCategories", null);
for (Object listObj : researchCategories.values()) {
Map<String, Object> research
= (Map<String, Object>) getPrivateValue("thaumcraft.api.research.ResearchCategoryList", "research", listObj);
for (Object item : research.values()) {
String[] parents = (String[]) getPrivateValue("thaumcraft.api.research.ResearchItem", "parents", item);
String[] parentsHidden = (String[]) getPrivateValue("thaumcraft.api.research.ResearchItem", "parentsHidden", item);
String key = (String) getPrivateValue("thaumcraft.api.research.ResearchItem", "key", item);
if (!isResearchComplete(key)) {
boolean doIt = true;
if (parents != null) {
for (String parent : parents) {
if (!isResearchComplete(parent)) {
doIt = false;
break;
}
}
}
if (!doIt) {
continue;
}
if (parentsHidden != null) {
for (String parent : parentsHidden) {
if (!isResearchComplete(parent)) {
doIt = false;
break;
}
}
}
if (!doIt) {
continue;
}
for (Object aObj : getAspects(item)) {
if (aObj == null) {
doIt = false;
break;
}
}
if (!doIt) {
continue;
}
doResearch(key);
}
}
}
} catch (Exception e) {
}
}
private boolean isResearchComplete(String researchId) throws Exception {
return (Boolean) Class.forName("thaumcraft.common.lib.research.ResearchManager").getMethod("isResearchComplete", String.class, String.class).invoke(null, Wrapper.INSTANCE.player().getCommandSenderName(), researchId);
}
private Object[] getAspects(Object item) throws Exception {
Object aspectListObj = getPrivateValue("thaumcraft.api.research.ResearchItem", "tags", item);
return (Object[]) Class.forName("thaumcraft.api.aspects.AspectList").getMethod("getAspects").invoke(aspectListObj);
}
private void doResearch(String researchId) {
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(14);
ByteBufUtils.writeUTF8String(buf, researchId);
buf.writeInt(Wrapper.INSTANCE.player().dimension);
ByteBufUtils.writeUTF8String(buf, Wrapper.INSTANCE.player().getCommandSenderName());
buf.writeByte(0);
C17PacketCustomPayload packet = new C17PacketCustomPayload("thaumcraft", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
}
| 5,789 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
MagicGod.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/thaumcraft/MagicGod.java | package ehacks.mod.modulesystem.classes.mods.thaumcraft;
import cpw.mods.fml.common.network.ByteBufUtils;
import cpw.mods.fml.relauncher.ReflectionHelper;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.util.ArrayList;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class MagicGod extends Module {
public MagicGod() {
super(ModuleCategory.EHACKS);
}
private Object getPrivateValue(String className, String fieldName, Object from) throws Exception {
return ReflectionHelper.findField(Class.forName(className), fieldName).get(from);
}
@Override
public void onModuleEnabled() {
try {
ArrayList aspects = (ArrayList) Class.forName("thaumcraft.api.aspects.Aspect").getMethod("getCompoundAspects").invoke(null);
for (Object aspect : aspects) {
Object aspect1 = ((Object[]) Class.forName("thaumcraft.api.aspects.Aspect").getMethod("getComponents").invoke(aspect))[0];
Object aspect2 = ((Object[]) Class.forName("thaumcraft.api.aspects.Aspect").getMethod("getComponents").invoke(aspect))[1];
String a1 = (String) Class.forName("thaumcraft.api.aspects.Aspect").getMethod("getTag").invoke(aspect1);
String a2 = (String) Class.forName("thaumcraft.api.aspects.Aspect").getMethod("getTag").invoke(aspect2);
doGive(a1, a2);
}
this.off();
} catch (Exception ignored) {
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("thaumcraft.api.aspects.Aspect");
Class.forName("thaumcraft.common.Thaumcraft");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public String getModName() {
return "Thaumcraft";
}
@Override
public String getName() {
return "MagicGod";
}
@Override
public String getDescription() {
return "Automatically gives all available thaumcraft compound aspects";
}
private void doGive(String a1, String a2) {
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(13);
buf.writeInt(Wrapper.INSTANCE.player().dimension);
buf.writeInt(Wrapper.INSTANCE.player().getEntityId());
buf.writeInt(0);
buf.writeInt(0);
buf.writeInt(0);
ByteBufUtils.writeUTF8String(buf, a1);
ByteBufUtils.writeUTF8String(buf, a2);
buf.writeBoolean(true);
buf.writeBoolean(true);
C17PacketCustomPayload packet = new C17PacketCustomPayload("thaumcraft", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
}
| 2,902 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
IC2SignEdit.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/nuclearcontrol/IC2SignEdit.java | package ehacks.mod.modulesystem.classes.mods.nuclearcontrol;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.PacketHandler.Side;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import net.minecraftforge.client.event.MouseEvent;
import org.lwjgl.input.Mouse;
public class IC2SignEdit
extends Module {
public IC2SignEdit() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "IC2SignEdit";
}
@Override
public String getDescription() {
return "Allows you to edit configs of blocks from the IC2 Nuclear Control mod with right click";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("shedar.mods.ic2.nuclearcontrol.network.message.PacketClientSensor").getConstructor();
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("shedar.mods.ic2.nuclearcontrol.network.message.PacketClientSensor");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private boolean fakeGuiOpened = false;
@SuppressWarnings("JavaReflectionInvocation")
@Override
public void onMouse(MouseEvent event) {
try {
MovingObjectPosition position = Wrapper.INSTANCE.mc().objectMouseOver;
TileEntity entity = Wrapper.INSTANCE.world().getTileEntity(position.blockX, position.blockY, position.blockZ);
if (entity != null && Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel").isInstance(entity) && Mouse.isButtonDown(1)) {
Object containerInfoPanel = Class.forName("shedar.mods.ic2.nuclearcontrol.containers.ContainerInfoPanel").getConstructor(new Class[]{EntityPlayer.class, Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel")}).newInstance((EntityPlayer) Wrapper.INSTANCE.player(), entity);
GuiContainer guiInfoPanel = (GuiContainer) Class.forName("shedar.mods.ic2.nuclearcontrol.gui.GuiInfoPanel").getConstructor(new Class[]{Container.class}).newInstance(containerInfoPanel);
fakeGuiOpened = true;
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
if (entity != null && Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityThermo").isInstance(entity) && Mouse.isButtonDown(1)) {
GuiContainer guiInfoPanel = (GuiContainer) Class.forName("shedar.mods.ic2.nuclearcontrol.gui.GuiIC2Thermo").getConstructor(new Class[]{Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityThermo")}).newInstance(entity);
fakeGuiOpened = true;
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
if (entity != null && Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityRemoteThermo").isInstance(entity) && Mouse.isButtonDown(1)) {
Object containerInfoPanel = Class.forName("shedar.mods.ic2.nuclearcontrol.containers.ContainerRemoteThermo").getConstructor(new Class[]{EntityPlayer.class, Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityRemoteThermo")}).newInstance((EntityPlayer) Wrapper.INSTANCE.player(), entity);
GuiContainer guiInfoPanel = (GuiContainer) Class.forName("shedar.mods.ic2.nuclearcontrol.gui.GuiRemoteThermo").getConstructor(new Class[]{Container.class}).newInstance(containerInfoPanel);
fakeGuiOpened = true;
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
if (entity != null && Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityRangeTrigger").isInstance(entity) && Mouse.isButtonDown(1)) {
Object containerInfoPanel = Class.forName("shedar.mods.ic2.nuclearcontrol.containers.ContainerRangeTrigger").getConstructor(new Class[]{EntityPlayer.class, Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityRangeTrigger")}).newInstance((EntityPlayer) Wrapper.INSTANCE.player(), entity);
GuiContainer guiInfoPanel = (GuiContainer) Class.forName("shedar.mods.ic2.nuclearcontrol.gui.GuiRangeTrigger").getConstructor(new Class[]{Container.class}).newInstance(containerInfoPanel);
fakeGuiOpened = true;
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
if (entity != null && Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityIndustrialAlarm").isInstance(entity) && Mouse.isButtonDown(1)) {
GuiContainer guiInfoPanel = (GuiContainer) Class.forName("shedar.mods.ic2.nuclearcontrol.gui.GuiIndustrialAlarm").getConstructor(new Class[]{Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityHowlerAlarm")}).newInstance(entity);
fakeGuiOpened = true;
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
if (entity != null && Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityHowlerAlarm").isInstance(entity) && Mouse.isButtonDown(1)) {
GuiContainer guiInfoPanel = (GuiContainer) Class.forName("shedar.mods.ic2.nuclearcontrol.gui.GuiHowlerAlarm").getConstructor(new Class[]{Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityHowlerAlarm")}).newInstance(entity);
fakeGuiOpened = true;
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
if (entity != null && Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityEnergyCounter").isInstance(entity) && Mouse.isButtonDown(1)) {
Object containerInfoPanel = Class.forName("shedar.mods.ic2.nuclearcontrol.containers.ContainerEnergyCounter").getConstructor(new Class[]{EntityPlayer.class, Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityEnergyCounter")}).newInstance((EntityPlayer) Wrapper.INSTANCE.player(), entity);
GuiContainer guiInfoPanel = (GuiContainer) Class.forName("shedar.mods.ic2.nuclearcontrol.gui.GuiEnergyCounter").getConstructor(new Class[]{Container.class}).newInstance(containerInfoPanel);
fakeGuiOpened = true;
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
if (entity != null && Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAverageCounter").isInstance(entity) && Mouse.isButtonDown(1)) {
Object containerInfoPanel = Class.forName("shedar.mods.ic2.nuclearcontrol.containers.ContainerAverageCounter").getConstructor(new Class[]{EntityPlayer.class, Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAverageCounter")}).newInstance((EntityPlayer) Wrapper.INSTANCE.player(), entity);
GuiContainer guiInfoPanel = (GuiContainer) Class.forName("shedar.mods.ic2.nuclearcontrol.gui.GuiAverageCounter").getConstructor(new Class[]{Container.class}).newInstance(containerInfoPanel);
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
fakeGuiOpened = true;
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
if (entity != null && Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAdvancedInfoPanel").isInstance(entity) && Mouse.isButtonDown(1)) {
Object containerInfoPanel = Class.forName("shedar.mods.ic2.nuclearcontrol.containers.ContainerAdvancedInfoPanel").getConstructor(new Class[]{EntityPlayer.class, Class.forName("shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAdvancedInfoPanel")}).newInstance((EntityPlayer) Wrapper.INSTANCE.player(), entity);
GuiContainer guiInfoPanel = (GuiContainer) Class.forName("shedar.mods.ic2.nuclearcontrol.gui.GuiAdvancedInfoPanel").getConstructor(new Class[]{Container.class}).newInstance(containerInfoPanel);
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
fakeGuiOpened = true;
Wrapper.INSTANCE.mc().displayGuiScreen(guiInfoPanel);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
} catch (Exception e) {
}
}
@Override
public String getModName() {
return "NucControl";
}
@Override
public void onTicks() {
if (Wrapper.INSTANCE.mc().currentScreen == null) {
fakeGuiOpened = false;
}
}
@Override
public boolean onPacket(Object packet, Side side) {
return false;
}
@Override
public boolean canOnOnStart() {
return true;
}
}
| 9,944 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
CloudStorage.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/tinkers/CloudStorage.java | package ehacks.mod.modulesystem.classes.mods.tinkers;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class CloudStorage
extends Module {
public CloudStorage() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "CloudStorage";
}
@Override
public String getDescription() {
return "Allow you to open knapsnack from Tinker's Construct";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("tconstruct.util.network.AccessoryInventoryPacket");
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(1);
buf.writeInt(102);
C17PacketCustomPayload packet = new C17PacketCustomPayload("TConstruct", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
InteropUtils.log("Opened", this);
this.off();
} catch (ClassNotFoundException ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("tconstruct.util.network.AccessoryInventoryPacket");
return ModStatus.WORKING;
} catch (ClassNotFoundException e) {
return ModStatus.NOTWORKING;
}
}
@Override
public String getModName() {
return "Tinker's";
}
}
| 1,636 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
MegaExploit.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/tinkers/MegaExploit.java | package ehacks.mod.modulesystem.classes.mods.tinkers;
import cpw.mods.fml.common.network.ByteBufUtils;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.GiveKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Statics;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.util.MovingObjectPosition;
import org.lwjgl.input.Keyboard;
public class MegaExploit
extends Module {
public MegaExploit() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "MegaExploit";
}
@Override
public String getDescription() {
return "Sets any ItemStack in blocks from TinkerConstruct\nUsage:\n Numpad0 - give item";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("tconstruct.util.network.PatternTablePacket");
} catch (ClassNotFoundException ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("tconstruct.util.network.PatternTablePacket");
return ModStatus.WORKING;
} catch (ClassNotFoundException e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleDisabled() {
}
private boolean prevState = false;
@Override
public void onTicks() {
boolean newState = Keyboard.isKeyDown(GiveKeybind.getKey());
if (newState && !prevState) {
prevState = newState;
MovingObjectPosition mop = Wrapper.INSTANCE.mc().objectMouseOver;
if (mop.sideHit == -1) {
return;
}
if (Statics.STATIC_ITEMSTACK == null) {
return;
}
setMagic(mop.blockX, mop.blockY, mop.blockZ, Statics.STATIC_ITEMSTACK);
InteropUtils.log("Exploited!", this);
}
prevState = newState;
}
public void setMagic(int x, int y, int z, ItemStack item) {
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(8);
buf.writeInt(x);
buf.writeInt(y);
buf.writeInt(z);
ByteBufUtils.writeItemStack(buf, item);
C17PacketCustomPayload packet = new C17PacketCustomPayload("TConstruct", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "Tinker's";
}
}
| 2,696 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
SkillResearch.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/arsmagica2/SkillResearch.java | package ehacks.mod.modulesystem.classes.mods.arsmagica2;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.util.ArrayList;
import java.util.Collection;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class SkillResearch
extends Module {
public SkillResearch() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "SkillResearch";
}
@Override
public String getDescription() {
return "Researches all kinds of skills in Ars Magica";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("am2.spell.SkillManager");
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(27);
buf.writeByte(2);
buf.writeInt(Wrapper.INSTANCE.player().getEntityId());
buf.writeInt(31);
buf.writeBoolean(false);
buf.writeInt(((Collection<Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllShapes").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))).size());
for (Integer i : (Iterable<? extends Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllShapes").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))) {
buf.writeInt(i);
}
buf.writeInt(((Collection<Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllComponents").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))).size());
for (Integer i : (Iterable<? extends Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllComponents").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))) {
buf.writeInt(i);
}
buf.writeInt(((Collection<Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllModifiers").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))).size());
for (Integer i : (Iterable<? extends Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllModifiers").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))) {
buf.writeInt(i);
}
buf.writeInt(((Collection<Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllTalents").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))).size());
for (Integer i : (Iterable<? extends Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllTalents").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))) {
buf.writeInt(i);
}
buf.writeInt(1337);
buf.writeInt(1337);
buf.writeInt(1337);
C17PacketCustomPayload packet = new C17PacketCustomPayload("AM2DataTunnel", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
buf = Unpooled.buffer(0);
buf.writeByte(27);
buf.writeByte(1);
buf.writeInt(Wrapper.INSTANCE.player().getEntityId());
buf.writeInt(0);
buf.writeInt(4);
packet = new C17PacketCustomPayload("AM2DataTunnel", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
this.off();
InteropUtils.log("Gived", this);
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("am2.spell.SkillManager");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
static Integer[] getIntArray(ArrayList<Integer> arrayList) {
return arrayList.toArray(new Integer[arrayList.size()]);
}
@Override
public String getModName() {
return "Ars Magic";
}
}
| 4,196 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
MagicGive.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/arsmagica2/MagicGive.java | package ehacks.mod.modulesystem.classes.mods.arsmagica2;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.GiveKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.util.MovingObjectPosition;
import org.lwjgl.input.Keyboard;
public class MagicGive
extends Module {
public MagicGive() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "MagicGive";
}
@Override
public String getDescription() {
return "You can give yourself any spell you want";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("am2.blocks.tileentities.TileEntityInscriptionTable");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("am2.blocks.tileentities.TileEntityInscriptionTable");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private boolean prevState = false;
@Override
public void onTicks() {
boolean newState = Keyboard.isKeyDown(GiveKeybind.getKey());
if (newState && !prevState) {
prevState = newState;
createSpell();
}
prevState = newState;
}
public void createSpell() {
MovingObjectPosition mop = Wrapper.INSTANCE.mc().objectMouseOver;
if (mop.sideHit == -1) {
return;
}
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(36);
buf.writeInt(mop.blockX);
buf.writeInt(mop.blockY);
buf.writeInt(mop.blockZ);
buf.writeByte(2);
buf.writeInt(Wrapper.INSTANCE.player().getEntityId());
C17PacketCustomPayload packet = new C17PacketCustomPayload("AM2DataTunnel", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
InteropUtils.log("Gived", this);
}
@Override
public String getModName() {
return "Ars Magic";
}
}
| 2,332 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoLimitSpell.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/arsmagica2/NoLimitSpell.java | package ehacks.mod.modulesystem.classes.mods.arsmagica2;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
public class NoLimitSpell
extends Module {
public NoLimitSpell() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "NoLimitSpell";
}
@Override
public String getDescription() {
return "Allows you to put a any modifier to spell";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("am2.blocks.tileentities.TileEntityInscriptionTable");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("am2.blocks.tileentities.TileEntityInscriptionTable");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
static void setFinalStatic(Field field, Object to, Integer[] newValue) throws Exception {
field.setAccessible(true);
Field modifiersField = Field.class.getDeclaredField("modifiers");
modifiersField.setAccessible(true);
modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);
field.set(to, newValue);
}
static Integer[] getIntArray(ArrayList<Integer> arrayList) {
return arrayList.toArray(new Integer[arrayList.size()]);
}
@Override
public void onTicks() {
try {
Object currentScreen = Wrapper.INSTANCE.mc().currentScreen;
if (currentScreen != null && Class.forName("am2.guis.GuiInscriptionTable").isInstance(currentScreen)) {
setFinalStatic(Class.forName("am2.guis.GuiInscriptionTable").getDeclaredField("knownShapes"), currentScreen, getIntArray((ArrayList<Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllShapes").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))));
setFinalStatic(Class.forName("am2.guis.GuiInscriptionTable").getDeclaredField("knownComponents"), currentScreen, getIntArray((ArrayList<Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllComponents").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))));
setFinalStatic(Class.forName("am2.guis.GuiInscriptionTable").getDeclaredField("knownModifiers"), currentScreen, getIntArray((ArrayList<Integer>) Class.forName("am2.spell.SkillManager").getMethod("getAllModifiers").invoke(Class.forName("am2.spell.SkillManager").getField("instance").get(null))));
}
} catch (Exception e) {
InteropUtils.log("&cError", this);
}
}
@Override
public String getModName() {
return "Ars Magic";
}
}
| 3,023 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoLimitBuffs.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/arsmagica2/NoLimitBuffs.java | package ehacks.mod.modulesystem.classes.mods.arsmagica2;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.HashMap;
import net.minecraft.client.gui.inventory.GuiContainer;
public class NoLimitBuffs
extends Module {
public NoLimitBuffs() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "NoLimitBuffs";
}
@Override
public String getDescription() {
return "Allows you to put a lot of modifiers to spell";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("am2.blocks.tileentities.TileEntityInscriptionTable");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("am2.blocks.tileentities.TileEntityInscriptionTable");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private final boolean prevState = false;
static void setFinalStatic(Field field, Object to, Integer[] newValue) throws Exception {
field.setAccessible(true);
Field modifiersField = Field.class.getDeclaredField("modifiers");
modifiersField.setAccessible(true);
modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);
field.set(to, newValue);
}
static Object getFinalStatic(Field field, Object from) throws Exception {
field.setAccessible(true);
Field modifiersField = Field.class.getDeclaredField("modifiers");
modifiersField.setAccessible(true);
modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);
return field.get(from);
}
static Integer[] getIntArray(ArrayList<Integer> arrayList) {
return arrayList.toArray(new Integer[arrayList.size()]);
}
@Override
public void onTicks() {
try {
Object currentScreen = Wrapper.INSTANCE.mc().currentScreen;
if (currentScreen != null && Class.forName("am2.guis.GuiInscriptionTable").isInstance(currentScreen)) {
Object container = ((GuiContainer) currentScreen).inventorySlots;
Object tileEntity = getFinalStatic(Class.forName("am2.containers.ContainerInscriptionTable").getDeclaredField("table"), container);
HashMap<Object, Integer> modCounts = (HashMap<Object, Integer>) getFinalStatic(Class.forName("am2.blocks.tileentities.TileEntityInscriptionTable").getDeclaredField("modifierCount"), tileEntity);
modCounts.entrySet().forEach((entry) -> {
entry.setValue(0);
});
}
} catch (Exception e) {
InteropUtils.log("&cError", this);
}
}
@Override
public String getModName() {
return "Ars Magic";
}
}
| 3,131 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoLimitSpin.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/galacticraft/NoLimitSpin.java | package ehacks.mod.modulesystem.classes.mods.galacticraft;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.gui.window.WindowPlayerIds;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.util.List;
import java.util.Random;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class NoLimitSpin
extends Module {
public Random R = new Random();
public NoLimitSpin() {
super(ModuleCategory.EHACKS);
}
@Override
public String getDescription() {
return "Rotates all entities around you randomly";
}
@Override
public String getName() {
return "NoLimitSpin";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("micdoodle8.mods.galacticraft.core.network.PacketRotateRocket").getConstructor();
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("micdoodle8.mods.galacticraft.core.network.PacketRotateRocket");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onTicks() {
try {
List<EntityPlayer> players = WindowPlayerIds.useIt ? WindowPlayerIds.getPlayers() : Wrapper.INSTANCE.world().playerEntities;
players.forEach((o) -> {
spinEntity(((Entity) o).getEntityId());
});
} catch (Exception e) {
}
}
public void spinEntity(int entityId) {
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(1);
buf.writeInt(entityId);
buf.writeFloat(R.nextFloat() * 180f - 90f);
buf.writeFloat(R.nextFloat() * 360f);
C17PacketCustomPayload packet = new C17PacketCustomPayload("GalacticraftCore", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
@Override
public String getModName() {
return "Galacticraft";
}
}
| 2,245 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
SpaceFire.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/galacticraft/SpaceFire.java | package ehacks.mod.modulesystem.classes.mods.galacticraft;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Method;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.MovingObjectPosition;
import net.minecraftforge.client.event.MouseEvent;
import org.lwjgl.input.Mouse;
public class SpaceFire
extends Module {
public SpaceFire() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "Space Fire";
}
@Override
public String getDescription() {
return "Fires entities";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple").getConstructor();
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onMouse(MouseEvent event) {
try {
MovingObjectPosition position = Wrapper.INSTANCE.mc().objectMouseOver;
if (position.entityHit instanceof EntityLivingBase && Mouse.isButtonDown(0)) {
Object packetPipeLine = Class.forName("micdoodle8.mods.galacticraft.core.GalacticraftCore").getField("packetPipeline").get(null);
Method sendMethod = packetPipeLine.getClass().getMethod("sendToServer", Class.forName("micdoodle8.mods.galacticraft.core.network.IPacket"));
Object packetObj = Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple").getConstructor(new Class[]{Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple$EnumSimplePacket"), Object[].class}).newInstance(Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple$EnumSimplePacket").getMethod("valueOf", String.class).invoke(null, "S_SET_ENTITY_FIRE"), new Object[]{position.entityHit.getEntityId()});
sendMethod.invoke(packetPipeLine, packetObj);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
} catch (Exception e) {
}
}
@Override
public String getModName() {
return "Galacticraft";
}
}
| 2,547 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
GalaxyTeleport.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/galacticraft/GalaxyTeleport.java | package ehacks.mod.modulesystem.classes.mods.galacticraft;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import net.minecraft.client.gui.GuiScreen;
import org.lwjgl.input.Keyboard;
public class GalaxyTeleport
extends Module {
public GalaxyTeleport() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "GalaxyTeleport";
}
@Override
public String getDescription() {
return "On click you can teleport to any planet in Galacticraft";
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleEnabled() {
try {
Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple");
List<Object> objects = new ArrayList<>();
objects.addAll(((Map<String, Object>) Class.forName("micdoodle8.mods.galacticraft.api.galaxies.GalaxyRegistry").getMethod("getRegisteredPlanets").invoke(null)).values());
objects.addAll(((Map<String, Object>) Class.forName("micdoodle8.mods.galacticraft.api.galaxies.GalaxyRegistry").getMethod("getRegisteredMoons").invoke(null)).values());
objects.addAll(((Map<String, Object>) Class.forName("micdoodle8.mods.galacticraft.api.galaxies.GalaxyRegistry").getMethod("getRegisteredSatellites").invoke(null)).values());
Object screen = Class.forName("micdoodle8.mods.galacticraft.core.client.gui.screen.GuiCelestialSelection").getConstructor(Boolean.TYPE, List.class).newInstance(false, objects);
Wrapper.INSTANCE.mc().displayGuiScreen((GuiScreen) screen);
this.off();
} catch (Exception ex) {
this.off();
}
}
@Override
public void onTicks() {
if (Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {
Wrapper.INSTANCE.mc().displayGuiScreen(null);
}
}
@Override
public String getModName() {
return "Galacticraft";
}
}
| 2,344 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoLimitFire.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/galacticraft/NoLimitFire.java | package ehacks.mod.modulesystem.classes.mods.galacticraft;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.gui.window.WindowPlayerIds;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Method;
import java.util.List;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
public class NoLimitFire
extends Module {
public NoLimitFire() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "NoLimitFire";
}
@Override
public String getDescription() {
return "Fires all players around you";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple").getConstructor();
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onTicks() {
try {
List<EntityPlayer> players = (WindowPlayerIds.useIt ? (List<EntityPlayer>) WindowPlayerIds.getPlayers() : (List<EntityPlayer>) Wrapper.INSTANCE.world().loadedEntityList);
players.stream().filter((o) -> (((Entity) o).getEntityId() != Wrapper.INSTANCE.player().getEntityId())).forEachOrdered((o) -> {
fireEntity(((Entity) o).getEntityId());
});
} catch (Exception e) {
}
}
public void fireEntity(int entityId) {
try {
Object packetPipeLine = Class.forName("micdoodle8.mods.galacticraft.core.GalacticraftCore").getField("packetPipeline").get(null);
Method sendMethod = packetPipeLine.getClass().getMethod("sendToServer", Class.forName("micdoodle8.mods.galacticraft.core.network.IPacket"));
Object packetObj = Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple").getConstructor(new Class[]{Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple$EnumSimplePacket"), Object[].class}).newInstance(Class.forName("micdoodle8.mods.galacticraft.core.network.PacketSimple$EnumSimplePacket").getMethod("valueOf", String.class).invoke(null, "S_SET_ENTITY_FIRE"), new Object[]{entityId});
sendMethod.invoke(packetPipeLine, packetObj);
} catch (Exception ex) {
}
}
@Override
public String getModName() {
return "Galacticraft";
}
}
| 2,696 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
BlockDestroy.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/openmodularturrets/BlockDestroy.java | package ehacks.mod.modulesystem.classes.mods.openmodularturrets;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import net.minecraft.util.MovingObjectPosition;
import org.lwjgl.input.Mouse;
public class BlockDestroy
extends Module {
public static boolean isActive = false;
public BlockDestroy() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "BlockDestroy";
}
@Override
public String getDescription() {
return "Destroy blocks immediately with left mouse click";
}
private Method snd;
private Constructor msg;
private Object obj;
@Override
public void onModuleEnabled() {
try {
msg = Class.forName("openmodularturrets.network.DropBaseMessage").getConstructor(Integer.TYPE, Integer.TYPE, Integer.TYPE);
msg.setAccessible(true);
snd = Class.forName("cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper").getDeclaredMethod("sendToServer", Class.forName("cpw.mods.fml.common.network.simpleimpl.IMessage"));
snd.setAccessible(true);
obj = Class.forName("openmodularturrets.ModularTurrets").getDeclaredField("networking").get(new Object[0]);
} catch (Exception ex) {
isActive = false;
this.off();
}
isActive = true;
}
@Override
public ModStatus getModStatus() {
try {
msg = Class.forName("openmodularturrets.network.DropBaseMessage").getConstructor(Integer.TYPE, Integer.TYPE, Integer.TYPE);
msg.setAccessible(true);
snd = Class.forName("cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper").getDeclaredMethod("sendToServer", Class.forName("cpw.mods.fml.common.network.simpleimpl.IMessage"));
snd.setAccessible(true);
obj = Class.forName("openmodularturrets.ModularTurrets").getDeclaredField("networking").get(new Object[0]);
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleDisabled() {
isActive = false;
}
private boolean prevState;
@Override
public void onTicks() {
try {
MovingObjectPosition position = Wrapper.INSTANCE.mc().objectMouseOver;
boolean nowState = Mouse.isButtonDown(0);
if (position.sideHit != -1 && nowState && !prevState) {
snd.invoke(obj, msg.newInstance(position.blockX, position.blockY, position.blockZ));
}
prevState = nowState;
} catch (Exception ignored) {
}
}
@Override
public String getModName() {
return "OMTurrets";
}
}
| 2,916 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
PrivateNuker.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/openmodularturrets/PrivateNuker.java | package ehacks.mod.modulesystem.classes.mods.openmodularturrets;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.config.CheatConfiguration;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.network.play.client.C07PacketPlayerDigging;
public class PrivateNuker
extends Module {
public static boolean isActive = false;
public PrivateNuker() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "PrivateNuker";
}
@Override
public String getDescription() {
return "Destroys all blocks around you in radius of 5 blocks";
}
private Method snd;
private Constructor msg;
private Object obj;
@Override
public void onModuleEnabled() {
isActive = true;
try {
msg = Class.forName("openmodularturrets.network.DropBaseMessage").getConstructor(Integer.TYPE, Integer.TYPE, Integer.TYPE);
msg.setAccessible(true);
snd = Class.forName("cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper").getDeclaredMethod("sendToServer", Class.forName("cpw.mods.fml.common.network.simpleimpl.IMessage"));
snd.setAccessible(true);
obj = Class.forName("openmodularturrets.ModularTurrets").getDeclaredField("networking").get(new Object[0]);
} catch (Exception ex) {
isActive = false;
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("openmodularturrets.network.DropBaseMessage");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleDisabled() {
isActive = false;
}
@Override
public void onTicks() {
int radius = CheatConfiguration.config.nukerradius;
if (Wrapper.INSTANCE.mc().playerController.isInCreativeMode()) {
for (int i = radius; i >= -radius; --i) {
for (int k = radius; k >= -radius; --k) {
for (int j = -radius; j <= radius; ++j) {
int x = (int) (Wrapper.INSTANCE.player().posX + i);
int y = (int) (Wrapper.INSTANCE.player().posY + j);
int z = (int) (Wrapper.INSTANCE.player().posZ + k);
Block blockID = Wrapper.INSTANCE.world().getBlock(x, y, z);
if (blockID.getMaterial() == Material.air) {
continue;
}
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C07PacketPlayerDigging(0, x, y, z, 0));
}
}
}
}
if (Wrapper.INSTANCE.mc().playerController.isNotCreative()) {
for (int i = radius; i >= -radius; --i) {
for (int k = radius; k >= -radius; --k) {
for (int j = -radius; j <= radius; ++j) {
int x = (int) (Wrapper.INSTANCE.player().posX + i);
int y = (int) (Wrapper.INSTANCE.player().posY + j);
int z = (int) (Wrapper.INSTANCE.player().posZ + k);
Block block = Wrapper.INSTANCE.world().getBlock(x, y, z);
if (block.getMaterial() == Material.air) {
continue;
}
try {
snd.invoke(obj, msg.newInstance(x, y, z));
} catch (Exception ex) {
isActive = false;
this.off();
}
}
}
}
}
}
@Override
public String getModName() {
return "OMTurrets";
}
}
| 4,075 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NEISelect.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/nei/NEISelect.java | package ehacks.mod.modulesystem.classes.mods.nei;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.NEISelectKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Statics;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import org.lwjgl.input.Keyboard;
public class NEISelect extends Module {
public NEISelect() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "NEISelect";
}
@Override
public String getDescription() {
return "Select ItemStack from NEI\nUsage:\n Tab - select single item\n Shift+Tab - select stack of item";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("codechicken.nei.guihook.GuiContainerManager");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("codechicken.nei.guihook.GuiContainerManager");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private boolean prevState = false;
@Override
public void onTicks() {
boolean newState = Keyboard.isKeyDown(NEISelectKeybind.getKey());
if (newState && !prevState) {
prevState = newState;
try {
GuiContainer container = Wrapper.INSTANCE.mc().currentScreen instanceof GuiContainer ? ((GuiContainer) Wrapper.INSTANCE.mc().currentScreen) : null;
if (container == null) {
return;
}
Object checkItem = Class.forName("codechicken.nei.guihook.GuiContainerManager").getDeclaredMethod("getStackMouseOver", GuiContainer.class).invoke(null, container);
if (checkItem instanceof ItemStack) {
ItemStack item = (ItemStack) checkItem;
int count = GuiContainer.isShiftKeyDown() ? item.getMaxStackSize() : 1;
Statics.STATIC_ITEMSTACK = item.copy().splitStack(count);
Statics.STATIC_NBT = Statics.STATIC_ITEMSTACK.getTagCompound() == null ? new NBTTagCompound() : Statics.STATIC_ITEMSTACK.getTagCompound();
}
InteropUtils.log("ItemStack selected", this);
} catch (Exception ignored) {
}
}
prevState = newState;
}
@Override
public String getModName() {
return "NEI";
}
@Override
public boolean canOnOnStart() {
return true;
}
}
| 2,800 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
ItemCreator.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/crayfish/ItemCreator.java | package ehacks.mod.modulesystem.classes.mods.crayfish;
import cpw.mods.fml.common.network.ByteBufUtils;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.GiveKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Statics;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.util.UUID;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import org.lwjgl.input.Keyboard;
public class ItemCreator
extends Module {
public ItemCreator() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "ItemCreator";
}
@Override
public String getDescription() {
return "Gives you any ItemStack you want\nUsage:\n Numpad0 - perform give";
}
public void giveItem(ItemStack stack) {
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(10);
ItemStack mail = new ItemStack(Items.stick);
NBTTagList tagList = new NBTTagList();
for (int i = 0; i < 6; i++) {
NBTTagCompound item = new NBTTagCompound();
item.setByte("Slot", (byte) i);
stack.writeToNBT(item);
tagList.appendTag(item);
}
NBTTagCompound inv = new NBTTagCompound();
inv.setTag("Items", tagList);
inv.setString("UniqueID", UUID.randomUUID().toString());
mail.stackTagCompound = new NBTTagCompound();
mail.stackTagCompound.setTag("Package", inv);
ByteBufUtils.writeItemStack(buf, mail);
C17PacketCustomPayload packet = new C17PacketCustomPayload("cfm", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
private boolean prevState = false;
@Override
public void onTicks() {
boolean newState = Keyboard.isKeyDown(GiveKeybind.getKey());
if (newState && !prevState) {
prevState = newState;
if (Statics.STATIC_ITEMSTACK == null) {
return;
}
giveItem(Statics.STATIC_ITEMSTACK);
InteropUtils.log("Gived", this);
}
prevState = newState;
}
@Override
public void onModuleEnabled() {
try {
Class.forName("com.mrcrayfish.furniture.network.message.MessagePackage");
} catch (Exception ex) {
this.off();
InteropUtils.log("Not working", this);
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("com.mrcrayfish.furniture.network.message.MessagePackage");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleDisabled() {
}
@Override
public String getModName() {
return "Furniture";
}
}
| 3,111 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
ExtendedDestroyer.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/crayfish/ExtendedDestroyer.java | package ehacks.mod.modulesystem.classes.mods.crayfish;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.util.MovingObjectPosition;
import net.minecraftforge.client.event.MouseEvent;
import org.lwjgl.input.Mouse;
public class ExtendedDestroyer
extends Module {
public ExtendedDestroyer() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "ExtDestroyer";
}
@Override
public String getDescription() {
return "Breaks blocks instantly on left click";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("com.mrcrayfish.furniture.network.message.MessageTakeWater");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("com.mrcrayfish.furniture.network.message.MessageTakeWater");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
public boolean prevState;
@Override
public void onMouse(MouseEvent event) {
try {
MovingObjectPosition position = Wrapper.INSTANCE.mc().objectMouseOver;
boolean nowState = Mouse.isButtonDown(0);
if (position.sideHit != -1 && nowState && !prevState) {
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(14);
buf.writeInt(position.blockX);
buf.writeInt(position.blockY);
buf.writeInt(position.blockZ);
C17PacketCustomPayload packet = new C17PacketCustomPayload("cfm", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
prevState = nowState;
} catch (Exception ignored) {
}
}
@Override
public String getModName() {
return "Furniture";
}
}
| 2,180 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
ExtendedNuker.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/crayfish/ExtendedNuker.java | package ehacks.mod.modulesystem.classes.mods.crayfish;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.config.CheatConfiguration;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.network.play.client.C07PacketPlayerDigging;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class ExtendedNuker
extends Module {
public ExtendedNuker() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "ExtNuker";
}
@Override
public String getDescription() {
return "Breaks blocks instantly in radius of 4 blocks around you";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("com.mrcrayfish.furniture.network.message.MessageTakeWater").getConstructor(Integer.TYPE, Integer.TYPE, Integer.TYPE);
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("com.mrcrayfish.furniture.network.message.MessageTakeWater");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onTicks() {
int radius = CheatConfiguration.config.nukerradius;
if (Wrapper.INSTANCE.mc().playerController.isInCreativeMode()) {
for (int i = radius; i >= -radius; --i) {
for (int k = radius; k >= -radius; --k) {
for (int j = -radius; j <= radius; ++j) {
int x = (int) (Wrapper.INSTANCE.player().posX + i);
int y = (int) (Wrapper.INSTANCE.player().posY + j);
int z = (int) (Wrapper.INSTANCE.player().posZ + k);
Block blockID = Wrapper.INSTANCE.world().getBlock(x, y, z);
if (blockID.getMaterial() == Material.air) {
continue;
}
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C07PacketPlayerDigging(0, x, y, z, 0));
}
}
}
}
if (Wrapper.INSTANCE.mc().playerController.isNotCreative()) {
for (int i = radius; i >= -radius; --i) {
for (int k = radius; k >= -radius; --k) {
for (int j = -radius; j <= radius; ++j) {
int x = (int) (Wrapper.INSTANCE.player().posX + i);
int y = (int) (Wrapper.INSTANCE.player().posY + j);
int z = (int) (Wrapper.INSTANCE.player().posZ + k);
Block block = Wrapper.INSTANCE.world().getBlock(x, y, z);
if (block.getMaterial() == Material.air) {
continue;
}
ByteBuf buf = Unpooled.buffer(0);
buf.writeByte(14);
buf.writeInt(x);
buf.writeInt(y);
buf.writeInt(z);
C17PacketCustomPayload packet = new C17PacketCustomPayload("cfm", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
}
}
}
}
}
@Override
public String getModName() {
return "Furniture";
}
}
| 3,640 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
EndPort.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/enderio/EndPort.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.mods.enderio;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.EntityFakePlayer;
import ehacks.mod.util.GLUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Field;
import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.entity.RenderManager;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosX;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosY;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosZ;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraftforge.client.event.MouseEvent;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import org.lwjgl.opengl.GL11;
/**
*
* @author radioegor146
*/
public class EndPort extends Module {
private Vec3 distVec = null;
private Entity selectedEnt = null;
public EndPort() {
super(ModuleCategory.EHACKS);
}
private double size = 0;
@Override
public String getName() {
return "EndPort";
}
@Override
public String getDescription() {
return "Allows to teleport entity";
}
@Override
public void onMouse(MouseEvent event) {
if (event.button == 1 && event.buttonstate) {
if (selectedEnt != null) {
Wrapper.INSTANCE.world().removeEntityFromWorld(-2);
selectedEnt = null;
distVec = null;
if (event.isCancelable()) {
event.setCanceled(true);
}
return;
}
selectedEnt = getMouseOver(1f, 500, false);
if (!(selectedEnt instanceof EntityFakePlayer)) {
if (selectedEnt != null) {
distVec = Wrapper.INSTANCE.mc().renderViewEntity.getLookVec().normalize();
size = Wrapper.INSTANCE.mc().renderViewEntity.getPosition(1f).distanceTo(Vec3.createVectorHelper(selectedEnt.posX, selectedEnt.posY, selectedEnt.posZ));
distVec.xCoord *= size;
distVec.yCoord *= size;
distVec.zCoord *= size;
if (event.isCancelable()) {
event.setCanceled(true);
}
} else {
distVec = null;
}
}
}
if (selectedEnt != null) {
if (event.dwheel > 0) {
size = Math.min(size + event.dwheel / 120f, 200f);
if (event.isCancelable()) {
event.setCanceled(true);
}
} else if (event.dwheel < 0) {
size = Math.max(size + event.dwheel / 120f, 1f);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
}
if (event.button == 0) {
if (selectedEnt != null) {
tpEntity(selectedEnt, (int) Math.round(Wrapper.INSTANCE.mc().renderViewEntity.posX + distVec.xCoord), (int) Math.round(Wrapper.INSTANCE.mc().renderViewEntity.posY + distVec.yCoord - ((selectedEnt instanceof EntityPlayer) ? 2 : 0)), (int) Math.round(Wrapper.INSTANCE.mc().renderViewEntity.posZ + distVec.zCoord));
selectedEnt = null;
distVec = null;
if (event.isCancelable()) {
event.setCanceled(true);
}
}
}
}
private Entity getMouseOver(float partialTicks, double distance, boolean canBeCollidedWith) {
Minecraft mc = Wrapper.INSTANCE.mc();
Entity pointedEntity = null;
MovingObjectPosition rayTrace = null;
if (mc.renderViewEntity != null) {
if (mc.theWorld != null) {
Vec3 positionVec = mc.renderViewEntity.getPosition(partialTicks);
Vec3 lookVec = mc.renderViewEntity.getLook(partialTicks);
Vec3 posDistVec = positionVec.addVector(lookVec.xCoord * distance, lookVec.yCoord * distance, lookVec.zCoord * distance);
double boxExpand = 1.0F;
List<Entity> entities = mc.theWorld.getEntitiesWithinAABBExcludingEntity(mc.renderViewEntity, mc.renderViewEntity.boundingBox.addCoord(lookVec.xCoord * distance, lookVec.yCoord * distance, lookVec.zCoord * distance).expand(boxExpand, boxExpand, boxExpand));
double mincalc = Double.MAX_VALUE;
for (int i = 0; i < entities.size(); i++) {
Entity entity = entities.get(i);
if (!canBeCollidedWith || entity.canBeCollidedWith()) {
double borderSize = entity.getCollisionBorderSize();
AxisAlignedBB expEntityBox = entity.boundingBox.expand(borderSize, borderSize, borderSize);
MovingObjectPosition calculateInterceptPos = expEntityBox.calculateIntercept(positionVec, posDistVec);
if (calculateInterceptPos != null) {
double calcInterceptPosDist = positionVec.distanceTo(calculateInterceptPos.hitVec);
if (mincalc > calcInterceptPosDist) {
mincalc = calcInterceptPosDist;
pointedEntity = entity;
}
}
}
}
if (pointedEntity != null) {
return pointedEntity;
}
}
}
return null;
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
if (selectedEnt == null) {
return;
}
if (distVec != null) {
distVec = Wrapper.INSTANCE.mc().renderViewEntity.getLookVec().normalize();
distVec.xCoord *= size;
distVec.yCoord *= size;
distVec.zCoord *= size;
}
NBTTagCompound tag = new NBTTagCompound();
selectedEnt.writeToNBT(tag);
if (!GLUtils.hasClearedDepth) {
GL11.glClear(GL11.GL_DEPTH_BUFFER_BIT);
GLUtils.hasClearedDepth = true;
}
Entity ent = selectedEnt;
double tXPos = ent.posX;
double tYPos = ent.posY;
double tZPos = ent.posZ;
double xPos = (Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosX + distVec.xCoord) + (Wrapper.INSTANCE.mc().renderViewEntity.posX - Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosX) * event.partialTicks;
double yPos = (Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosY + distVec.yCoord + ((ent instanceof EntityPlayer) ? 1 : 0)) + (Wrapper.INSTANCE.mc().renderViewEntity.posY - Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosY) * event.partialTicks;
double zPos = (Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosZ + distVec.zCoord) + (Wrapper.INSTANCE.mc().renderViewEntity.posZ - Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosZ) * event.partialTicks;
ent.posX = ent.lastTickPosX = xPos;
ent.posY = ent.lastTickPosY = yPos;
ent.posZ = ent.lastTickPosZ = zPos;
float f1 = ent.prevRotationYaw + (ent.rotationYaw - ent.prevRotationYaw) * event.partialTicks;
RenderHelper.enableStandardItemLighting();
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240 / 1.0F, 240 / 1.0F);
if (Wrapper.INSTANCE.world().loadedEntityList.contains(selectedEnt)) {
GL11.glColor4f(0, 1.0F, 0, 1f);
} else {
GL11.glColor4f(1.0F, 0, 0, 1f);
}
RenderManager.instance.func_147939_a(ent, xPos - renderPosX, yPos - renderPosY, zPos - renderPosZ, f1, event.partialTicks, false);
ent.posX = ent.lastTickPosX = tXPos;
ent.posY = ent.lastTickPosY = tYPos;
ent.posZ = ent.lastTickPosZ = tZPos;
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240f, 240f);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
}
@Override
public void onTicks() {
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("crazypants.enderio.network.PacketHandler").getField("INSTANCE");
Class.forName("crazypants.enderio.api.teleport.TravelSource").getField("BLOCK");
Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getConstructor(Entity.class, Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE, Boolean.TYPE, Class.forName("crazypants.enderio.api.teleport.TravelSource"));
Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getDeclaredField("entityId");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
public void tpEntity(Entity ent, int x, int y, int z) {
try {
SimpleNetworkWrapper snw = (SimpleNetworkWrapper) Class.forName("crazypants.enderio.network.PacketHandler").getField("INSTANCE").get(null);
Object travelSource = Class.forName("crazypants.enderio.api.teleport.TravelSource").getField("BLOCK").get(null);
Object packet = Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getConstructor(Entity.class, Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE, Boolean.TYPE, Class.forName("crazypants.enderio.api.teleport.TravelSource")).newInstance(ent, x, y, z, 0, false, travelSource);
Field f = Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getDeclaredField("entityId");
f.setAccessible(true);
f.set(packet, ent.getEntityId());
snw.sendToServer((IMessage) packet);
} catch (Exception e) {
}
}
@Override
public String getModName() {
return "EnderIO";
}
}
| 10,546 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
Magnendo.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/enderio/Magnendo.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.mods.enderio;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.MagnetKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Field;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class Magnendo extends Module {
public Magnendo() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "Magnendo";
}
@Override
public String getDescription() {
return "Magnets all EntityItem to you on Numpad1";
}
private boolean prevState = false;
@Override
public void onTicks() {
if (Keyboard.isKeyDown(MagnetKeybind.getKey()) && !prevState) {
int cnt = 0;
for (Object entObj : Wrapper.INSTANCE.world().loadedEntityList) {
Entity ent = (Entity) entObj;
if (ent instanceof EntityItem) {
cnt++;
tpEntity(ent, (int) Math.round(Wrapper.INSTANCE.player().lastTickPosX), (int) Math.round(Wrapper.INSTANCE.player().lastTickPosY), (int) Math.round(Wrapper.INSTANCE.player().lastTickPosZ));
}
}
InteropUtils.log("Magneted " + cnt + " items", this);
}
prevState = Keyboard.isKeyDown(MagnetKeybind.getKey());
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("crazypants.enderio.network.PacketHandler").getField("INSTANCE");
Class.forName("crazypants.enderio.api.teleport.TravelSource").getField("BLOCK");
Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getConstructor(Entity.class, Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE, Boolean.TYPE, Class.forName("crazypants.enderio.api.teleport.TravelSource"));
Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getDeclaredField("entityId");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
public void tpEntity(Entity ent, int x, int y, int z) {
try {
SimpleNetworkWrapper snw = (SimpleNetworkWrapper) Class.forName("crazypants.enderio.network.PacketHandler").getField("INSTANCE").get(null);
Object travelSource = Class.forName("crazypants.enderio.api.teleport.TravelSource").getField("BLOCK").get(null);
Object packet = Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getConstructor(Entity.class, Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE, Boolean.TYPE, Class.forName("crazypants.enderio.api.teleport.TravelSource")).newInstance(ent, x, y, z, 0, false, travelSource);
Field f = Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getDeclaredField("entityId");
f.setAccessible(true);
f.set(packet, ent.getEntityId());
snw.sendToServer((IMessage) packet);
} catch (Exception e) {
}
}
@Override
public String getModName() {
return "EnderIO";
}
}
| 3,637 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
SelfEnd.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/enderio/SelfEnd.java | package ehacks.mod.modulesystem.classes.mods.enderio;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.EntityFakePlayer;
import ehacks.mod.util.GLUtils;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.PacketHandler.Side;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Field;
import java.util.List;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.entity.RenderManager;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosX;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosY;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosZ;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.play.client.C01PacketChatMessage;
import net.minecraft.util.MathHelper;
import net.minecraft.util.Vec3;
import net.minecraftforge.client.event.MouseEvent;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import org.lwjgl.opengl.GL11;
/**
*
* @author radioegor146
*/
public class SelfEnd extends Module {
private Vec3 distVec = null;
private Entity selectedEnt = null;
public SelfEnd() {
super(ModuleCategory.EHACKS);
}
private double size = 0;
@Override
public String getName() {
return "SelfEnd";
}
@Override
public String getDescription() {
return "Allows to teleport yourself";
}
@Override
public void onMouse(MouseEvent event) {
if (event.button == 2 && event.buttonstate) {
if (selectedEnt != null) {
Wrapper.INSTANCE.world().removeEntityFromWorld(-2);
selectedEnt = null;
distVec = null;
if (event.isCancelable()) {
event.setCanceled(true);
}
return;
}
selectedEnt = Wrapper.INSTANCE.player();
if (!(selectedEnt instanceof EntityFakePlayer)) {
if (selectedEnt != null) {
distVec = Wrapper.INSTANCE.mc().renderViewEntity.getLookVec().normalize();
size = 3f;
distVec.xCoord *= size;
distVec.yCoord *= size;
distVec.zCoord *= size;
if (event.isCancelable()) {
event.setCanceled(true);
}
} else {
distVec = null;
}
}
}
if (selectedEnt != null) {
if (event.dwheel > 0) {
size = Math.min(size + event.dwheel / 120f, 200f);
if (event.isCancelable()) {
event.setCanceled(true);
}
} else if (event.dwheel < 0) {
size = Math.max(size + event.dwheel / 120f, 1f);
if (event.isCancelable()) {
event.setCanceled(true);
}
}
}
if (distVec != null) {
distVec = Wrapper.INSTANCE.mc().renderViewEntity.getLookVec().normalize();
distVec.xCoord *= size;
distVec.yCoord *= size;
distVec.zCoord *= size;
}
if (event.button == 0) {
if (selectedEnt != null) {
tpEntity(selectedEnt, (int) Math.round(Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosX + distVec.xCoord), (int) Math.round(Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosY + distVec.yCoord - 2), (int) Math.round(Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosZ + distVec.zCoord));
selectedEnt = null;
distVec = null;
if (event.isCancelable()) {
event.setCanceled(true);
}
}
}
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
if (selectedEnt == null) {
return;
}
if (distVec != null) {
distVec = Wrapper.INSTANCE.mc().renderViewEntity.getLookVec().normalize();
distVec.xCoord *= size;
distVec.yCoord *= size;
distVec.zCoord *= size;
}
NBTTagCompound tag = new NBTTagCompound();
selectedEnt.writeToNBT(tag);
if (!GLUtils.hasClearedDepth) {
GL11.glClear(GL11.GL_DEPTH_BUFFER_BIT);
GLUtils.hasClearedDepth = true;
}
Entity ent = selectedEnt;
double tXPos = ent.posX;
double tYPos = ent.posY;
double tZPos = ent.posZ;
double xPos = (Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosX + distVec.xCoord) + (Wrapper.INSTANCE.mc().renderViewEntity.posX - Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosX) * event.partialTicks;
double yPos = (Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosY + distVec.yCoord + 1) + (Wrapper.INSTANCE.mc().renderViewEntity.posY - Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosY) * event.partialTicks;
double zPos = (Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosZ + distVec.zCoord) + (Wrapper.INSTANCE.mc().renderViewEntity.posZ - Wrapper.INSTANCE.mc().renderViewEntity.lastTickPosZ) * event.partialTicks;
ent.posX = ent.lastTickPosX = xPos;
ent.posY = ent.lastTickPosY = yPos;
ent.posZ = ent.lastTickPosZ = zPos;
float f1 = ent.prevRotationYaw + (ent.rotationYaw - ent.prevRotationYaw) * event.partialTicks;
RenderHelper.enableStandardItemLighting();
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240 / 1.0F, 240 / 1.0F);
if (Wrapper.INSTANCE.world().loadedEntityList.contains(selectedEnt)) {
GL11.glColor4f(0, 1.0F, 0, 1f);
} else {
GL11.glColor4f(1.0F, 0, 0, 1f);
}
RenderManager.instance.func_147939_a(ent, xPos - renderPosX, yPos - renderPosY, zPos - renderPosZ, f1, event.partialTicks, false);
ent.posX = ent.lastTickPosX = tXPos;
ent.posY = ent.lastTickPosY = tYPos;
ent.posZ = ent.lastTickPosZ = tZPos;
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240f, 240f);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
}
@Override
public void onTicks() {
}
public int getDeltaVal(String from, int absval) throws Exception {
if (from.equals("~")) {
return absval;
}
if (from.startsWith("~")) {
from = from.substring(1);
int tval = Integer.parseInt(from);
return tval + absval;
}
return Integer.parseInt(from);
}
@Override
public boolean onPacket(Object packet, Side side) {
if (packet instanceof C01PacketChatMessage) {
String text = ((C01PacketChatMessage) packet).func_149439_c().trim();
if (text.startsWith("/")) {
text = text.substring(1);
String[] params = text.split(" ");
if (params[0].equals("tp") && params.length == 4) {
try {
int x = getDeltaVal(params[1], (MathHelper.floor_double(Wrapper.INSTANCE.player().posX)));
int y = getDeltaVal(params[2], (MathHelper.floor_double(Wrapper.INSTANCE.player().posY)));
int z = getDeltaVal(params[3], (MathHelper.floor_double(Wrapper.INSTANCE.player().posZ)));
InteropUtils.log("Teleported by SelfEnd", this);
tpEntity(Wrapper.INSTANCE.player(), x, y - 2, z);
return false;
} catch (Exception e) {
}
}
if (params[0].equals("tp") && params.length == 5) {
if (params[1].equals(Wrapper.INSTANCE.player().getCommandSenderName())) {
try {
int x = getDeltaVal(params[2], (MathHelper.floor_double(Wrapper.INSTANCE.player().posX)));
int y = getDeltaVal(params[3], (MathHelper.floor_double(Wrapper.INSTANCE.player().posY)));
int z = getDeltaVal(params[4], (MathHelper.floor_double(Wrapper.INSTANCE.player().posZ)));
InteropUtils.log("Teleported by SelfEnd", this);
tpEntity(Wrapper.INSTANCE.player(), x, y - 2, z);
return false;
} catch (Exception e) {
}
}
for (EntityPlayer entPly : (List<EntityPlayer>) Wrapper.INSTANCE.world().playerEntities) {
if (params[1].equals(entPly.getCommandSenderName())) {
try {
int x = getDeltaVal(params[2], (MathHelper.floor_double(Wrapper.INSTANCE.player().posX)));
int y = getDeltaVal(params[3], (MathHelper.floor_double(Wrapper.INSTANCE.player().posY)));
int z = getDeltaVal(params[4], (MathHelper.floor_double(Wrapper.INSTANCE.player().posZ)));
InteropUtils.log("Teleported by SelfEnd", this);
tpEntity(entPly, x, y - 2, z);
return false;
} catch (Exception e) {
}
}
}
}
if (params[0].equals("tppos") && params.length == 4) {
try {
int x = getDeltaVal(params[1], (MathHelper.floor_double(Wrapper.INSTANCE.player().posX)));
int y = getDeltaVal(params[2], (MathHelper.floor_double(Wrapper.INSTANCE.player().posY)));
int z = getDeltaVal(params[3], (MathHelper.floor_double(Wrapper.INSTANCE.player().posZ)));
InteropUtils.log("Teleported by SelfEnd", this);
tpEntity(Wrapper.INSTANCE.player(), x, y - 2, z);
return false;
} catch (Exception e) {
}
}
}
}
return true;
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("crazypants.enderio.network.PacketHandler").getField("INSTANCE");
Class.forName("crazypants.enderio.api.teleport.TravelSource").getField("BLOCK");
Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getConstructor(Entity.class, Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE, Boolean.TYPE, Class.forName("crazypants.enderio.api.teleport.TravelSource"));
Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getDeclaredField("entityId");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
public void tpEntity(Entity ent, int x, int y, int z) {
try {
SimpleNetworkWrapper snw = (SimpleNetworkWrapper) Class.forName("crazypants.enderio.network.PacketHandler").getField("INSTANCE").get(null);
Object travelSource = Class.forName("crazypants.enderio.api.teleport.TravelSource").getField("BLOCK").get(null);
Object packet = Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getConstructor(Entity.class, Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE, Boolean.TYPE, Class.forName("crazypants.enderio.api.teleport.TravelSource")).newInstance(ent, x, y, z, 0, false, travelSource);
Field f = Class.forName("crazypants.enderio.teleport.packet.PacketTravelEvent").getDeclaredField("entityId");
f.setAccessible(true);
f.set(packet, ent.getEntityId());
snw.sendToServer((IMessage) packet);
} catch (Exception e) {
}
}
@Override
public String getModName() {
return "EnderIO";
}
}
| 12,297 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
HotGive.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/thermalexpansion/HotGive.java | package ehacks.mod.modulesystem.classes.mods.thermalexpansion;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.GiveKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Statics;
import ehacks.mod.wrapper.Wrapper;
import java.util.UUID;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import org.lwjgl.input.Keyboard;
public class HotGive
extends Module {
public HotGive() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "HotGive";
}
@Override
public String getDescription() {
return "You can fill TileCache with any itemstack\nUsage: \n Numpad0 - Perform action on container";
}
@Override
public void onModuleEnabled() {
try {
Class.forName("cofh.thermalexpansion.block.cache.TileCache");
Class.forName("cofh.core.network.PacketCoFHBase");
Class.forName("cofh.core.network.PacketHandler");
} catch (Exception ex) {
this.off();
}
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("cofh.thermalexpansion.block.cache.TileCache");
Class.forName("cofh.core.network.PacketCoFHBase");
Class.forName("cofh.core.network.PacketHandler");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
private boolean prevState = false;
@Override
public void onTicks() {
try {
boolean newState = Keyboard.isKeyDown(GiveKeybind.getKey());
if (newState && !prevState) {
prevState = newState;
MovingObjectPosition mop = Wrapper.INSTANCE.mc().objectMouseOver;
TileEntity entity = Wrapper.INSTANCE.world().getTileEntity(mop.blockX, mop.blockY, mop.blockZ);
if (entity != null && Class.forName("cofh.thermalexpansion.block.cache.TileCache").isInstance(entity)) {
setSlot(entity, Statics.STATIC_ITEMSTACK);
InteropUtils.log("Set", this);
}
}
prevState = newState;
} catch (Exception e) {
}
}
public void setSlot(TileEntity tileEntity, ItemStack itemstack) throws Exception {
Object packetTile = Class.forName("cofh.core.network.PacketTile").getConstructor(TileEntity.class).newInstance(tileEntity);
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addString", String.class).invoke(packetTile, "");
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addByte", Byte.TYPE).invoke(packetTile, (byte) 0);
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addUUID", UUID.class).invoke(packetTile, UUID.randomUUID());
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addString", String.class).invoke(packetTile, "");
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addBool", Boolean.TYPE).invoke(packetTile, true);
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addByte", Byte.TYPE).invoke(packetTile, (byte) 0);
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addBool", Boolean.TYPE).invoke(packetTile, true);
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addInt", Integer.TYPE).invoke(packetTile, 0);
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addByteArray", byte[].class).invoke(packetTile, new Object[]{new byte[6]});
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addByte", Byte.TYPE).invoke(packetTile, (byte) 0);
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addBool", Boolean.TYPE).invoke(packetTile, false);
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addItemStack", ItemStack.class).invoke(packetTile, itemstack);
Class.forName("cofh.core.network.PacketCoFHBase").getMethod("addInt", Integer.TYPE).invoke(packetTile, 1024);
Class.forName("cofh.core.network.PacketHandler").getMethod("sendToServer", Class.forName("cofh.core.network.PacketBase")).invoke(null, packetTile);
}
@Override
public String getModName() {
return "ThermalExpansion";
}
}
| 4,483 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
MetaHackAdd.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/ztones/MetaHackAdd.java | package ehacks.mod.modulesystem.classes.mods.ztones;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class MetaHackAdd extends Module {
public MetaHackAdd() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "MetaHackAdd";
}
@Override
public String getDescription() {
return "Allows you to add 1 to metadata of item";
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("com.riciJak.Ztones.network.ToggleMetaData");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleEnabled() {
try {
Class.forName("com.riciJak.Ztones.network.ToggleMetaData").getConstructor(Boolean.TYPE);
ByteBuf buf = Unpooled.buffer(0);
buf.writeInt(0);
buf.writeBoolean(true);
C17PacketCustomPayload packet = new C17PacketCustomPayload("Ztones", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
InteropUtils.log("Meta added", this);
this.off();
} catch (Exception ex) {
this.off();
}
}
@Override
public String getModName() {
return "ZTones";
}
}
| 1,603 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
MetaHackSub.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/mods/ztones/MetaHackSub.java | package ehacks.mod.modulesystem.classes.mods.ztones;
import ehacks.mod.api.ModStatus;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.network.play.client.C17PacketCustomPayload;
public class MetaHackSub extends Module {
public MetaHackSub() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "MetaHackSub";
}
@Override
public String getDescription() {
return "Allows you to subtract 1 to metadata of item";
}
@Override
public ModStatus getModStatus() {
try {
Class.forName("com.riciJak.Ztones.network.ToggleMetaData");
return ModStatus.WORKING;
} catch (Exception e) {
return ModStatus.NOTWORKING;
}
}
@Override
public void onModuleEnabled() {
try {
Class.forName("com.riciJak.Ztones.network.ToggleMetaData").getConstructor(Boolean.TYPE);
ByteBuf buf = Unpooled.buffer(0);
buf.writeInt(0);
buf.writeBoolean(false);
C17PacketCustomPayload packet = new C17PacketCustomPayload("Ztones", buf);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(packet);
InteropUtils.log("Meta subtracted", this);
this.off();
} catch (Exception ex) {
this.off();
}
}
@Override
public String getModName() {
return "ZTones";
}
}
| 1,614 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
OpenAE2ViewerKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/OpenAE2ViewerKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class OpenAE2ViewerKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_NUMPAD4;
public OpenAE2ViewerKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "Open AE2 cell viewer";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(OpenAE2ViewerKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,242 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
ShowGroupsKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/ShowGroupsKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class ShowGroupsKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_NUMPAD9;
public ShowGroupsKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "Show module groups";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(ShowGroupsKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,231 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
OpenNBTEditKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/OpenNBTEditKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class OpenNBTEditKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_NUMPAD7;
public OpenNBTEditKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "Open NBT Edit";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(OpenNBTEditKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,229 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
TickingDebugMeKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/TickingDebugMeKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class TickingDebugMeKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_NUMPAD5;
public TickingDebugMeKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "Every tick DebugMe run";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(TickingDebugMeKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,247 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
GiveKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/GiveKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class GiveKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_NUMPAD0;
public GiveKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "Give";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(GiveKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,199 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
MagnetKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/MagnetKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class MagnetKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_NUMPAD1;
public MagnetKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "Magnendo button";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(MagnetKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,216 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
HideCheatKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/HideCheatKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class HideCheatKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_NUMPAD8;
public HideCheatKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "Hide cheat";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(HideCheatKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,220 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
OpenConsoleKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/OpenConsoleKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class OpenConsoleKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_GRAVE;
public OpenConsoleKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "Open cheat console";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(OpenConsoleKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,232 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NEISelectKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/NEISelectKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class NEISelectKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_TAB;
public NEISelectKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "NEI Select";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(NEISelectKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,216 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
SingleDebugMeKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/SingleDebugMeKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class SingleDebugMeKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_NUMPAD6;
public SingleDebugMeKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "Single DebugMe run";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(SingleDebugMeKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,240 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
SelectPlayerKeybind.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/keybinds/SelectPlayerKeybind.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.keybinds;
import ehacks.mod.api.Module;
import ehacks.mod.api.ModuleController;
import ehacks.mod.wrapper.ModuleCategory;
import org.lwjgl.input.Keyboard;
/**
*
* @author radioegor146
*/
public class SelectPlayerKeybind extends Module {
private static final int DEFAULT_BUTTON = Keyboard.KEY_NUMPAD3;
public SelectPlayerKeybind() {
super(ModuleCategory.KEYBIND);
this.setKeybinding(DEFAULT_BUTTON);
}
@Override
public String getName() {
return "Select player";
}
@Override
public String getModName() {
return "Keybind";
}
@Override
public void onModuleEnabled() {
this.off();
}
public static int getKey() {
Module m = ModuleController.INSTANCE.call(SelectPlayerKeybind.class);
if (m == null) {
return DEFAULT_BUTTON;
} else {
return m.getKeybind();
}
}
@Override
public int getDefaultKeybind() {
return DEFAULT_BUTTON;
}
}
| 1,232 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
DebugMe.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/DebugMe.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.bsh.EvalError;
import ehacks.bsh.Interpreter;
import ehacks.mod.api.Module;
import ehacks.mod.modulesystem.classes.keybinds.SingleDebugMeKeybind;
import ehacks.mod.modulesystem.classes.keybinds.TickingDebugMeKeybind;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.util.OpenFileFilter;
import ehacks.mod.wrapper.ModuleCategory;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.swing.JFileChooser;
import org.lwjgl.input.Keyboard;
public class DebugMe
extends Module {
public static File scriptFile;
public static AtomicBoolean dialogOpened = new AtomicBoolean();
private boolean set = false;
private final Interpreter interpreter;
public DebugMe() {
super(ModuleCategory.EHACKS);
interpreter = new Interpreter();
}
@Override
public String getName() {
return "DebugMe";
}
@Override
public String getDescription() {
return "Opens dialog to select file for interactive BeanShell (c) N1nt3nd0\nUsage: \n Numpad5 - on/off ticking performing\n Numpad6 - single executing";
}
private boolean prevState = false;
private boolean prevState5 = false;
@Override
public void onTicks() {
if (dialogOpened.get()) {
return;
}
if (!dialogOpened.get() && scriptFile == null) {
this.off();
InteropUtils.log("Script load canceled", this);
return;
} else if (!set) {
InteropUtils.log("Script loaded: " + scriptFile.getPath(), this);
set = true;
}
boolean newState5 = Keyboard.isKeyDown(TickingDebugMeKeybind.getKey());
if (!prevState5 && newState5) {
InteropUtils.log("Script tick started", this);
}
if (!newState5 && prevState5) {
InteropUtils.log("Script tick stopped", this);
}
prevState5 = newState5;
if (newState5) {
try {
runScript();
} catch (Exception e) {
}
return;
}
boolean newState = Keyboard.isKeyDown(SingleDebugMeKeybind.getKey());
if (!prevState && newState) {
prevState = newState;
try {
InteropUtils.log("Script executed with result: \"" + runScript() + "\"", this);
} catch (Exception e) {
InteropUtils.log("Exception on eval: \"" + e.getMessage() + "\"", this);
}
return;
}
prevState = newState;
}
@Override
public void onModuleEnabled() {
dialogOpened.set(true);
Thread thread = new FileOpenThread();
thread.start();
}
@Override
public void onModuleDisabled() {
if (dialogOpened.get()) {
this.enabled = true;
} else {
set = false;
}
}
public class FileOpenThread extends Thread {
@Override
public void run() {
Dimension scr = Toolkit.getDefaultToolkit().getScreenSize();
JFileChooser fileopen = new JFileChooser();
fileopen.setFileFilter(new OpenFileFilter("bsh", "BSH files (*.bsh)"));
fileopen.setAcceptAllFileFilterUsed(false);
fileopen.setMultiSelectionEnabled(false);
fileopen.setPreferredSize(new Dimension(scr.width - 350, scr.height - 350));
if (fileopen.showOpenDialog(null) == 0) {
DebugMe.scriptFile = fileopen.getSelectedFile();
} else {
DebugMe.scriptFile = null;
}
dialogOpened.set(false);
}
}
@Override
public String getModName() {
return "Minecraft";
}
private String runScript() throws FileNotFoundException, EvalError {
Scanner sc = new Scanner(scriptFile);
String data = "";
while (sc.hasNextLine()) {
data = data + sc.nextLine() + "\n";
}
return String.valueOf(interpreter.eval(data));
}
}
| 4,206 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
DynamicFly.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/DynamicFly.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.config.CheatConfiguration;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
public class DynamicFly
extends Module {
public DynamicFly() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "DynamicFly";
}
@Override
public String getDescription() {
return "Dynamic fly mode";
}
@Override
public void onTicks() {
Wrapper.INSTANCE.player().jumpMovementFactor = 0.4f;
Wrapper.INSTANCE.player().motionX = 0.0;
Wrapper.INSTANCE.player().motionY = 0.0;
Wrapper.INSTANCE.player().motionZ = 0.0;
Wrapper.INSTANCE.player().jumpMovementFactor *= (float) CheatConfiguration.config.flyspeed * 3f;
if (Wrapper.INSTANCE.mcSettings().keyBindJump.getIsKeyPressed()) {
Wrapper.INSTANCE.player().motionY += CheatConfiguration.config.flyspeed;
}
if (Wrapper.INSTANCE.mcSettings().keyBindSneak.getIsKeyPressed()) {
Wrapper.INSTANCE.player().motionY -= CheatConfiguration.config.flyspeed;
}
Wrapper.INSTANCE.player().motionY -= 0.05;
}
}
| 1,252 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
HighJump.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/HighJump.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
public class HighJump
extends Module {
public HighJump() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "HighJump";
}
@Override
public String getDescription() {
return "Gives you Jump Boost 2 effect";
}
@Override
public void onModuleEnabled() {
Wrapper.INSTANCE.player().addPotionEffect(new PotionEffect(Potion.jump.getId(), 9999999, 2));
}
@Override
public void onModuleDisabled() {
Wrapper.INSTANCE.player().removePotionEffect(Potion.jump.getId());
}
}
| 830 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
TriggerBot.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/TriggerBot.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.util.Random;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
public class TriggerBot
extends Module {
public static boolean isActive = false;
private static final Random rand = new Random();
private static long lastMS;
public TriggerBot() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "TriggerBot";
}
@Override
public String getDescription() {
return "Automatically rightclicks an entity";
}
@Override
public void onModuleEnabled() {
isActive = true;
}
@Override
public void onModuleDisabled() {
isActive = false;
}
private static long getCurrentMS() {
return System.nanoTime() / 1000000L;
}
private static boolean hasReached(long milliseconds) {
return TriggerBot.getCurrentMS() - lastMS >= milliseconds;
}
@Override
public void reset() {
lastMS = TriggerBot.getCurrentMS();
}
private boolean isValidTarget(Entity e) {
return (!(e instanceof EntityPlayer)) && e instanceof EntityLivingBase;
}
@Override
public void onTicks() {
try {
if (Wrapper.INSTANCE.mc().objectMouseOver != null && Wrapper.INSTANCE.mc().objectMouseOver.entityHit != null && this.isValidTarget(Wrapper.INSTANCE.mc().objectMouseOver.entityHit) && TriggerBot.hasReached(150 + rand.nextInt(100))) {
if (Criticals.isActive && !Wrapper.INSTANCE.player().isInWater() && !Wrapper.INSTANCE.player().isInsideOfMaterial(Material.lava) && !Wrapper.INSTANCE.player().isInsideOfMaterial(Material.web) && Wrapper.INSTANCE.player().onGround) {
Wrapper.INSTANCE.player().motionY = 0.1;
Wrapper.INSTANCE.player().fallDistance = 0.1f;
Wrapper.INSTANCE.player().onGround = false;
}
if (AutoBlock.isActive && Wrapper.INSTANCE.player().getCurrentEquippedItem() != null && Wrapper.INSTANCE.player().getCurrentEquippedItem().getItem() instanceof ItemSword) {
ItemStack lel = Wrapper.INSTANCE.player().getCurrentEquippedItem();
lel.useItemRightClick(Wrapper.INSTANCE.world(), Wrapper.INSTANCE.player());
}
Wrapper.INSTANCE.player().swingItem();
Wrapper.INSTANCE.mc().playerController.attackEntity(Wrapper.INSTANCE.player(), Wrapper.INSTANCE.mc().objectMouseOver.entityHit);
this.reset();
}
} catch (Exception ex) {
}
}
}
| 2,939 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
DieCoordinates.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/DieCoordinates.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
public class DieCoordinates
extends Module {
private int countdown = 80;
public DieCoordinates() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "DieCoordinates";
}
@Override
public String getDescription() {
return "Show coordinates in chat when you die";
}
@Override
public void onTicks() {
if (Wrapper.INSTANCE.player().isDead && this.countdown == 1) {
this.countdown = (int) (8.0 * Math.random());
InteropUtils.log("Coordinates on death: x:" + (int) Wrapper.INSTANCE.player().posX + " y:" + (int) Wrapper.INSTANCE.player().posY + " z:" + (int) Wrapper.INSTANCE.player().posZ, this);
}
if (!Wrapper.INSTANCE.player().isDead) {
this.countdown = 1;
}
}
}
| 1,032 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
DiffRegistry.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/DiffRegistry.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.util.diffgui.EnchantmentsRegistry;
import ehacks.mod.util.diffgui.PotionsRegistry;
import ehacks.mod.wrapper.ModuleCategory;
public class DiffRegistry
extends Module {
private PotionsRegistry potionsGui;
private EnchantmentsRegistry enchantmentsGui;
public DiffRegistry() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "DiffRegistry";
}
@Override
public String getDescription() {
return "Get all registries";
}
@Override
public void onModuleEnabled() {
potionsGui = new PotionsRegistry();
potionsGui.setVisible(true);
enchantmentsGui = new EnchantmentsRegistry();
enchantmentsGui.setVisible(true);
}
@Override
public void onModuleDisabled() {
potionsGui.setVisible(false);
enchantmentsGui.setVisible(false);
}
}
| 991 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
AimAssist.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/AimAssist.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.config.AuraConfiguration;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.MovingObjectPosition;
public class AimAssist
extends Module {
public static boolean isActive = false;
private final double range = 3.8;
private EntityPlayer curtarget;
private final List<EntityPlayer> targetlist = new ArrayList<>();
public AimAssist() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "AimAssist";
}
@Override
public String getDescription() {
return "Helps you aim at a player";
}
@Override
public void onModuleEnabled() {
this.curtarget = null;
}
@Override
public void onTicks() {
Entity entity;
this.targetlist.clear();
Wrapper.INSTANCE.world().playerEntities.stream().filter((e) -> !(!this.isAttackable((Entity) e) || (AuraConfiguration.config.friends.contains(((Entity) e).getCommandSenderName())))).forEachOrdered((e) -> {
this.targetlist.add((EntityPlayer) e);
});
if (Wrapper.INSTANCE.mc().objectMouseOver == null) {
return;
}
if (Wrapper.INSTANCE.mc().objectMouseOver.typeOfHit == MovingObjectPosition.MovingObjectType.ENTITY && (entity = Wrapper.INSTANCE.mc().objectMouseOver.entityHit) instanceof EntityPlayer) {
this.curtarget = (EntityPlayer) entity;
return;
}
if (!this.targetlist.contains(this.curtarget) && this.curtarget != null) {
this.curtarget = null;
return;
}
Random r = new Random();
if (this.curtarget == null) {
return;
}
Wrapper.INSTANCE.player().rotationYaw = (float) (Wrapper.INSTANCE.player().rotationYaw - (Wrapper.INSTANCE.player().rotationYaw - this.getAngles(this.curtarget)[0]) * 0.5);
Wrapper.INSTANCE.player().rotationPitch = (float) (Wrapper.INSTANCE.player().rotationPitch - (Wrapper.INSTANCE.player().rotationPitch - this.getAngles(this.curtarget)[1]) * 0.5);
}
private float[] getAngles(Entity entity) {
float xDiff = (float) (entity.posX - Wrapper.INSTANCE.player().posX);
float yDiff = (float) (entity.boundingBox.minY + entity.getEyeHeight() - Wrapper.INSTANCE.player().boundingBox.maxY);
float zDiff = (float) (entity.posZ - Wrapper.INSTANCE.player().posZ);
float yaw = (float) (Math.atan2(zDiff, xDiff) * 180.0 / 3.141592653589793 - 90.0);
float pitch = (float) (-Math.toDegrees(Math.atan(yDiff / Math.sqrt(zDiff * zDiff + xDiff * xDiff))));
return new float[]{yaw, pitch};
}
private boolean isAttackable(Entity e) {
if (e == null) {
return false;
}
if (e instanceof EntityPlayer) {
EntityPlayer p2 = (EntityPlayer) e;
return !p2.isDead && !p2.isInvisible() && Wrapper.INSTANCE.player().getDistanceToEntity(p2) <= this.range && Wrapper.INSTANCE.player().canEntityBeSeen(p2) && p2 != Wrapper.INSTANCE.player();
}
return false;
}
}
| 3,371 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
GuiXRaySettings.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/GuiXRaySettings.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.gui.xraysettings.XRayGui;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
public class GuiXRaySettings
extends Module {
private final XRayGui gui = new XRayGui();
public GuiXRaySettings() {
super(ModuleCategory.NONE);
this.setKeybinding(65);
}
@Override
public String getName() {
return "GuiXRaySettings";
}
@Override
public void toggle() {
Wrapper.INSTANCE.mc().displayGuiScreen(this.gui);
}
@Override
public int getDefaultKeybind() {
return 65;
}
}
| 680 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
BlockOverlay.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/BlockOverlay.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MovingObjectPosition;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import org.lwjgl.opengl.GL11;
public class BlockOverlay
extends Module {
public BlockOverlay() {
super(ModuleCategory.RENDER);
}
@Override
public String getName() {
return "BlockOverlay";
}
@Override
public String getDescription() {
return "Shows AABB of selected block";
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
MovingObjectPosition position = Wrapper.INSTANCE.mc().objectMouseOver;
Block block = Wrapper.INSTANCE.world().getBlock(position.blockX, position.blockY, position.blockZ);
if (block.getMaterial() != Material.air) {
this.drawESP(0.0f);
}
}
private void drawESP(float f) {
Wrapper.INSTANCE.mc().entityRenderer.disableLightmap(f);
this.drawESP(Wrapper.INSTANCE.mc().objectMouseOver);
Wrapper.INSTANCE.mc().entityRenderer.enableLightmap(f);
}
private void drawESP(MovingObjectPosition position) {
GL11.glPushMatrix();
GL11.glEnable(3042);
GL11.glBlendFunc(770, 771);
GL11.glLineWidth(1.0f);
GL11.glDisable(2896);
GL11.glDisable(3553);
GL11.glEnable(2848);
GL11.glDisable(2929);
GL11.glDepthMask(false);
double blockX = RenderManager.renderPosX;
double blockY = RenderManager.renderPosY;
double blockZ = RenderManager.renderPosZ;
Block block = Wrapper.INSTANCE.world().getBlock(position.blockX, position.blockY, position.blockZ);
GL11.glColor4f(0.0f, 0.0f, 0.0f, 0.2f);
BlockOverlay.drawOutlinedBoundingBox(block.getSelectedBoundingBoxFromPool(Wrapper.INSTANCE.world(), position.blockX, position.blockY, position.blockZ).expand(0.002, 0.002, 0.002).getOffsetBoundingBox(-blockX, -blockY, -blockZ));
GL11.glColor4f(0.0f, 0.4f, 0.0f, 0.2f);
BlockOverlay.drawBoundingBox(block.getSelectedBoundingBoxFromPool(Wrapper.INSTANCE.world(), position.blockX, position.blockY, position.blockZ).expand(0.002, 0.002, 0.002).getOffsetBoundingBox(-blockX, -blockY, -blockZ));
GL11.glLineWidth(1.0f);
GL11.glDisable(2848);
GL11.glEnable(3553);
GL11.glEnable(2896);
GL11.glEnable(2929);
GL11.glDepthMask(true);
GL11.glDisable(3042);
GL11.glPopMatrix();
}
private static void drawOutlinedBoundingBox(AxisAlignedBB par1AxisAlignedBB) {
Tessellator var2 = Tessellator.instance;
var2.startDrawing(3);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.minY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.minY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.minY, par1AxisAlignedBB.maxZ);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.minY, par1AxisAlignedBB.maxZ);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.minY, par1AxisAlignedBB.minZ);
var2.draw();
var2.startDrawing(3);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.maxZ);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.maxZ);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.minZ);
var2.draw();
var2.startDrawing(1);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.minY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.minY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.minY, par1AxisAlignedBB.maxZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.maxZ);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.minY, par1AxisAlignedBB.maxZ);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.maxZ);
var2.draw();
var2.startDrawing(1);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.minY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.minY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.minZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.minY, par1AxisAlignedBB.maxZ);
var2.addVertex(par1AxisAlignedBB.maxX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.maxZ);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.minY, par1AxisAlignedBB.maxZ);
var2.addVertex(par1AxisAlignedBB.minX, par1AxisAlignedBB.maxY, par1AxisAlignedBB.maxZ);
var2.draw();
}
private static void drawBoundingBox(AxisAlignedBB axisalignedbb) {
Tessellator tessellator = Tessellator.instance;
tessellator.startDrawingQuads();
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.draw();
tessellator.startDrawingQuads();
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.draw();
tessellator.startDrawingQuads();
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.draw();
tessellator.startDrawingQuads();
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.draw();
tessellator.startDrawingQuads();
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.draw();
tessellator.startDrawingQuads();
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.minZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.maxY, axisalignedbb.maxZ);
tessellator.addVertex(axisalignedbb.maxX, axisalignedbb.minY, axisalignedbb.maxZ);
tessellator.draw();
}
}
| 10,591 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
WaterFall.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/WaterFall.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.resources.I18n;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement;
public class WaterFall
extends Module {
private int delay;
public WaterFall() {
super(ModuleCategory.NOCHEATPLUS);
}
@Override
public String getName() {
return "WaterFall";
}
@Override
public String getDescription() {
return "Automatically place water bucket on fall";
}
@Override
public void onTicks() {
if (Wrapper.INSTANCE.player().fallDistance >= 5.0f) {
this.switchToItem(I18n.format("item.bucketWater.name", (Object[]) new Object[0]));
Block blocks = Wrapper.INSTANCE.world().getBlock((int) Wrapper.INSTANCE.player().posX, (int) Wrapper.INSTANCE.player().posY - 3, (int) Wrapper.INSTANCE.player().posZ);
if (blocks.getMaterial() != Material.air && this.hasItem(I18n.format("item.bucketWater.name", (Object[]) new Object[0]))) {
this.useItem();
++this.delay;
if (this.delay >= 20) {
this.switchToItem(I18n.format("item.bucket.name", (Object[]) new Object[0]));
this.useItem();
this.delay = 0;
}
}
}
}
private void useItem() {
ItemStack item = Wrapper.INSTANCE.player().inventory.getCurrentItem();
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C03PacketPlayer.C05PacketPlayerLook(90.0f, 90.0f, false));
Wrapper.INSTANCE.mc().playerController.sendUseItem(Wrapper.INSTANCE.player(), Wrapper.INSTANCE.world(), item);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C08PacketPlayerBlockPlacement((int) Wrapper.INSTANCE.player().posX, Wrapper.INSTANCE.world().getHeightValue((int) Wrapper.INSTANCE.player().posX, (int) Wrapper.INSTANCE.player().posZ), (int) Wrapper.INSTANCE.player().posZ, -1, item, 0.0f, 0.0f, 0.0f));
}
private boolean hasItem(String blockTileName) {
for (int i = 36; i <= 44; ++i) {
if (!Wrapper.INSTANCE.player().inventoryContainer.getSlot(i).getHasStack() || !(Wrapper.INSTANCE.player().inventoryContainer.getSlot(i).getStack().getDisplayName()).equalsIgnoreCase(blockTileName)) {
continue;
}
return true;
}
return false;
}
private void switchToItem(String itemName) {
for (int i = 36; i <= 44; ++i) {
if (!Wrapper.INSTANCE.player().inventoryContainer.getSlot(i).getHasStack() || !(Wrapper.INSTANCE.player().inventoryContainer.getSlot(i).getStack().getDisplayName()).equalsIgnoreCase(itemName)) {
continue;
}
Wrapper.INSTANCE.player().inventory.currentItem = i - 36;
break;
}
}
}
| 3,154 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
AutoBlock.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/AutoBlock.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
public class AutoBlock
extends Module {
public static boolean isActive = false;
public AutoBlock() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "AutoBlock";
}
@Override
public String getDescription() {
return "Automatically blocks with sword";
}
@Override
public void onModuleEnabled() {
isActive = true;
}
@Override
public void onModuleDisabled() {
isActive = false;
}
@Override
public void onTicks() {
if (!(KillAura.isActive || MobAura.isActive || ProphuntAura.isActive || Forcefield.isActive || TriggerBot.isActive || !Wrapper.INSTANCE.mcSettings().keyBindAttack.getIsKeyPressed() || Wrapper.INSTANCE.player().getCurrentEquippedItem() == null || !(Wrapper.INSTANCE.player().getCurrentEquippedItem().getItem() instanceof ItemSword))) {
ItemStack lel = Wrapper.INSTANCE.player().getCurrentEquippedItem();
lel.useItemRightClick(Wrapper.INSTANCE.world(), Wrapper.INSTANCE.player());
}
}
}
| 1,320 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
XRay.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/XRay.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.gui.xraysettings.XRayBlock;
import ehacks.mod.util.GLUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.init.Blocks;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import org.lwjgl.opengl.GL11;
public class XRay
extends Module {
public static int radius = 45;
public static int displayListId = 0;
public static int cooldownTicks = 0;
public XRay() {
super(ModuleCategory.RENDER);
}
@Override
public String getName() {
return "X-Ray";
}
@Override
public String getDescription() {
return "XRay";
}
@Override
public void onModuleEnabled() {
cooldownTicks = 0;
}
@Override
public void onModuleDisabled() {
if (displayListId != 0) {
GL11.glDeleteLists(displayListId, 1);
}
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
if (Wrapper.INSTANCE.world() != null && displayListId != 0) {
double doubleX = RenderManager.renderPosX;
double doubleY = RenderManager.renderPosY;
double doubleZ = RenderManager.renderPosZ;
GL11.glPushMatrix();
GL11.glTranslated((-doubleX), (-doubleY), (-doubleZ));
GL11.glCallList(displayListId);
GL11.glPopMatrix();
}
}
@Override
public void onTicks() {
if (cooldownTicks < 1) {
this.compileDL();
cooldownTicks = 80;
}
--cooldownTicks;
}
private void compileDL() {
if (Wrapper.INSTANCE.world() != null && Wrapper.INSTANCE.player() != null) {
if (displayListId == 0) {
displayListId = GL11.glGenLists(5) + 3;
}
GL11.glNewList(displayListId, 4864);
GL11.glDisable(3553);
GL11.glDisable(2929);
GL11.glEnable(3042);
GL11.glBlendFunc(770, 771);
GL11.glBegin(1);
for (int i = (int) Wrapper.INSTANCE.player().posX - XRay.radius; i <= (int) Wrapper.INSTANCE.player().posX + radius; ++i) {
for (int j = (int) Wrapper.INSTANCE.player().posZ - XRay.radius; j <= (int) Wrapper.INSTANCE.player().posZ + radius; ++j) {
int height = Wrapper.INSTANCE.world().getHeightValue(i, j);
block2:
for (int k = 0; k <= height; ++k) {
Block bId = Wrapper.INSTANCE.world().getBlock(i, k, j);
if (bId == Blocks.air || bId == Blocks.stone) {
continue;
}
for (Object block2 : XRayBlock.blocks) {
XRayBlock block = (XRayBlock) block2;
if (!block.enabled || (Block.blockRegistry.getObject(block.id)) != bId || block.meta != -1 && block.meta != Wrapper.INSTANCE.world().getBlockMetadata(i, k, j)) {
continue;
}
GLUtils.renderBlock(i, k, j, block);
continue block2;
}
}
}
}
GL11.glEnd();
GL11.glEnable(2929);
GL11.glDisable(3042);
GL11.glEnable(3553);
GL11.glEndList();
}
}
}
| 3,610 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
ChestStealer.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/ChestStealer.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.client.gui.inventory.GuiChest;
import net.minecraft.inventory.Container;
public class ChestStealer
extends Module {
private int delay = 0;
public ChestStealer() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "ChestStealer";
}
@Override
public String getDescription() {
return "Steals all stuff from vanilla chest";
}
@Override
public void onTicks() {
if (!Wrapper.INSTANCE.mc().inGameHasFocus && Wrapper.INSTANCE.mc().currentScreen instanceof GuiChest) {
if (!this.isContainerEmpty(Wrapper.INSTANCE.player().openContainer)) {
int slotId = this.getNextSlotInContainer(Wrapper.INSTANCE.player().openContainer);
if (this.delay >= 5) {
Wrapper.INSTANCE.mc().playerController.windowClick(Wrapper.INSTANCE.player().openContainer.windowId, slotId, 0, 1, Wrapper.INSTANCE.player());
this.delay = 0;
}
++this.delay;
} else {
Wrapper.INSTANCE.player().closeScreen();
}
}
}
private int getNextSlotInContainer(Container container) {
int slotAmount;
int n = slotAmount = container.inventorySlots.size() == 90 ? 54 : 27;
for (int i = 0; i < slotAmount; ++i) {
if (container.getInventory().get(i) == null) {
continue;
}
return i;
}
return -1;
}
private boolean isContainerEmpty(Container container) {
int slotAmount;
int n = slotAmount = container.inventorySlots.size() == 90 ? 54 : 27;
for (int i = 0; i < slotAmount; ++i) {
if (!container.getSlot(i).getHasStack()) {
continue;
}
return false;
}
return true;
}
}
| 2,067 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
FastClick.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/FastClick.java | package ehacks.mod.modulesystem.classes.vanilla;
import cpw.mods.fml.relauncher.ReflectionHelper;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Method;
import net.minecraft.client.Minecraft;
public class FastClick
extends Module {
public FastClick() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "FastClick";
}
@Override
public String getDescription() {
return "Makes you click very fast";
}
@Override
public void onTicks() {
if (Wrapper.INSTANCE.mcSettings().keyBindAttack.getIsKeyPressed()) {
try {
Method m = ReflectionHelper.findMethod(Minecraft.class, Wrapper.INSTANCE.mc(), new String[]{"func_147116_af"}, (Class[]) null);
m.invoke(Wrapper.INSTANCE.mc());
} catch (Exception e) {
}
}
}
}
| 977 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NameProtect.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/NameProtect.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
public class NameProtect
extends Module {
public static boolean isActive = false;
public NameProtect() {
super(ModuleCategory.RENDER);
}
@Override
public String getName() {
return "NameProtect";
}
@Override
public void onModuleEnabled() {
isActive = true;
}
@Override
public void onModuleDisabled() {
isActive = false;
}
}
| 539 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
PlayerESP.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/PlayerESP.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.util.GLUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.util.List;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.entity.RenderManager;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosX;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosY;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosZ;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import org.lwjgl.opengl.GL11;
public class PlayerESP
extends Module {
public PlayerESP() {
super(ModuleCategory.RENDER);
}
@Override
public String getName() {
return "PlayerESP";
}
@Override
public String getDescription() {
return "Allows you to see all of the players around you";
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
if (!GLUtils.hasClearedDepth) {
GL11.glClear(GL11.GL_DEPTH_BUFFER_BIT);
GLUtils.hasClearedDepth = true;
}
@SuppressWarnings("unchecked")
List<Entity> entities = Wrapper.INSTANCE.world().loadedEntityList;
entities.stream().filter((ent) -> !(!(ent instanceof EntityPlayer))).filter((ent) -> !(ent == Wrapper.INSTANCE.player())).filter((ent) -> !(!ent.isInRangeToRender3d(Wrapper.INSTANCE.mc().renderViewEntity.getPosition(event.partialTicks).xCoord, Wrapper.INSTANCE.mc().renderViewEntity.getPosition(event.partialTicks).yCoord, Wrapper.INSTANCE.mc().renderViewEntity.getPosition(event.partialTicks).zCoord) || ent == Wrapper.INSTANCE.mc().renderViewEntity && Wrapper.INSTANCE.mcSettings().thirdPersonView == 0 && !Wrapper.INSTANCE.mc().renderViewEntity.isPlayerSleeping())).forEachOrdered((ent) -> {
double xPos = ent.lastTickPosX + (ent.posX - ent.lastTickPosX) * event.partialTicks;
double yPos = ent.lastTickPosY + (ent.posY - ent.lastTickPosY) * event.partialTicks;
double zPos = ent.lastTickPosZ + (ent.posZ - ent.lastTickPosZ) * event.partialTicks;
float f1 = ent.prevRotationYaw + (ent.rotationYaw - ent.prevRotationYaw) * event.partialTicks;
RenderHelper.enableStandardItemLighting();
//RenderManager.instance.renderEntitySimple(ent, event.partialTicks);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240 / 1.0F, 240 / 1.0F);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
RenderManager.instance.func_147939_a(ent, xPos - renderPosX, yPos - renderPosY, zPos - renderPosZ, f1, event.partialTicks, false);
});
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240f, 240f);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glDisable(GL11.GL_LIGHTING);
Wrapper.INSTANCE.world().loadedEntityList.stream().map((o) -> (Entity) o).filter((entObj) -> !(!(entObj instanceof EntityPlayer))).filter((entObj) -> !(entObj == Wrapper.INSTANCE.player())).map((entObj) -> (EntityLivingBase) entObj).map((ent) -> {
float labelScale = 0.04F;
GL11.glPushMatrix();
GL11.glEnable(GL11.GL_DEPTH_TEST);
GL11.glDepthMask(true);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
//GL11.glDisable(GL11.GL_DEPTH_TEST);
//GL11.glDepthMask(false);
EntityLivingBase entity = (EntityLivingBase) ent;
double xPos = entity.lastTickPosX + (entity.posX - entity.lastTickPosX) * event.partialTicks;
double yPos = entity.lastTickPosY + (entity.posY - entity.lastTickPosY) * event.partialTicks;
double zPos = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ) * event.partialTicks;
double xEnd = xPos - RenderManager.renderPosX;
double yEnd = yPos + entity.height / 2 - RenderManager.renderPosY;
double zEnd = zPos - RenderManager.renderPosZ;
GL11.glTranslatef((float) xEnd, (float) yEnd + entity.height / 2 + .8f, (float) zEnd);
GL11.glRotatef(-RenderManager.instance.playerViewY, 0, 1, 0);
GL11.glRotatef(RenderManager.instance.playerViewX, 1, 0, 0);
GL11.glScalef(-labelScale, -labelScale, labelScale);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240f, 240f);
return ent;
}).map((ent) -> {
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
return ent;
}).map((ent) -> {
GLUtils.drawRect(-26f, -1f, 26f, 12f, GLUtils.getColor(255, 64, 64, 64));
return ent;
}).map((ent) -> {
GL11.glTranslatef(0f, 0f, -0.1f);
return ent;
}).map((ent1) -> {
EntityLivingBase ent = (EntityLivingBase) ent1;
GLUtils.drawRect(-25f, 6f, -25f + (50f * ent.getHealth() / ent.getMaxHealth()), 11f, GLUtils.getColor(255, 0, 255, 0));
return ent;
}).map((ent1) -> {
EntityLivingBase ent = (EntityLivingBase) ent1;
GLUtils.drawRect(-25f + (50f * ent.getHealth() / ent.getMaxHealth()), 6f, 25f, 11f, GLUtils.getColor(255, 255, 0, 0));
return ent;
}).map((ent) -> {
GL11.glScalef(Wrapper.INSTANCE.fontRenderer().FONT_HEIGHT / 17f, Wrapper.INSTANCE.fontRenderer().FONT_HEIGHT / 17f, 1f);
return ent;
}).map((ent) -> {
GL11.glTranslatef(0f, 0f, -0.1f);
return ent;
}).map((ent1) -> {
EntityLivingBase ent = (EntityLivingBase) ent1;
Wrapper.INSTANCE.fontRenderer().drawString(String.format("%.2f", Math.round(ent.getHealth() * 100) / 100f), -Wrapper.INSTANCE.fontRenderer().getStringWidth(String.format("%.2f", Math.round(ent.getHealth() * 100) / 100f)) / 2, 12, GLUtils.getColor(255, 255, 255, 255), true);
return ent;
}).map((ent1) -> {
EntityLivingBase ent = (EntityLivingBase) ent1;
Wrapper.INSTANCE.fontRenderer().drawString(String.valueOf(ent.getCommandSenderName()), -47, 1, GLUtils.getColor(255, 255, 255, 255), true);
return ent;
}).forEachOrdered((_item) -> {
GL11.glPopMatrix();
});
}
}
| 6,587 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
Fly.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/Fly.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
public class Fly
extends Module {
public static float FLY_SPEED = 0.05f;
public Fly() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "Fly";
}
@Override
public String getDescription() {
return "I believe I can fly (8)~";
}
@Override
public void onModuleEnabled() {
Wrapper.INSTANCE.player().capabilities.setFlySpeed(FLY_SPEED);
Wrapper.INSTANCE.player().capabilities.isFlying = true;
}
@Override
public void onModuleDisabled() {
Wrapper.INSTANCE.player().capabilities.isFlying = false;
}
@Override
public void onTicks() {
Wrapper.INSTANCE.player().capabilities.isFlying = true;
}
}
| 912 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NCPSpeed.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/NCPSpeed.java | package ehacks.mod.modulesystem.classes.vanilla;
import cpw.mods.fml.relauncher.ReflectionHelper;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import ehacks.mod.wrapper.Wrapper;
import ehacks.mod.util.Mappings;
import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemFood;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Timer;
public class NCPSpeed
extends Module {
private final double motionSpeed = 3.14;
private final float timerSpeed = 1.1f;
private final boolean iceSpeed = true;
private float ground = 0.0f;
private int motionDelay;
private boolean canStep;
public NCPSpeed() {
super(ModuleCategory.NOCHEATPLUS);
}
@Override
public String getName() {
return "NCPSpeed";
}
@Override
public String getDescription() {
return "Speed from NoCheatPlus";
}
@Override
public void onTicks() {
boolean using = Wrapper.INSTANCE.player().isUsingItem() && Wrapper.INSTANCE.player().getCurrentEquippedItem().getItem() instanceof ItemFood;
double speed = this.motionSpeed;
double slow = 1.458;
double offset = 4.7;
float timer = this.timerSpeed;
boolean shouldOffset = true;
this.canStep = false;
for (Object o : Wrapper.INSTANCE.world().getCollidingBoundingBoxes(Wrapper.INSTANCE.player(), Wrapper.INSTANCE.player().boundingBox.copy().offset(Wrapper.INSTANCE.player().motionX / offset, 0.0, Wrapper.INSTANCE.player().motionZ / offset))) {
if (!(o instanceof AxisAlignedBB)) {
continue;
}
shouldOffset = false;
break;
}
if (Wrapper.INSTANCE.mcSettings().keyBindForward.isPressed() || Wrapper.INSTANCE.mcSettings().keyBindBack.isPressed() || Wrapper.INSTANCE.mcSettings().keyBindLeft.isPressed() || Wrapper.INSTANCE.mcSettings().keyBindRight.isPressed()) {
if (Wrapper.INSTANCE.player().onGround && this.ground < 1.0f) {
this.ground += 0.2f;
}
if (!Wrapper.INSTANCE.player().onGround) {
this.ground = 0.0f;
}
if (this.ground == 1.0f) {
if (!Wrapper.INSTANCE.player().isSprinting()) {
offset += 0.8;
}
if (Wrapper.INSTANCE.player().moveStrafing != 0.0f) {
speed -= 0.1;
offset += 0.5;
}
if (Wrapper.INSTANCE.player().isInWater()) {
speed -= 0.1;
}
++this.motionDelay;
switch (this.motionDelay) {
case 1:
{
Timer timerInstance = (Timer) ReflectionHelper.getPrivateValue(Minecraft.class, Wrapper.INSTANCE.mc(), new String[]{Mappings.timer});
timerInstance.timerSpeed = timer;
}
Wrapper.INSTANCE.player().motionX *= speed;
Wrapper.INSTANCE.player().motionZ *= speed;
this.canStep = false;
break;
case 2:
Wrapper.INSTANCE.player().motionX /= slow;
Wrapper.INSTANCE.player().motionZ /= slow;
this.canStep = true;
break;
case 3:
if (timer > 1.05) {
Timer timerInstance = (Timer) ReflectionHelper.getPrivateValue(Minecraft.class, Wrapper.INSTANCE.mc(), new String[]{Mappings.timer});
timerInstance.timerSpeed = 1.05f;
}
this.canStep = true;
break;
case 4:
if (shouldOffset) {
Wrapper.INSTANCE.player().setPosition(Wrapper.INSTANCE.player().posX + Wrapper.INSTANCE.player().motionX / offset, Wrapper.INSTANCE.player().posY, Wrapper.INSTANCE.player().posZ + Wrapper.INSTANCE.player().motionZ / offset);
this.canStep = false;
}
this.motionDelay = 0;
break;
default:
break;
}
}
}
}
}
| 4,468 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
Regen.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/Regen.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.network.play.client.C03PacketPlayer;
public class Regen
extends Module {
public Regen() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "Regen";
}
@Override
public String getDescription() {
return "Regenerates you";
}
@Override
public void onTicks() {
boolean shouldHeal;
if (!Wrapper.INSTANCE.player().onGround) {
return;
}
boolean canHeal = Wrapper.INSTANCE.player().onGround || Wrapper.INSTANCE.player().isInWater() || Wrapper.INSTANCE.player().isOnLadder();
shouldHeal = Wrapper.INSTANCE.player().getHealth() <= 18.5f && Wrapper.INSTANCE.player().getFoodStats().getFoodLevel() > 8;
if (canHeal && shouldHeal) {
for (int i = 0; i < 1000; ++i) {
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C03PacketPlayer(false));
}
}
}
}
| 1,132 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
EntityESP.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/EntityESP.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.util.List;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.entity.RenderManager;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosX;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosY;
import static net.minecraft.client.renderer.entity.RenderManager.renderPosZ;
import net.minecraft.entity.Entity;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import org.lwjgl.opengl.GL11;
public class EntityESP
extends Module {
public EntityESP() {
super(ModuleCategory.RENDER);
}
@Override
public String getName() {
return "EntityESP";
}
@Override
public String getDescription() {
return "Shows all entities";
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
GL11.glClear(GL11.GL_DEPTH_BUFFER_BIT);
//GL11.glEnable(GL11.GL_BLEND);
GL11.glPushMatrix();
//RenderHelper.enableStandardItemLighting();
@SuppressWarnings("unchecked")
List<Entity> entities = Wrapper.INSTANCE.world().loadedEntityList;
entities.stream().filter((ent) -> !(!ent.isInRangeToRender3d(Wrapper.INSTANCE.mc().renderViewEntity.getPosition(event.partialTicks).xCoord, Wrapper.INSTANCE.mc().renderViewEntity.getPosition(event.partialTicks).yCoord, Wrapper.INSTANCE.mc().renderViewEntity.getPosition(event.partialTicks).zCoord) || ent == Wrapper.INSTANCE.mc().renderViewEntity && Wrapper.INSTANCE.mcSettings().thirdPersonView == 0 && !Wrapper.INSTANCE.mc().renderViewEntity.isPlayerSleeping())).forEachOrdered((ent) -> {
double xPos = ent.lastTickPosX + (ent.posX - ent.lastTickPosX) * event.partialTicks;
double yPos = ent.lastTickPosY + (ent.posY - ent.lastTickPosY) * event.partialTicks;
double zPos = ent.lastTickPosZ + (ent.posZ - ent.lastTickPosZ) * event.partialTicks;
float f1 = ent.prevRotationYaw + (ent.rotationYaw - ent.prevRotationYaw) * event.partialTicks;
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240 / 1.0F, 240 / 1.0F);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
RenderManager.instance.func_147939_a(ent, xPos - renderPosX, yPos - renderPosY, zPos - renderPosZ, f1, event.partialTicks, false);
});
//RenderHelper.disableStandardItemLighting();
GL11.glPopMatrix();
//GL11.glDisable(GL11.GL_BLEND);
Wrapper.INSTANCE.world().loadedEntityList.stream().map((o) -> (Entity) o).map((ent) -> {
String text = ent.getClass().getName();
return ent;
}).map((ent) -> {
Entity entity = (Entity) ent;
float labelScale = 0.08F;
GL11.glPushMatrix();
GL11.glEnable(GL11.GL_BLEND);
GL11.glDisable(GL11.GL_DEPTH_TEST);
GL11.glDepthMask(false);
double xPos = entity.lastTickPosX + (entity.posX - entity.lastTickPosX) * event.partialTicks;
double yPos = entity.lastTickPosY + (entity.posY - entity.lastTickPosY) * event.partialTicks;
double zPos = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ) * event.partialTicks;
double xEnd = xPos - RenderManager.renderPosX;
double yEnd = yPos + entity.height / 2 - RenderManager.renderPosY;
double zEnd = zPos - RenderManager.renderPosZ;
GL11.glTranslatef((float) xEnd, (float) yEnd + entity.height + 0.5F, (float) zEnd);
GL11.glRotatef(-RenderManager.instance.playerViewY, 0, 1, 0);
GL11.glRotatef(RenderManager.instance.playerViewX, 1, 0, 0);
GL11.glScalef(-labelScale, -labelScale, labelScale);
Wrapper.INSTANCE.fontRenderer().drawString(ent.getClass().getSimpleName(), -Wrapper.INSTANCE.fontRenderer().getStringWidth(ent.getClass().getSimpleName()) / 2, 0, 0xFFFFFFFF, true);
return ent;
}).map((_item) -> {
GL11.glDepthMask(true);
return _item;
}).map((_item) -> {
GL11.glEnable(GL11.GL_DEPTH_TEST);
return _item;
}).map((_item) -> {
GL11.glDisable(GL11.GL_BLEND);
return _item;
}).forEachOrdered((_item) -> {
GL11.glPopMatrix();
}); //
}
}
| 4,495 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
Tracers.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/Tracers.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.util.EntityFakePlayer;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import org.lwjgl.opengl.GL11;
public class Tracers
extends Module {
public Tracers() {
super(ModuleCategory.RENDER);
}
@Override
public String getName() {
return "Tracers";
}
@Override
public String getDescription() {
return "Traces a line to the players in MP";
}
@Override
public void onModuleDisabled() {
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
try {
GL11.glBlendFunc(770, 771);
GL11.glEnable(3042);
GL11.glLineWidth(2.0f);
GL11.glDisable(3553);
GL11.glDisable(2929);
GL11.glDepthMask(false);
Wrapper.INSTANCE.world().loadedEntityList.stream().filter((entities) -> !(entities == Wrapper.INSTANCE.player() || !(entities instanceof EntityPlayer) || (entities instanceof EntityFakePlayer) || ((Entity) entities).isDead || ((EntityPlayer) entities).isInvisible())).map((entities) -> (EntityPlayer) entities).map((entity1) -> {
Entity entity = (Entity) entity1;
float distance = Wrapper.INSTANCE.mc().renderViewEntity.getDistanceToEntity(entity);
double posX = entity.posX - RenderManager.renderPosX;
double posY = entity.posY + (entity.height / 2.0f) - RenderManager.renderPosY;
double posZ = entity.posZ - RenderManager.renderPosZ;
String playerName = Wrapper.INSTANCE.player().getGameProfile().getName();
if (distance <= 6.0f) {
GL11.glColor3f(1.0f, 0.0f, 0.0f);
} else if (distance <= 96.0f) {
GL11.glColor3f(1.0f, (distance / 100.0f), 0.0f);
} else if (distance > 96.0f) {
GL11.glColor3f(0.1f, 0.6f, 255.0f);
}
GL11.glBegin(1);
GL11.glVertex3d(0.0, 0.0, 0.0);
GL11.glVertex3d(posX, posY, posZ);
return entity;
}).forEachOrdered((_item) -> {
GL11.glEnd();
});
GL11.glEnable(3553);
GL11.glEnable(2929);
GL11.glDepthMask(true);
GL11.glDisable(3042);
} catch (Exception exception) {
// empty catch block
}
}
}
| 2,726 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
CreativeFly.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/CreativeFly.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.PacketHandler.Side;
import ehacks.mod.wrapper.Wrapper;
public class CreativeFly
extends Module {
public CreativeFly() {
super(ModuleCategory.PLAYER);
this.setKeybinding(19);
}
@Override
public String getName() {
return "CreativeFly";
}
@Override
public String getDescription() {
return "Fly like in creative mode";
}
@Override
public void onModuleEnabled() {
}
@Override
public void onTicks() {
if (Wrapper.INSTANCE.player() != null && !Wrapper.INSTANCE.player().capabilities.isCreativeMode) {
Wrapper.INSTANCE.player().capabilities.allowFlying = true;
}
}
@Override
public void onModuleDisabled() {
if (Wrapper.INSTANCE.player() != null && !Wrapper.INSTANCE.player().capabilities.isCreativeMode) {
Wrapper.INSTANCE.player().capabilities.allowFlying = false;
}
}
@Override
public boolean onPacket(Object packet, Side side) {
return !(packet instanceof net.minecraft.network.play.client.C13PacketPlayerAbilities);
}
@Override
public int getDefaultKeybind() {
return 19;
}
}
| 1,335 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
FriendClick.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/FriendClick.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.config.AuraConfiguration;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.MovingObjectPosition;
import org.lwjgl.input.Mouse;
/**
*
* @author radioegor146
*/
public class FriendClick extends Module {
public FriendClick() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "FriendClick";
}
@Override
public String getDescription() {
return "You can add and remove friends by clicking on them";
}
public boolean prevState = false;
@Override
public void onTicks() {
try {
MovingObjectPosition position = Wrapper.INSTANCE.mc().objectMouseOver;
boolean nowState = Mouse.isButtonDown(0);
if (position.entityHit != null && nowState && !prevState) {
if (position.entityHit instanceof EntityPlayer) {
if (AuraConfiguration.config.friends.contains(position.entityHit.getCommandSenderName())) {
AuraConfiguration.config.friends.remove(position.entityHit.getCommandSenderName());
InteropUtils.log("Player " + position.entityHit.getCommandSenderName() + " was removed from aura friend list", this);
} else {
AuraConfiguration.config.friends.add(position.entityHit.getCommandSenderName());
InteropUtils.log("Player " + position.entityHit.getCommandSenderName() + " was added to aura friend list", this);
}
}
}
prevState = nowState;
} catch (Exception ignored) {
}
}
}
| 2,058 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
AimBot.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/AimBot.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.config.AuraConfiguration;
import ehacks.mod.config.CheatConfiguration;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.MathHelper;
public class AimBot
extends Module {
public static boolean isActive = false;
private static final long time = 0L;
public AimBot() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "AimBot";
}
@Override
public String getDescription() {
return "Automatically points towards player";
}
@Override
public void onModuleEnabled() {
isActive = true;
}
@Override
public void onModuleDisabled() {
isActive = false;
}
public static void faceEntity(Entity e) {
double x = e.posX - Wrapper.INSTANCE.player().posX;
double y = e.posY - Wrapper.INSTANCE.player().posY;
double z = e.posZ - Wrapper.INSTANCE.player().posZ;
double d1 = Wrapper.INSTANCE.player().posY + Wrapper.INSTANCE.player().getEyeHeight() - (e.posY + e.getEyeHeight());
double d3 = MathHelper.sqrt_double((x * x + z * z));
float f = (float) (Math.atan2(z, x) * 180.0 / 3.141592653589793) - 90.0f;
float f1 = (float) (-Math.atan2(d1, d3) * 180.0 / 3.141592653589793);
Wrapper.INSTANCE.player().setPositionAndRotation(Wrapper.INSTANCE.player().posX, Wrapper.INSTANCE.player().posY, Wrapper.INSTANCE.player().posZ, f, -f1);
}
@Override
public void onTicks() {
block3:
{
try {
if (KillAura.isActive || MobAura.isActive || ProphuntAura.isActive) {
break block3;
}
for (Object o : Wrapper.INSTANCE.world().loadedEntityList) {
EntityPlayer e;
if (!(o instanceof EntityPlayer) || (e = (EntityPlayer) o) instanceof EntityPlayerSP || Wrapper.INSTANCE.player().getDistanceToEntity(e) > CheatConfiguration.config.aimbotdistance || e.isDead || !Wrapper.INSTANCE.player().canEntityBeSeen(e) || !e.isEntityAlive() || e.isDead || AuraConfiguration.config.friends.contains(e.getCommandSenderName())) {
continue;
}
AimBot.faceEntity(e);
break;
}
} catch (Exception ex) {
}
}
}
}
| 2,633 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
FreezeCam.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/FreezeCam.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.util.EntityFakePlayer;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.entity.Entity;
public class FreezeCam
extends Module {
LocationHelper location;
public FreezeCam() {
super(ModuleCategory.RENDER);
}
@Override
public String getName() {
return "FreezeCam";
}
@Override
public String getDescription() {
return "Freeze the player camera for do a control of the PJ from another entity. Useful for make videos";
}
@Override
public void onModuleEnabled() {
this.doFreezeCam();
}
@Override
public void onModuleDisabled() {
this.undoFreezeCam();
}
public void doFreezeCam() {
if (Wrapper.INSTANCE.world() != null) {
this.location = new LocationHelper(Wrapper.INSTANCE.player());
EntityFakePlayer spectator = new EntityFakePlayer(Wrapper.INSTANCE.world(), Wrapper.INSTANCE.player().getGameProfile());
spectator.setPositionAndRotation(this.location.posX, this.location.posY - 1.5, this.location.posZ, this.location.rotationYaw, this.location.rotationPitch);
spectator.inventory.copyInventory(Wrapper.INSTANCE.player().inventory);
Wrapper.INSTANCE.world().addEntityToWorld(-1, spectator);
Wrapper.INSTANCE.mc().renderViewEntity = spectator;
}
}
public void undoFreezeCam() {
Wrapper.INSTANCE.world().removeEntityFromWorld(-1);
Wrapper.INSTANCE.mc().renderViewEntity = Wrapper.INSTANCE.player();
}
class LocationHelper implements Cloneable {
public double posX;
public double posY;
public double posZ;
public float rotationYaw;
public float rotationPitch;
public String name;
@Override
public LocationHelper clone() throws CloneNotSupportedException {
return new LocationHelper(this.posX, this.posY, this.posZ, this.rotationYaw, this.rotationPitch, this.name);
}
public LocationHelper(Entity entity) {
this(entity, "");
}
public LocationHelper(Entity entity, String s) {
this(entity.posX, entity.posY, entity.posZ, entity.rotationYaw, entity.rotationPitch, s);
}
public LocationHelper() {
this(0.0, 0.0, 0.0, 0.0f, 0.0f, "");
}
public LocationHelper(double d, double d1, double d2, String s) {
this(d, d1, d2, 0.0f, 0.0f, s);
}
public LocationHelper(double d, double d1, double d2) {
this(d, d1, d2, 0.0f, 0.0f, "");
}
public LocationHelper(double d, double d1, double d2, float f, float f1) {
this(d, d1, d2, f, f1, "");
}
public LocationHelper(double d, double d1, double d2, float f, float f1, String s) {
this.posX = d;
this.posY = d1;
this.posZ = d2;
this.rotationYaw = f;
this.rotationPitch = f1;
this.name = s;
}
public double distance(LocationHelper Location) {
return Math.sqrt(this.distanceSquare(Location));
}
public double distanceSquare(LocationHelper Location) {
double d = Location.posX - this.posX;
double d1 = Location.posY - this.posY;
double d2 = Location.posZ - this.posZ;
return d * d + d1 * d1 + d2 * d2;
}
public double distance2D(LocationHelper Location) {
return Math.sqrt(this.distance2DSquare(Location));
}
public double distance2DSquare(LocationHelper Location) {
double d = Location.posX - this.posX;
double d1 = Location.posZ - this.posZ;
return d * d + d1 * d1;
}
public double distanceY(LocationHelper Location) {
return Location.posY - this.posY;
}
public LocationHelper(String s) throws Exception {
String[] as = s.split(";", 6);
if (as.length != 6) {
throw new Exception("Invalid line!");
}
this.name = as[5];
this.posX = Double.parseDouble(as[0]);
this.posY = Double.parseDouble(as[1]);
this.posZ = Double.parseDouble(as[2]);
this.rotationYaw = Float.parseFloat(as[3]);
this.rotationPitch = Float.parseFloat(as[4]);
}
public String export() {
return "" + this.posX + ";" + this.posY + ";" + this.posZ + ";" + this.rotationYaw + ";" + this.rotationPitch + ";" + this.name;
}
}
}
| 4,725 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
Criticals.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/Criticals.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
public class Criticals
extends Module {
public static boolean isActive = false;
public Criticals() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "Criticals";
}
@Override
public String getDescription() {
return "Jumps on left click";
}
@Override
public void onModuleEnabled() {
isActive = true;
}
@Override
public void onModuleDisabled() {
isActive = false;
}
}
| 629 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
AntiPotion.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/AntiPotion.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.potion.Potion;
public class AntiPotion
extends Module {
private final Potion[] badEffects = new Potion[]{Potion.moveSlowdown, Potion.digSlowdown, Potion.harm, Potion.confusion, Potion.blindness, Potion.hunger, Potion.weakness, Potion.poison, Potion.wither};
public AntiPotion() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "AntiPotion";
}
@Override
public String getDescription() {
return "Removes potion effects";
}
@Override
public void onTicks() {
if (Wrapper.INSTANCE.player().isPotionActive(Potion.blindness)) {
Wrapper.INSTANCE.player().removePotionEffect(Potion.blindness.id);
}
if (Wrapper.INSTANCE.player().isPotionActive(Potion.confusion)) {
Wrapper.INSTANCE.player().removePotionEffect(Potion.confusion.id);
}
if (Wrapper.INSTANCE.player().isPotionActive(Potion.digSlowdown)) {
Wrapper.INSTANCE.player().removePotionEffect(Potion.digSlowdown.id);
}
if (Wrapper.INSTANCE.player().onGround) {
for (Potion effect : this.badEffects) {
if (!Wrapper.INSTANCE.player().isPotionActive(effect)) {
continue;
}
for (int a2 = 0; a2 <= 20; ++a2) {
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C03PacketPlayer.C05PacketPlayerLook(Wrapper.INSTANCE.player().rotationYaw, Wrapper.INSTANCE.player().rotationPitch, Wrapper.INSTANCE.player().onGround));
}
}
if (Wrapper.INSTANCE.player().getHealth() <= 15.0f && Wrapper.INSTANCE.player().isPotionActive(Potion.regeneration)) {
for (int a3 = 0; a3 <= 10; ++a3) {
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C03PacketPlayer.C05PacketPlayerLook(Wrapper.INSTANCE.player().rotationYaw, Wrapper.INSTANCE.player().rotationPitch, Wrapper.INSTANCE.player().onGround));
}
}
}
}
}
| 2,290 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
MobAura.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/MobAura.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.config.CheatConfiguration;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
public class MobAura
extends Module {
public static boolean isActive = false;
private long currentMS = 0L;
private long lastMS = -1L;
public MobAura() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "MobAura";
}
@Override
public String getDescription() {
return "Just mobaura";
}
@Override
public void onModuleEnabled() {
isActive = true;
}
@Override
public void onModuleDisabled() {
isActive = false;
}
private boolean hasDelayRun(long time) {
return this.currentMS - this.lastMS >= time;
}
@Override
public void onTicks() {
block6:
{
try {
this.currentMS = System.nanoTime() / 980000L;
if (!this.hasDelayRun(133L)) {
break block6;
}
for (int i = 0; i < Wrapper.INSTANCE.world().loadedEntityList.size(); ++i) {
Entity e = (Entity) Wrapper.INSTANCE.world().getLoadedEntityList().get(i);
if (e == Wrapper.INSTANCE.player() || e.isDead || Wrapper.INSTANCE.player().getDistanceToEntity(e) >= CheatConfiguration.config.auraradius || !(e instanceof EntityLiving)) {
continue;
}
if (AutoBlock.isActive && Wrapper.INSTANCE.player().getCurrentEquippedItem() != null && Wrapper.INSTANCE.player().getCurrentEquippedItem().getItem() instanceof ItemSword) {
ItemStack lel = Wrapper.INSTANCE.player().getCurrentEquippedItem();
lel.useItemRightClick(Wrapper.INSTANCE.world(), Wrapper.INSTANCE.player());
}
if (Criticals.isActive && !Wrapper.INSTANCE.player().isInWater() && !Wrapper.INSTANCE.player().isInsideOfMaterial(Material.lava) && !Wrapper.INSTANCE.player().isInsideOfMaterial(Material.web) && Wrapper.INSTANCE.player().onGround) {
Wrapper.INSTANCE.player().motionY = 0.1000000014901161;
Wrapper.INSTANCE.player().fallDistance = 0.1f;
Wrapper.INSTANCE.player().onGround = false;
}
if (AimBot.isActive) {
AimBot.faceEntity(e);
}
Wrapper.INSTANCE.player().setSprinting(false);
Wrapper.INSTANCE.player().swingItem();
Wrapper.INSTANCE.mc().playerController.attackEntity(Wrapper.INSTANCE.player(), e);
this.lastMS = System.nanoTime() / 980000L;
break;
}
} catch (Exception e) {
}
}
}
}
| 3,164 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
SeeHealth.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/SeeHealth.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
public class SeeHealth
extends Module {
public static boolean isActive = false;
public SeeHealth() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "SeeHealth";
}
@Override
public void onModuleEnabled() {
isActive = true;
}
@Override
public void onModuleDisabled() {
isActive = false;
}
}
| 533 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
Fullbright.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/Fullbright.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
public class Fullbright
extends Module {
public Fullbright() {
super(ModuleCategory.RENDER);
}
private int cooldownTicks = 0;
@Override
public String getName() {
return "Fullbright";
}
@Override
public String getDescription() {
return "Brights all area around you";
}
@Override
public void onModuleEnabled() {
float[] bright = Wrapper.INSTANCE.world().provider.lightBrightnessTable;
for (int i = 0; i < bright.length; ++i) {
bright[i] = 1.0f;
}
}
@Override
public void onTicks() {
if (cooldownTicks == 0) {
float[] bright = Wrapper.INSTANCE.world().provider.lightBrightnessTable;
for (int i = 0; i < bright.length; ++i) {
bright[i] = 1.0f;
}
}
cooldownTicks = (cooldownTicks + 1) % 80;
}
@Override
public void onModuleDisabled() {
Wrapper.INSTANCE.world().provider.registerWorld(Wrapper.INSTANCE.world());
}
}
| 1,199 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
AntiKnockBack.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/AntiKnockBack.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraftforge.client.event.RenderWorldLastEvent;
public class AntiKnockBack
extends Module {
public AntiKnockBack() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "AntiKnockBack";
}
@Override
public String getDescription() {
return "Removes knockback";
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
if (Wrapper.INSTANCE.player().hurtResistantTime > 0 && Wrapper.INSTANCE.player().hurtTime > 0) {
Wrapper.INSTANCE.player().hurtResistantTime = 0;
Wrapper.INSTANCE.player().hurtTime = 0;
Wrapper.INSTANCE.player().motionX = 0.0;
Wrapper.INSTANCE.player().motionY /= 10.0;
Wrapper.INSTANCE.player().motionZ = 0.0;
}
}
}
| 994 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
FastBow.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/FastBow.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.item.ItemBow;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C07PacketPlayerDigging;
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement;
public class FastBow
extends Module {
public FastBow() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "FastBow";
}
@Override
public String getDescription() {
return "Shoots arrows very fast";
}
@Override
public void onTicks() {
if (!Wrapper.INSTANCE.mc().isSingleplayer()) {
new Thread(() -> {
if (Wrapper.INSTANCE.player().isUsingItem() && Wrapper.INSTANCE.player().inventory.getCurrentItem().getItem() instanceof ItemBow && Wrapper.INSTANCE.player().onGround) {
try {
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C08PacketPlayerBlockPlacement(-1, -1, -1, 255, Wrapper.INSTANCE.player().inventory.getCurrentItem(), -1.0f, -1.0f, -1.0f));
for (int i = 0; i < 25; ++i) {
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C03PacketPlayer.C05PacketPlayerLook(Wrapper.INSTANCE.player().rotationYaw, Wrapper.INSTANCE.player().rotationPitch, Wrapper.INSTANCE.player().onGround));
Thread.sleep(1L);
}
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C07PacketPlayerDigging(5, 0, 0, 0, 255));
} catch (Exception ex) {
}
}
}).start();
} else if (Wrapper.INSTANCE.player().isUsingItem() && Wrapper.INSTANCE.player().inventory.getCurrentItem().getItem() instanceof ItemBow && Wrapper.INSTANCE.player().onGround) {
try {
Wrapper.INSTANCE.player().setSprinting(true);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C08PacketPlayerBlockPlacement(-1, -1, -1, 255, Wrapper.INSTANCE.player().inventory.getCurrentItem(), 1.0f, 1.0f, 1.0f));
for (int i = 0; i < 20; ++i) {
Thread.sleep(1L);
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C03PacketPlayer.C05PacketPlayerLook(Wrapper.INSTANCE.player().rotationYaw, Wrapper.INSTANCE.player().rotationPitch, Wrapper.INSTANCE.player().onGround));
}
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C07PacketPlayerDigging(5, 0, 0, 0, 255));
Wrapper.INSTANCE.player().setSprinting(false);
} catch (Exception ex) {
}
}
}
}
| 2,852 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoFall.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/NoFall.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.network.play.client.C03PacketPlayer;
public class NoFall
extends Module {
public NoFall() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "NoFall";
}
@Override
public String getDescription() {
return "Gives you zero damage on fall";
}
@Override
public void onTicks() {
if (Wrapper.INSTANCE.player().fallDistance > 2.0f) {
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(Wrapper.INSTANCE.player().motionX, -999.0, -999.0, Wrapper.INSTANCE.player().motionZ, !Wrapper.INSTANCE.player().onGround));
}
}
}
| 864 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
Projectiles.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/Projectiles.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLiquid;
import net.minecraft.block.material.Material;
import net.minecraft.client.entity.EntityClientPlayerMP;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.entity.Entity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBow;
import net.minecraft.item.ItemEgg;
import net.minecraft.item.ItemEnderPearl;
import net.minecraft.item.ItemSnowball;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MathHelper;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import org.lwjgl.opengl.GL11;
import org.lwjgl.util.glu.Cylinder;
public class Projectiles
extends Module {
public Projectiles() {
super(ModuleCategory.RENDER);
}
@Override
public String getName() {
return "Projectiles";
}
@Override
public String getDescription() {
return "Allows you to see all projectiles";
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
boolean bow = false;
EntityClientPlayerMP player = Wrapper.INSTANCE.player();
if (player.getCurrentEquippedItem() != null) {
Item item = player.getCurrentEquippedItem().getItem();
if (!(item instanceof ItemBow || item instanceof ItemSnowball || item instanceof ItemEnderPearl || item instanceof ItemEgg)) {
return;
}
if (item instanceof ItemBow) {
bow = true;
}
} else {
return;
}
double posX = RenderManager.renderPosX - (MathHelper.cos((player.rotationYaw / 180.0f * 3.141593f)) * 0.16f);
double posY = RenderManager.renderPosY + player.getEyeHeight() - 0.1000000014901161;
double posZ = RenderManager.renderPosZ - (MathHelper.sin((player.rotationYaw / 180.0f * 3.141593f)) * 0.16f);
double motionX = ((-MathHelper.sin((player.rotationYaw / 180.0f * 3.141593f))) * MathHelper.cos((player.rotationPitch / 180.0f * 3.141593f))) * (bow ? 1.0 : 0.4);
double motionY = (-MathHelper.sin((player.rotationPitch / 180.0f * 3.141593f))) * (bow ? 1.0 : 0.4);
double motionZ = (MathHelper.cos((player.rotationYaw / 180.0f * 3.141593f)) * MathHelper.cos((player.rotationPitch / 180.0f * 3.141593f))) * (bow ? 1.0 : 0.4);
if (player.getItemInUseCount() <= 0 && bow) {
return;
}
int var6 = 72000 - player.getItemInUseCount();
float power = var6 / 20.0f;
if ((power = (power * power + power * 2.0f) / 3.0f) < 0.1) {
return;
}
if (power > 1.0f) {
power = 1.0f;
}
GL11.glColor3f((1.0f - power), power, 0.0f);
float distance = MathHelper.sqrt_double((motionX * motionX + motionY * motionY + motionZ * motionZ));
motionX /= distance;
motionY /= distance;
motionZ /= distance;
motionX *= (bow ? power * 2.0f : 1.0f) * 1.5;
motionY *= (bow ? power * 2.0f : 1.0f) * 1.5;
motionZ *= (bow ? power * 2.0f : 1.0f) * 1.5;
GL11.glLineWidth(2.0f);
GL11.glBegin(3);
boolean hasLanded = false;
boolean isEntity = false;
MovingObjectPosition landingPosition = null;
float size = (float) (bow ? 0.3 : 0.25);
while (!hasLanded) {
Vec3 present = Vec3.createVectorHelper(posX, posY, posZ);
Vec3 future = Vec3.createVectorHelper((posX + motionX), (posY + motionY), (posZ + motionZ));
MovingObjectPosition possibleLandingStrip = Wrapper.INSTANCE.world().func_147447_a(present, future, false, true, true);
present = Vec3.createVectorHelper(posX, posY, posZ);
future = Vec3.createVectorHelper((posX + motionX), (posY + motionY), (posZ + motionZ));
if (possibleLandingStrip != null) {
hasLanded = true;
landingPosition = possibleLandingStrip;
}
AxisAlignedBB arrowBox = AxisAlignedBB.getBoundingBox((posX - size), (posY - size), (posZ - size), (posX + size), (posY + size), (posZ + size));
@SuppressWarnings("unchecked")
List<Entity> entities = this.getEntitiesWithinAABB(arrowBox.addCoord(motionX, motionY, motionZ).expand(1.0, 1.0, 1.0));
for (Entity entity1 : entities) {
float var11;
MovingObjectPosition possibleEntityLanding;
if (!entity1.canBeCollidedWith() || entity1 == player || (possibleEntityLanding = (entity1.boundingBox.expand((var11 = 0.3f), var11, var11)).calculateIntercept(present, future)) == null) {
continue;
}
hasLanded = true;
isEntity = true;
landingPosition = possibleEntityLanding;
}
float motionAdjustment = 0.99f;
if (this.isInMaterial(AxisAlignedBB.getBoundingBox((posX - size), (posY - size), (posZ - size), ((posX += motionX) + size), ((posY += motionY) + size), ((posZ += motionZ) + size)), Material.water)) {
motionAdjustment = 0.8f;
}
motionX *= motionAdjustment;
motionY *= motionAdjustment;
motionZ *= motionAdjustment;
motionY -= bow ? 0.05 : 0.03;
GL11.glVertex3d((posX - RenderManager.renderPosX), (posY - RenderManager.renderPosY), (posZ - RenderManager.renderPosZ));
}
GL11.glEnd();
GL11.glPushMatrix();
GL11.glTranslated((posX - RenderManager.renderPosX), (posY - RenderManager.renderPosY), (posZ - RenderManager.renderPosZ));
switch (landingPosition.sideHit) {
case 2: {
GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
break;
}
case 3: {
GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
break;
}
case 4: {
GL11.glRotatef(90.0f, 0.0f, 0.0f, 1.0f);
break;
}
case 5: {
GL11.glRotatef(90.0f, 0.0f, 0.0f, 1.0f);
}
}
if (isEntity) {
GL11.glColor3f(1.0f, 0.0f, 0.0f);
}
this.renderPoint();
GL11.glPopMatrix();
}
private void renderPoint() {
GL11.glBegin(1);
GL11.glVertex3d(-0.5, 0.0, 0.0);
GL11.glVertex3d(0.0, 0.0, 0.0);
GL11.glVertex3d(0.0, 0.0, -0.5);
GL11.glVertex3d(0.0, 0.0, 0.0);
GL11.glVertex3d(0.5, 0.0, 0.0);
GL11.glVertex3d(0.0, 0.0, 0.0);
GL11.glVertex3d(0.0, 0.0, 0.5);
GL11.glVertex3d(0.0, 0.0, 0.0);
GL11.glEnd();
Cylinder c = new Cylinder();
GL11.glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
c.setDrawStyle(100011);
c.draw(0.5f, 0.5f, 0.1f, 24, 1);
}
private boolean isInMaterial(AxisAlignedBB axisalignedBB, Material material) {
int chunkMinX = MathHelper.floor_double(axisalignedBB.minX);
int chunkMaxX = MathHelper.floor_double((axisalignedBB.maxX + 1.0));
int chunkMinY = MathHelper.floor_double(axisalignedBB.minY);
int chunkMaxY = MathHelper.floor_double((axisalignedBB.maxY + 1.0));
int chunkMinZ = MathHelper.floor_double(axisalignedBB.minZ);
int chunkMaxZ = MathHelper.floor_double((axisalignedBB.maxZ + 1.0));
if (!Wrapper.INSTANCE.world().checkChunksExist(chunkMinX, chunkMinY, chunkMinZ, chunkMaxX, chunkMaxY, chunkMaxZ)) {
return false;
}
boolean isWithin = false;
for (int x = chunkMinX; x < chunkMaxX; ++x) {
for (int y = chunkMinY; y < chunkMaxY; ++y) {
for (int z = chunkMinZ; z < chunkMaxZ; ++z) {
Block block = Block.getBlockById(Wrapper.INSTANCE.world().getBlockMetadata(x, y, z));
if (block == null || block.getMaterial() != material || chunkMaxY < ((y + 1) - BlockLiquid.getLiquidHeightPercent(Wrapper.INSTANCE.world().getBlockMetadata(x, y, z)))) {
continue;
}
isWithin = true;
}
}
}
return isWithin;
}
private List getEntitiesWithinAABB(AxisAlignedBB axisalignedBB) {
ArrayList list = new ArrayList();
int chunkMinX = MathHelper.floor_double(((axisalignedBB.minX - 2.0) / 16.0));
int chunkMaxX = MathHelper.floor_double(((axisalignedBB.maxX + 2.0) / 16.0));
int chunkMinZ = MathHelper.floor_double(((axisalignedBB.minZ - 2.0) / 16.0));
int chunkMaxZ = MathHelper.floor_double(((axisalignedBB.maxZ + 2.0) / 16.0));
for (int x = chunkMinX; x <= chunkMaxX; ++x) {
for (int z = chunkMinZ; z <= chunkMaxZ; ++z) {
if (!Wrapper.INSTANCE.world().getChunkProvider().chunkExists(x, z)) {
continue;
}
Wrapper.INSTANCE.world().getChunkFromChunkCoords(x, z).getEntitiesWithinAABBForEntity(Wrapper.INSTANCE.player(), axisalignedBB, list, null);
}
}
return list;
}
}
| 9,405 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
ProphuntESP.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/ProphuntESP.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.util.GLUtils;
import ehacks.mod.util.axis.AltAxisAlignedBB;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityFallingBlock;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import org.lwjgl.opengl.GL11;
public class ProphuntESP
extends Module {
public ProphuntESP() {
super(ModuleCategory.MINIGAMES);
}
@Override
public String getName() {
return "ProphuntESP";
}
@Override
public String getDescription() {
return "Prophunt ESP";
}
@Override
public void onWorldRender(RenderWorldLastEvent event) {
if (this.isActive()) {
Wrapper.INSTANCE.world().loadedEntityList.stream().filter((o) -> !(!(o instanceof EntityFallingBlock))).map((o) -> (EntityFallingBlock) o).map((e1) -> {
Entity e = (Entity) e1;
float halfWidth = e.width / 2.0f;
AltAxisAlignedBB aaabb = AltAxisAlignedBB.getBoundingBox(e.width - halfWidth, e.height, e.width - halfWidth, e.width + halfWidth, e.height + e.height, e.width + halfWidth);
double renderX = e.lastTickPosX + (e.posX - e.lastTickPosX) * event.partialTicks - RenderManager.renderPosX - e.width;
double renderY = e.lastTickPosY + (e.posY - e.lastTickPosY) * event.partialTicks - RenderManager.renderPosY - e.height * 1.5;
double renderZ = e.lastTickPosZ + (e.posZ - e.lastTickPosZ) * event.partialTicks - RenderManager.renderPosZ - e.width;
GL11.glPushMatrix();
GL11.glTranslated(renderX, renderY, renderZ);
GL11.glColor4f(0.27f, 0.7f, 0.92f, 1.0f);
return aaabb;
}).map((aaabb) -> {
GL11.glColor4f(0.92f, 0.2f, 0.2f, 1.0f);
return aaabb;
}).map((aaabb) -> {
GLUtils.startDrawingESPs((AltAxisAlignedBB) aaabb, 0.27f, 0.7f, 0.5f);
return aaabb;
}).forEachOrdered((_item) -> {
GL11.glPopMatrix();
});
}
}
}
| 2,300 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoWeather.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/NoWeather.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
public class NoWeather
extends Module {
public NoWeather() {
super(ModuleCategory.RENDER);
}
@Override
public String getName() {
return "NoWeather";
}
@Override
public String getDescription() {
return "Stops rain";
}
@Override
public void onTicks() {
if (Wrapper.INSTANCE.world() != null) {
Wrapper.INSTANCE.world().setRainStrength(0.0f);
}
}
}
| 611 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
WaterWalk.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/WaterWalk.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLiquid;
import net.minecraft.init.Blocks;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MathHelper;
public class WaterWalk
extends Module {
private int delay;
public WaterWalk() {
super(ModuleCategory.NOCHEATPLUS);
}
@Override
public String getName() {
return "WaterWalk";
}
@Override
public String getDescription() {
return "Gives ability to walk on water";
}
public static boolean isOnLiquid(AxisAlignedBB boundingBox) {
boundingBox = boundingBox.contract(0.01, 0.0, 0.01).offset(0.0, -0.01, 0.0);
boolean onLiquid = false;
int y = (int) boundingBox.minY;
for (int x = MathHelper.floor_double(boundingBox.minX); x < MathHelper.floor_double((boundingBox.maxX + 1.0)); ++x) {
for (int z = MathHelper.floor_double(boundingBox.minZ); z < MathHelper.floor_double((boundingBox.maxZ + 1.0)); ++z) {
Block block = Wrapper.INSTANCE.world().getBlock(x, y, z);
if (block == Blocks.air) {
continue;
}
if (!(block instanceof BlockLiquid)) {
return false;
}
onLiquid = true;
}
}
return onLiquid;
}
private static boolean isInLiquid() {
AxisAlignedBB par1AxisAlignedBB = Wrapper.INSTANCE.player().boundingBox.contract(0.001, 0.001, 0.001);
int minX = MathHelper.floor_double(par1AxisAlignedBB.minX);
int maxX = MathHelper.floor_double((par1AxisAlignedBB.maxX + 1.0));
int minY = MathHelper.floor_double(par1AxisAlignedBB.minY);
int maxY = MathHelper.floor_double((par1AxisAlignedBB.maxY + 1.0));
int minZ = MathHelper.floor_double(par1AxisAlignedBB.minZ);
int maxZ = MathHelper.floor_double((par1AxisAlignedBB.maxZ + 1.0));
if (!Wrapper.INSTANCE.world().checkChunksExist(minX, minY, minZ, maxX, maxY, maxZ)) {
return false;
}
for (int X = minX; X < maxX; ++X) {
for (int Y = minY; Y < maxY; ++Y) {
for (int Z = minZ; Z < maxZ; ++Z) {
Block block = Wrapper.INSTANCE.world().getBlock(X, Y, Z);
if (!(block instanceof BlockLiquid)) {
continue;
}
return true;
}
}
}
return false;
}
@Override
public void onTicks() {
if (WaterWalk.isOnLiquid(Wrapper.INSTANCE.player().boundingBox)) {
++this.delay;
if (this.delay == 4) {
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(Wrapper.INSTANCE.player().posX, Wrapper.INSTANCE.player().boundingBox.minY - 0.02, Wrapper.INSTANCE.player().posY - 0.02, Wrapper.INSTANCE.player().posZ, false));
this.delay = 0;
}
}
if (WaterWalk.isInLiquid()) {
Wrapper.INSTANCE.player().motionY = 0.085;
}
}
}
| 3,354 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
Forcefield.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/Forcefield.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
public class Forcefield
extends Module {
public static boolean isActive = false;
public Forcefield() {
super(ModuleCategory.COMBAT);
}
@Override
public String getName() {
return "Forcefield";
}
@Override
public String getDescription() {
return "Attacks all entities around you";
}
@Override
public void onModuleEnabled() {
isActive = true;
}
@Override
public void onModuleDisabled() {
isActive = false;
}
private void hitEntity(Entity e, boolean block, boolean criticals, boolean aimbot, boolean auto) {
if (block && Wrapper.INSTANCE.player().getCurrentEquippedItem().getItem() instanceof ItemSword) {
ItemStack lel = Wrapper.INSTANCE.player().getCurrentEquippedItem();
lel.useItemRightClick(Wrapper.INSTANCE.world(), Wrapper.INSTANCE.player());
}
if (criticals && !Wrapper.INSTANCE.player().isInWater() && !Wrapper.INSTANCE.player().isInsideOfMaterial(Material.lava) && !Wrapper.INSTANCE.player().isInsideOfMaterial(Material.web) && Wrapper.INSTANCE.player().onGround) {
Wrapper.INSTANCE.player().motionY = 0.1000000014901161;
Wrapper.INSTANCE.player().fallDistance = 0.1f;
Wrapper.INSTANCE.player().onGround = false;
}
if (aimbot) {
AimBot.faceEntity(e);
}
Wrapper.INSTANCE.mc().playerController.attackEntity(Wrapper.INSTANCE.player(), e);
Wrapper.INSTANCE.player().swingItem();
}
private float getDistanceToEntity(Entity from, Entity to) {
return from.getDistanceToEntity(to);
}
private boolean isWithinRange(float range, Entity e) {
return this.getDistanceToEntity(e, Wrapper.INSTANCE.player()) <= range;
}
@Override
public void onTicks() {
try {
Wrapper.INSTANCE.world().loadedEntityList.stream().map((o) -> {
EntityLivingBase entity = null;
if (o instanceof EntityLivingBase) {
entity = (EntityLivingBase) o;
}
return entity;
}).filter((entity) -> !(entity == null || !this.isWithinRange(6, (Entity) entity) || ((Entity) entity).isDead || ((Entity) entity) == Wrapper.INSTANCE.player())).forEachOrdered((entity) -> {
this.hitEntity(((Entity) entity), AutoBlock.isActive, Criticals.isActive, AimBot.isActive, true);
});
} catch (Exception e) {
}
}
}
| 2,881 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
FastPlace.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/FastPlace.java | package ehacks.mod.modulesystem.classes.vanilla;
import cpw.mods.fml.relauncher.ReflectionHelper;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.lang.reflect.Method;
import net.minecraft.client.Minecraft;
public class FastPlace
extends Module {
public FastPlace() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "FastPlace";
}
@Override
public String getDescription() {
return "You can place blocks instantly";
}
@Override
public void onTicks() {
if (Wrapper.INSTANCE.mcSettings().keyBindUseItem.getIsKeyPressed()) {
try {
Method m = ReflectionHelper.findMethod(Minecraft.class, Wrapper.INSTANCE.mc(), new String[]{"func_147121_ag"}, (Class[]) null);
m.invoke(Wrapper.INSTANCE.mc());
} catch (Exception e) {
}
}
}
}
| 983 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
NoWeb.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/NoWeb.java | package ehacks.mod.modulesystem.classes.vanilla;
import cpw.mods.fml.relauncher.ReflectionHelper;
import ehacks.mod.api.Module;
import ehacks.mod.util.Mappings;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.entity.Entity;
public class NoWeb
extends Module {
public NoWeb() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "NoWeb";
}
@Override
public String getDescription() {
return "Death to spiders";
}
@Override
public void onTicks() {
ReflectionHelper.setPrivateValue(Entity.class, Wrapper.INSTANCE.player(), false, new String[]{Mappings.isInWeb});
}
}
| 727 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
ShowContainer.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/ShowContainer.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.util.GLUtils;
import ehacks.mod.util.InteropUtils;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import java.util.ArrayList;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.event.MouseEvent;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
public class ShowContainer
extends Module {
public ShowContainer() {
super(ModuleCategory.EHACKS);
}
@Override
public String getName() {
return "ShowContainer";
}
@Override
public String getDescription() {
return "Fake destroyer";
}
private boolean prevState = false;
@Override
public void onMouse(MouseEvent event) {
try {
boolean nowState = Mouse.isButtonDown(1);
MovingObjectPosition position = Wrapper.INSTANCE.mc().objectMouseOver;
if (position.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && !prevState && nowState) {
TileEntity tileEntity = Wrapper.INSTANCE.world().getTileEntity(position.blockX, position.blockY, position.blockZ);
if (tileEntity instanceof IInventory) {
ItemStack[] stacks = new ItemStack[0];
Wrapper.INSTANCE.mc().displayGuiScreen(new ShowContainerGui(new ShowContainerContainer(stacks, tileEntity.getClass().getSimpleName())));
if (event.isCancelable()) {
event.setCanceled(true);
}
} else {
InteropUtils.log("Not a container", this);
}
}
prevState = nowState;
} catch (Exception ignored) {
}
}
private class ShowContainerGui extends GuiContainer {
private final ShowContainerContainer container;
private GuiButton buttonLeft;
private GuiButton buttonRight;
public ShowContainerGui(ShowContainerContainer container) {
super(container);
this.container = container;
this.xSize = 256;
this.ySize = 256;
}
@Override
protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) {
Wrapper.INSTANCE.mc().renderEngine.bindTexture(new ResourceLocation("ehacks", "textures/gui/container.png"));
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
GL11.glEnable(3042);
int startX = (this.width - this.xSize) / 2;
int startY = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(startX, startY, 0, 0, this.xSize, this.ySize);
GL11.glDisable(3042);
int x = 0;
int y = 0;
for (int i = 0; i < 143; i++) {
if (i >= container.slots.get(container.currentPage).size()) {
GLUtils.drawRect(startX + 11 + x * 18, startY + 17 + y * 18, startX + 11 + x * 18 + 18, startY + 17 + y * 18 + 18, GLUtils.getColor(198, 198, 198));
}
x++;
y += x / 13;
x %= 13;
}
}
@Override
protected void drawGuiContainerForegroundLayer(int p1, int p2) {
Wrapper.INSTANCE.fontRenderer().drawString(container.containerName + " - " + String.valueOf(container.inventorySlots.size()) + " slots", 12, 6, GLUtils.getColor(64, 64, 64));
Wrapper.INSTANCE.fontRenderer().drawString("Page " + String.valueOf(container.currentPage + 1), 128 - Wrapper.INSTANCE.fontRenderer().getStringWidth("Page " + String.valueOf(container.currentPage + 1)) / 2, 230, GLUtils.getColor(64, 64, 64));
}
@SuppressWarnings("unchecked")
@Override
public void initGui() {
super.initGui();
int startX = (this.width - this.xSize) / 2;
int startY = (this.height - this.ySize) / 2;
buttonLeft = new GuiButton(1, startX + 20, startY + 224, 20, 20, "<");
buttonLeft.enabled = container.currentPage > 0;
this.buttonList.add(buttonLeft);
buttonRight = new GuiButton(2, startX + 216, startY + 224, 20, 20, ">");
buttonRight.enabled = container.currentPage < (container.slots.size() - 1);
this.buttonList.add(buttonRight);
}
@Override
protected void actionPerformed(GuiButton b) {
if (b.id == 1) {
container.setPage(container.currentPage - 1);
buttonLeft.enabled = container.currentPage > 0;
buttonRight.enabled = container.currentPage < (container.slots.size() - 1);
}
if (b.id == 2) {
container.setPage(container.currentPage + 1);
buttonLeft.enabled = container.currentPage > 0;
buttonRight.enabled = container.currentPage < (container.slots.size() - 1);
}
}
@Override
protected void handleMouseClick(Slot p_146984_1_, int p_146984_2_, int p_146984_3_, int p_146984_4_) {
}
}
private class ShowContainerContainer extends Container {
public int currentPage = 0;
public ItemStack[] inventory;
public ArrayList<ArrayList<Slot>> slots = new ArrayList<>();
public String containerName;
public ShowContainerContainer(ItemStack[] inventory, String containerName) {
this.containerName = containerName;
this.inventory = inventory;
int x = 0;
int y = 0;
int page = 0;
for (int i = 0; i < inventory.length; i++) {
if (slots.size() == page) {
slots.add(new ArrayList<>());
}
Slot slot = new ShowContainerSlot(inventory[i], i, page == currentPage ? 12 + x * 18 : -2000, page == currentPage ? 18 + y * 18 : -2000);
slots.get(page).add(slot);
this.addSlotToContainer(slot);
this.putStackInSlot(i, inventory[i]);
x++;
y += x / 13;
x %= 13;
page += y / 11;
y %= 11;
}
if (slots.isEmpty()) {
slots.add(new ArrayList<>());
}
}
@Override
public void putStackInSlot(int p_75141_1_, ItemStack p_75141_2_) {
}
public void setPage(int pageId) {
if (pageId < 0 || pageId >= slots.size()) {
return;
}
slots.get(currentPage).stream().map((s) -> {
s.xDisplayPosition = -2000;
return s;
}).forEachOrdered((s) -> {
s.yDisplayPosition = -2000;
});
currentPage = pageId;
int x = 0;
int y = 0;
for (int i = 0; i < slots.get(currentPage).size(); i++) {
slots.get(currentPage).get(i).xDisplayPosition = 12 + x * 18;
slots.get(currentPage).get(i).yDisplayPosition = 18 + y * 18;
x++;
y += x / 13;
x %= 13;
}
}
@Override
public boolean canInteractWith(EntityPlayer p_75145_1_) {
return true;
}
}
private class ShowContainerSlot extends Slot {
private final ItemStack is;
public ShowContainerSlot(ItemStack is, int p_i1824_2_, int p_i1824_3_, int p_i1824_4_) {
super(null, p_i1824_2_, p_i1824_3_, p_i1824_4_);
this.is = is;
}
public boolean isValidItem(ItemStack is) {
return true;
}
@Override
public ItemStack getStack() {
return is;
}
@Override
public void putStack(ItemStack p_75215_1_) {
}
@Override
public void onSlotChanged() {
}
@Override
public int getSlotStackLimit() {
return is.getMaxStackSize();
}
/**
* Decrease the size of the stack in slot (first int arg) by the amount
* of the second int arg. Returns the new stack.
*/
@Override
public ItemStack decrStackSize(int p_75209_1_) {
return is;
}
@Override
public boolean isSlotInInventory(IInventory p_75217_1_, int p_75217_2_) {
return true;
}
}
}
| 8,919 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
FreeCam.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/FreeCam.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.util.EntityFakePlayer;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.PacketHandler;
import ehacks.mod.wrapper.Wrapper;
public class FreeCam
extends Module {
public EntityFakePlayer freecamEnt = null;
public FreeCam() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "FreeCam";
}
@Override
public String getDescription() {
return "Allows you to move without moving on the server";
}
@Override
public void onModuleEnabled() {
if (Wrapper.INSTANCE.player() != null && Wrapper.INSTANCE.world() != null) {
this.freecamEnt = new EntityFakePlayer(Wrapper.INSTANCE.world(), Wrapper.INSTANCE.player().getGameProfile());
this.freecamEnt.setPosition(Wrapper.INSTANCE.player().posX, Wrapper.INSTANCE.player().posY, Wrapper.INSTANCE.player().posZ);
this.freecamEnt.inventory = Wrapper.INSTANCE.player().inventory;
this.freecamEnt.yOffset = Wrapper.INSTANCE.player().yOffset;
this.freecamEnt.ySize = Wrapper.INSTANCE.player().ySize;
this.freecamEnt.rotationPitch = Wrapper.INSTANCE.player().rotationPitch;
this.freecamEnt.rotationYaw = Wrapper.INSTANCE.player().rotationYaw;
this.freecamEnt.rotationYawHead = Wrapper.INSTANCE.player().rotationYawHead;
Wrapper.INSTANCE.world().spawnEntityInWorld(this.freecamEnt);
}
}
@Override
public void onModuleDisabled() {
if (this.freecamEnt != null && Wrapper.INSTANCE.world() != null) {
Wrapper.INSTANCE.player().setPosition(this.freecamEnt.posX, this.freecamEnt.posY, this.freecamEnt.posZ);
Wrapper.INSTANCE.player().yOffset = this.freecamEnt.yOffset;
Wrapper.INSTANCE.player().ySize = this.freecamEnt.ySize;
Wrapper.INSTANCE.player().rotationPitch = this.freecamEnt.rotationPitch;
Wrapper.INSTANCE.player().rotationYaw = this.freecamEnt.rotationYaw;
Wrapper.INSTANCE.player().rotationYawHead = this.freecamEnt.rotationYawHead;
Wrapper.INSTANCE.world().removeEntity(this.freecamEnt);
this.freecamEnt = null;
}
}
@Override
public void onTicks() {
}
@Override
public boolean onPacket(Object packet, PacketHandler.Side side) {
return !(side == PacketHandler.Side.OUT && packet instanceof net.minecraft.network.play.client.C03PacketPlayer);
}
@Override
public boolean canOnOnStart() {
return false;
}
}
| 2,666 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
AutoRespawn.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/AutoRespawn.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
public class AutoRespawn
extends Module {
public AutoRespawn() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "AutoRespawn";
}
@Override
public String getDescription() {
return "Automatically respawns you";
}
@Override
public void onTicks() {
if (Wrapper.INSTANCE.player().isDead) {
Wrapper.INSTANCE.player().respawnPlayer();
}
}
}
| 628 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
AntiFire.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/AntiFire.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
import ehacks.mod.wrapper.Wrapper;
import net.minecraft.network.play.client.C03PacketPlayer;
public class AntiFire
extends Module {
public AntiFire() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "AntiFire";
}
@Override
public String getDescription() {
return "Removes fire";
}
@Override
public void onTicks() {
if (!WaterWalk.isOnLiquid(Wrapper.INSTANCE.player().boundingBox) && Wrapper.INSTANCE.player().isBurning() && Wrapper.INSTANCE.player().onGround) {
for (int i = 0; i < 10; ++i) {
Wrapper.INSTANCE.player().sendQueue.addToSendQueue(new C03PacketPlayer(false));
}
}
}
}
| 868 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
AutoTool.java | /FileExtraction/Java_unseen/radioegor146_ehacks-pro/src/main/java/ehacks/mod/modulesystem/classes/vanilla/AutoTool.java | package ehacks.mod.modulesystem.classes.vanilla;
import ehacks.mod.api.Module;
import ehacks.mod.wrapper.ModuleCategory;
public class AutoTool
extends Module {
public static boolean isActive = false;
public AutoTool() {
super(ModuleCategory.PLAYER);
}
@Override
public String getName() {
return "AutoTool";
}
@Override
public void onModuleEnabled() {
isActive = true;
}
@Override
public void onModuleDisabled() {
isActive = false;
}
}
| 530 | Java | .java | radioegor146/ehacks-pro | 24 | 19 | 4 | 2018-07-08T13:24:10Z | 2022-12-06T08:08:58Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.