├── .gitattributes ├── LICENSE ├── README.md ├── build.gradle.kts ├── gradle.properties ├── gradle └── wrapper │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle.kts └── src └── main ├── java └── me │ ├── halqq │ └── aurora │ │ ├── client │ │ ├── api │ │ │ ├── command │ │ │ │ ├── Command.java │ │ │ │ └── CommandManager.java │ │ │ ├── config │ │ │ │ └── ConfigManager.kt │ │ │ ├── event │ │ │ │ └── events │ │ │ │ │ ├── AuroraEvent.kt │ │ │ │ │ ├── DeathEvent.kt │ │ │ │ │ ├── MoveEvent.kt │ │ │ │ │ ├── PacketEvent.kt │ │ │ │ │ ├── PlayerDamageBlockEvent.kt │ │ │ │ │ ├── Render2DEvent.kt │ │ │ │ │ └── RenderEvent.kt │ │ │ ├── font │ │ │ │ ├── CFont.java │ │ │ │ ├── CustomFont.java │ │ │ │ └── TextManager.kt │ │ │ ├── friend │ │ │ │ └── FriendManager.kt │ │ │ ├── gui │ │ │ │ ├── ClientGuiScreen.kt │ │ │ │ ├── Frameable.kt │ │ │ │ ├── render │ │ │ │ │ ├── CategoryFrame.kt │ │ │ │ │ └── module │ │ │ │ │ │ ├── ModuleFrame.kt │ │ │ │ │ │ └── setting │ │ │ │ │ │ ├── SettingFrame.kt │ │ │ │ │ │ └── settings │ │ │ │ │ │ ├── BindFrame.kt │ │ │ │ │ │ ├── BooleanFrame.kt │ │ │ │ │ │ ├── ColorFrame.kt │ │ │ │ │ │ ├── DoubleFrame.kt │ │ │ │ │ │ ├── IntegerFrame.kt │ │ │ │ │ │ ├── ModeFrame.kt │ │ │ │ │ │ └── StringFrame.kt │ │ │ │ └── util │ │ │ │ │ ├── ColorUtils.kt │ │ │ │ │ ├── Colour.kt │ │ │ │ │ ├── Render2DUtil.kt │ │ │ │ │ └── render │ │ │ │ │ └── objects │ │ │ │ │ ├── AbstractGradient.kt │ │ │ │ │ ├── Particle.java │ │ │ │ │ ├── ParticleGenerator.java │ │ │ │ │ ├── Particles.java │ │ │ │ │ └── Vec4d.kt │ │ │ ├── hud │ │ │ │ ├── Frameable.kt │ │ │ │ ├── HudEditorScreen.kt │ │ │ │ └── render │ │ │ │ │ ├── CategoryFrame.kt │ │ │ │ │ └── module │ │ │ │ │ ├── ModuleFrame.kt │ │ │ │ │ └── setting │ │ │ │ │ ├── SettingFrame.kt │ │ │ │ │ └── settings │ │ │ │ │ ├── BindFrame.kt │ │ │ │ │ ├── BooleanFrame.kt │ │ │ │ │ ├── ColorFrame.kt │ │ │ │ │ ├── DoubleFrame.kt │ │ │ │ │ ├── IntegerFrame.kt │ │ │ │ │ ├── ModeFrame.kt │ │ │ │ │ └── StringFrame.kt │ │ │ ├── module │ │ │ │ ├── Category.kt │ │ │ │ ├── Module.kt │ │ │ │ └── ModuleManager.java │ │ │ ├── setting │ │ │ │ ├── Setting.java │ │ │ │ ├── SettingManager.java │ │ │ │ └── settings │ │ │ │ │ ├── SettingBoolean.kt │ │ │ │ │ ├── SettingColor.kt │ │ │ │ │ ├── SettingDouble.kt │ │ │ │ │ ├── SettingInteger.kt │ │ │ │ │ ├── SettingMode.kt │ │ │ │ │ └── SettingString.kt │ │ │ └── util │ │ │ │ ├── IPlayerControllerMP.java │ │ │ │ ├── MinecraftInstance.java │ │ │ │ ├── Minecraftable.java │ │ │ │ └── utils │ │ │ │ ├── BlockUtil.java │ │ │ │ ├── ColorUtil.kt │ │ │ │ ├── Colour.java │ │ │ │ ├── CrystalUtils.java │ │ │ │ ├── EntityUtil.java │ │ │ │ ├── EntropyUtils.java │ │ │ │ ├── GeometryMasks.java │ │ │ │ ├── HoleUtil.java │ │ │ │ ├── InventoryUtil.java │ │ │ │ ├── ItemUtil.java │ │ │ │ ├── MSound.java │ │ │ │ ├── MathUtil.java │ │ │ │ ├── MessageUtil.java │ │ │ │ ├── MiscUtil.java │ │ │ │ ├── PlayerUtil.java │ │ │ │ ├── RenderUtil.java │ │ │ │ ├── RotateUtil.java │ │ │ │ ├── TimerUtil.java │ │ │ │ └── TimerUtils.java │ │ ├── impl │ │ │ ├── Aurora.kt │ │ │ ├── GuiCustomMainScreen.kt │ │ │ ├── RPC.java │ │ │ ├── commands │ │ │ │ ├── Bind.java │ │ │ │ ├── Friend.java │ │ │ │ ├── Help.java │ │ │ │ ├── Prefix.java │ │ │ │ ├── Reload.java │ │ │ │ ├── Save.java │ │ │ │ └── Toggle.java │ │ │ ├── hudmodules │ │ │ │ ├── ArmorHUD.java │ │ │ │ ├── ArrayList.java │ │ │ │ ├── Coords.java │ │ │ │ ├── ExpCount.java │ │ │ │ ├── Fps.java │ │ │ │ ├── HoleHud.java │ │ │ │ ├── InventoryHud.java │ │ │ │ ├── Ping.java │ │ │ │ ├── PotionHud.java │ │ │ │ ├── Server.java │ │ │ │ ├── TabGui.java │ │ │ │ ├── TotemCount.java │ │ │ │ └── WaterMark.java │ │ │ └── modules │ │ │ │ ├── client │ │ │ │ ├── ClickGui.kt │ │ │ │ ├── HUD.kt │ │ │ │ ├── HUDEditor.java │ │ │ │ └── HalqGui.kt │ │ │ │ ├── combat │ │ │ │ ├── AimBot.kt │ │ │ │ ├── AutoArmor.java │ │ │ │ ├── AutoClicker.kt │ │ │ │ ├── AutoWeb.kt │ │ │ │ ├── AutoXp.kt │ │ │ │ ├── Criticals.kt │ │ │ │ ├── KillAura.kt │ │ │ │ ├── NoWeb.kt │ │ │ │ ├── Offhand.kt │ │ │ │ ├── SelfBow.kt │ │ │ │ ├── SelfWeb.kt │ │ │ │ ├── Surround.kt │ │ │ │ ├── TotemPop.java │ │ │ │ ├── autocrystal │ │ │ │ │ └── AutoCrystal.java │ │ │ │ ├── autotrap │ │ │ │ │ ├── AutoTrap.kt │ │ │ │ │ └── pos.kt │ │ │ │ └── offhand │ │ │ │ │ ├── EnumOffhandState.kt │ │ │ │ │ ├── ManipulateOffhand.kt │ │ │ │ │ ├── ModuleOffhand.kt │ │ │ │ │ ├── OffhandHandler.kt │ │ │ │ │ └── OffhandThread.kt │ │ │ │ ├── exploits │ │ │ │ ├── ShutDown.kt │ │ │ │ ├── SoundLogger.kt │ │ │ │ └── TickShift.kt │ │ │ │ ├── miscellaneous │ │ │ │ ├── AntiAfk.kt │ │ │ │ ├── AutoEz.java │ │ │ │ ├── BetterChat.java │ │ │ │ ├── ChatSuffix.kt │ │ │ │ ├── FootXp.kt │ │ │ │ ├── Freecam.kt │ │ │ │ ├── HoleBreakAlert.java │ │ │ │ ├── PacketEat.kt │ │ │ │ ├── RPCModule.java │ │ │ │ ├── SilentPearl.kt │ │ │ │ ├── Spammer.kt │ │ │ │ └── Velocity.kt │ │ │ │ ├── movement │ │ │ │ ├── AirJump.kt │ │ │ │ ├── AntiLevitation.kt │ │ │ │ ├── AutoJump.kt │ │ │ │ ├── AutoWalk.kt │ │ │ │ ├── BoatFly.kt │ │ │ │ ├── FastFall.kt │ │ │ │ ├── Flight.kt │ │ │ │ ├── LongJump.kt │ │ │ │ ├── NoSlow.kt │ │ │ │ ├── Spider.kt │ │ │ │ ├── Sprint.kt │ │ │ │ └── Step.kt │ │ │ │ ├── other │ │ │ │ ├── Colors.kt │ │ │ │ └── CustomFont.kt │ │ │ │ ├── render │ │ │ │ ├── Breadcrumbs.kt │ │ │ │ ├── CrystalChams.kt │ │ │ │ ├── CustomFov.kt │ │ │ │ ├── FeetHighlight.kt │ │ │ │ ├── FullBright.kt │ │ │ │ ├── HoleESP.kt │ │ │ │ ├── ItemEsp.kt │ │ │ │ ├── Nametags.java │ │ │ │ ├── PrevFallPos.kt │ │ │ │ ├── RangeCircle.kt │ │ │ │ ├── SkyColor.kt │ │ │ │ ├── Tracers.kt │ │ │ │ ├── playerchams │ │ │ │ │ ├── ChamsUtil.kt │ │ │ │ │ └── PlayerChams.kt │ │ │ │ └── popchams │ │ │ │ │ ├── ChamsTracker.kt │ │ │ │ │ ├── ModulePopChams.kt │ │ │ │ │ ├── PopChamsRender.kt │ │ │ │ │ └── PopChamsRenderer.java │ │ │ │ └── world │ │ │ │ ├── AddEfects.kt │ │ │ │ ├── AutoCat.kt │ │ │ │ ├── AutoGG.kt │ │ │ │ ├── FakePlayer.kt │ │ │ │ ├── RemoveEffects.kt │ │ │ │ ├── Timer.kt │ │ │ │ ├── TimerChanger.kt │ │ │ │ └── packetmine │ │ │ │ ├── BlockBreakProcessor.kt │ │ │ │ ├── BlockEventCollector.kt │ │ │ │ └── ModulePacketMine.kt │ │ └── injection │ │ │ └── mixins │ │ │ ├── MixinGuiNewChat.java │ │ │ ├── MixinMinecraft.java │ │ │ ├── MixinMovementInputFromOptions.java │ │ │ ├── MixinNetHandlerPlayClient.java │ │ │ ├── MixinNetworkManager.java │ │ │ ├── MixinPlayerControllerMP.java │ │ │ ├── MixinRenderEnderCrystal.java │ │ │ ├── MixinRenderEntityItem.java │ │ │ ├── MixinRenderPlayer.java │ │ │ └── MixinRendererLivingEntity.java │ │ └── loader │ │ ├── MixinLoader.java │ │ └── classloader │ │ └── DynamicClassLoader.java │ └── rina │ └── turok │ ├── Turok.java │ ├── hardware │ └── mouse │ │ └── TurokMouse.java │ ├── render │ ├── font │ │ ├── TurokFont.java │ │ ├── hal │ │ │ ├── CFont.java │ │ │ └── CFontRenderer.java │ │ └── management │ │ │ └── TurokFontManager.java │ ├── image │ │ ├── TurokImage.java │ │ └── management │ │ │ └── TurokImageManager.java │ └── opengl │ │ └── TurokRenderGL.java │ └── util │ ├── TurokClass.java │ ├── TurokDisplay.java │ ├── TurokGeneric.java │ ├── TurokMath.java │ ├── TurokRect.java │ └── TurokTick.java ├── kotlin └── dev │ └── joaoshiozo │ └── loader │ ├── Loader.kt │ ├── LoaderCoreMod.kt │ └── LoaderMod.kt └── resources ├── assets ├── aurora │ ├── icon_16.png │ └── icon_32.png └── minecraft │ ├── sounds │ └── msound.ogg │ └── textures │ └── b.png ├── aurora_at.cfg ├── mcmod.info └── mixins.aurora.json /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Aurora-0.0.6-BUILDABLE-SRC 2 | 3 | ## notable ppl 4 | - SynnK - me - main head 5 | - potato sus - friend - helped me with the deobf and its gui 6 | - java - the devil - the devil 7 | - vacation - the chill - the canios 8 | - zzurio - the god - the allah 9 | 10 | ## Building 11 | in order to build the jar, just go to the directory where u extracted the files and do `gradlew build` on the terminal
12 | then the jar will be on `build/libs/xxxxxxxxx.jar`
13 | then u put it on the `mods` folder (.minecraft) and load it (-noverify JVM args may be wanted) 14 | 15 | 16 | # Lore 17 | - smx (original dev) challenged me to deobfuscate and remap his giantic client 18 | - i accepted the challenge 19 | - he said he was going to pay 150 BRL for me 20 | - i started analyzing the client 21 | - i started writing my own custom deobfuscator (with lot of skidfuscator remaps) and its own remapper (with ma friend) 22 | - it worked 23 | - i sent the dev some work progress 24 | - the dev didnt believed 25 | - i started making a buildable src for it 26 | - it also worked 27 | - ma friend did a speedrun video deobf&remapping it 28 | - he posted 29 | - i posted the buildable src 30 | - we all good 31 | 32 | yt link: [here](https://www.youtube.com/watch?v=PL9pfa07GC4)
33 | > special thanks (again) to: 34 | - potato sus: helped me with the obfuscator&reampper interface 35 | - JByteCustom (insider edition): looking at the obf pattern 36 | - wireshark: initial dumping tests 37 | 38 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Sets default memory used for gradle commands. Can be overridden by user or command line properties. 2 | # This is required to provide enough memory for the Minecraft decompilation process. 3 | org.gradle.jvmargs=-Xms1G -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -XX:+UseG1GC -XX:+UseStringDeduplication -XX:MaxGCPauseMillis=200 -XX:G1NewSizePercent=10 -XX:G1MaxNewSizePercent=25 -XX:G1HeapRegionSize=1M -XX:G1ReservePercent=10 -XX:G1HeapWastePercent=10 -XX:G1MixedGCCountTarget=8 -XX:InitiatingHeapOccupancyPercent=75 -XX:G1MixedGCLiveThresholdPercent=60 -XX:G1RSetUpdatingPauseTimePercent=30 -XX:G1OldCSetRegionThresholdPercent=25 -XX:SurvivorRatio=8 4 | org.gradle.daemon=true 5 | #org.gradle.caching=true 6 | org.gradle.parallel=true 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | gradlePluginPortal() 5 | maven("https://files.minecraftforge.net/maven") 6 | maven("https://repo.spongepowered.org/repository/maven-public/") 7 | maven("https://oss.sonatype.org/content/repositories/snapshots/") 8 | } 9 | dependencies { 10 | classpath("net.minecraftforge.gradle:ForgeGradle:5.+") 11 | classpath("org.spongepowered:mixingradle:0.7-SNAPSHOT") 12 | } 13 | } 14 | 15 | rootProject.name = "Aurora" -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/command/Command.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.command; 4 | 5 | import me.halqq.aurora.client.api.util.Minecraftable; 6 | 7 | 8 | abstract public class Command implements Minecraftable { 9 | 10 | private final String name; 11 | private final String[] commands; 12 | 13 | public Command(String name) { 14 | this.name = name; 15 | commands = new String[]{""}; 16 | } 17 | 18 | public Command(String name, String[] commands) { 19 | this.name = name; 20 | this.commands = commands; 21 | } 22 | 23 | public static String getCommandPrefix() { 24 | return CommandManager.INSTANCE.getPrefix(); 25 | } 26 | 27 | public abstract void execute(String[] var1); 28 | 29 | public String getName() { 30 | return name; 31 | } 32 | 33 | public String[] getCommands() { 34 | return commands; 35 | } 36 | 37 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/event/events/AuroraEvent.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.event.events 4 | 5 | import net.minecraftforge.fml.common.eventhandler.Event 6 | 7 | open class AuroraEvent : Event { 8 | var stage: Stage? = null 9 | 10 | constructor() {} 11 | constructor(stage: Stage?) { 12 | this.stage = stage 13 | } 14 | 15 | @JvmName("getStage1") 16 | fun getStage(): Stage? { 17 | return stage 18 | } 19 | 20 | @JvmName("setStage1") 21 | fun setStage(stage: Stage?) { 22 | this.stage = stage 23 | isCanceled = false 24 | } 25 | 26 | enum class Stage { 27 | PRE, POST 28 | } 29 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/event/events/DeathEvent.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.event.events 4 | 5 | import net.minecraft.entity.player.EntityPlayer 6 | 7 | class DeathEvent(var player: EntityPlayer) : AuroraEvent() -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/event/events/MoveEvent.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.event.events 4 | 5 | import net.minecraft.entity.MoverType 6 | import net.minecraftforge.fml.common.eventhandler.Cancelable 7 | 8 | @Cancelable 9 | class MoveEvent(var type: MoverType, var x: Double, var y: Double, var z: Double) : AuroraEvent() -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/event/events/PacketEvent.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.event.events 4 | 5 | import net.minecraft.network.Packet 6 | import net.minecraftforge.fml.common.eventhandler.Cancelable 7 | 8 | @Cancelable 9 | open class PacketEvent(var packet: Packet<*>, stage: Stage?) : AuroraEvent(stage) { 10 | 11 | class PacketSendEvent(packet: Packet<*>, stage: Stage?) : 12 | PacketEvent(packet, stage) 13 | 14 | class PacketReceiveEvent(packet: Packet<*>, stage: Stage?) : 15 | PacketEvent(packet, stage) 16 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/event/events/PlayerDamageBlockEvent.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.event.events 4 | 5 | import net.minecraft.util.EnumFacing 6 | import net.minecraft.util.math.BlockPos 7 | 8 | class PlayerDamageBlockEvent(val pos: BlockPos, directionFacing: EnumFacing?, stage: Stage?) : 9 | AuroraEvent(stage) { 10 | var direction: EnumFacing? = null 11 | 12 | init { 13 | direction = directionFacing 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/event/events/Render2DEvent.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.event.events 4 | 5 | import net.minecraft.client.gui.ScaledResolution 6 | 7 | class Render2DEvent(var partialTicks: Float, var scaledResolution: ScaledResolution) : AuroraEvent() { 8 | @JvmName("setPartialTicks1") 9 | fun setPartialTicks(partialTicks: Float) { 10 | this.partialTicks = partialTicks 11 | } 12 | 13 | @JvmName("setScaledResolution1") 14 | fun setScaledResolution(scaledResolution: ScaledResolution) { 15 | this.scaledResolution = scaledResolution 16 | } 17 | 18 | val screenWidth: Double 19 | get() = scaledResolution.scaledWidth_double 20 | val screenHeight: Double 21 | get() = scaledResolution.scaledHeight_double 22 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/event/events/RenderEvent.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.event.events 4 | 5 | import net.minecraft.client.renderer.BufferBuilder 6 | import net.minecraft.client.renderer.Tessellator 7 | import net.minecraft.util.math.Vec3d 8 | 9 | class RenderEvent(private val tessellator: Tessellator, private val renderPos: Vec3d, val partialTicks: Float) { 10 | 11 | val buffer: BufferBuilder 12 | get() = tessellator.buffer 13 | 14 | fun setTranslation(translation: Vec3d) { 15 | buffer.setTranslation(-translation.x, -translation.y, -translation.z) 16 | } 17 | 18 | fun resetTranslation() { 19 | setTranslation(renderPos) 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/friend/FriendManager.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.friend 4 | object FriendManager { 5 | val friends: ArrayList = ArrayList() 6 | 7 | @JvmStatic 8 | 9 | fun isFriend(name: String?): Boolean { 10 | return friends.stream().anyMatch { friend: Friend? -> 11 | friend!!.username.equals( 12 | name, 13 | ignoreCase = true 14 | ) 15 | } 16 | } 17 | @JvmStatic 18 | 19 | fun getFriendObject(name: String): Friend { 20 | return Friend(name) 21 | } 22 | 23 | @JvmStatic 24 | fun addfriend(name: String) { 25 | friends.add(Friend(name)) 26 | } 27 | @JvmStatic 28 | fun removeFriend(name: String?) { 29 | friends.remove(getFriend(name)) 30 | } 31 | @JvmStatic 32 | 33 | fun getFriend(name: String?): Friend? { 34 | for (friend in friends) { 35 | if (!friend!!.username.equals(name, ignoreCase = true)) continue 36 | return friend 37 | } 38 | return null 39 | } 40 | 41 | val friendname: ArrayList 42 | get() { 43 | val friendNames = ArrayList() 44 | friends.stream().forEach { friend: Friend? -> 45 | friendNames.add( 46 | friend!!.username 47 | ) 48 | } 49 | return friendNames 50 | } 51 | 52 | class Friend(var username: String) 53 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/gui/ClientGuiScreen.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.gui 4 | 5 | import me.halqq.aurora.client.api.gui.render.CategoryFrame 6 | import me.halqq.aurora.client.api.gui.util.render.objects.ParticleGenerator 7 | import me.halqq.aurora.client.api.module.Category 8 | import me.halqq.aurora.client.api.module.ModuleManager 9 | import me.halqq.aurora.client.impl.modules.client.ClickGui 10 | import net.minecraft.client.gui.GuiScreen 11 | import org.lwjgl.input.Mouse 12 | import java.io.IOException 13 | 14 | 15 | class ClientGuiScreen : GuiScreen() { 16 | init { 17 | categories = ArrayList() 18 | 19 | 20 | var x = 6 21 | for (category in Category.values().filter { it != Category.HUD }) { 22 | val panel = CategoryFrame(category, x, 5) 23 | (categories as ArrayList).add(panel) 24 | x += panel.width + 6 25 | } 26 | } 27 | 28 | override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) { 29 | super.drawDefaultBackground() 30 | 31 | if(ModuleManager.INSTANCE.getModule(ClickGui::class.java).particle.value) { 32 | ParticleGenerator.draw(Mouse.getX() * width / mc.displayWidth, height - Mouse.getY() * height / mc.displayHeight - 1) 33 | } 34 | 35 | for (c in categories) { 36 | c.updatePosition() 37 | c.drawScreen(mouseX, mouseY) 38 | } 39 | super.drawScreen(mouseX, mouseY, partialTicks) 40 | } 41 | 42 | @Throws(IOException::class) 43 | override fun keyTyped(typedChar: Char, keyCode: Int) { 44 | 45 | for (cF in categories) { 46 | cF.keyTyped(typedChar, keyCode) 47 | } 48 | super.keyTyped(typedChar, keyCode) 49 | } 50 | 51 | @Throws(IOException::class) 52 | override fun mouseClicked(mouseX: Int, mouseY: Int, mouseButton: Int) { 53 | 54 | for (cF in categories) { 55 | cF.mouseClicked(mouseX, mouseY, mouseButton) 56 | } 57 | super.mouseClicked(mouseX, mouseY, mouseButton) 58 | } 59 | 60 | override fun mouseReleased(mouseX: Int, mouseY: Int, state: Int) { 61 | for (cF in categories) { 62 | cF.mouseReleased(mouseX, mouseY, state) 63 | } 64 | super.mouseReleased(mouseX, mouseY, state) 65 | } 66 | 67 | override fun onGuiClosed() { 68 | ModuleManager.INSTANCE.getModule(ClickGui::class.java).setDisabled() 69 | super.onGuiClosed() 70 | } 71 | 72 | override fun doesGuiPauseGame(): Boolean { 73 | return false 74 | } 75 | 76 | companion object { 77 | var INSTANCE: ClientGuiScreen? = null 78 | lateinit var categories: List 79 | } 80 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/gui/Frameable.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.gui 4 | 5 | import java.io.IOException 6 | 7 | interface Frameable { 8 | fun drawScreen(mouseX: Int, mouseY: Int) 9 | 10 | @Throws(IOException::class) 11 | fun mouseClicked(mouseX: Int, mouseY: Int, button: Int) 12 | fun mouseReleased(mouseX: Int, mouseY: Int, state: Int) 13 | fun keyTyped(typedChar: Char, keyCode: Int) 14 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/gui/render/module/setting/SettingFrame.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.gui.render.module.setting 4 | 5 | import me.halqq.aurora.client.api.gui.Frameable 6 | import me.halqq.aurora.client.api.gui.render.module.ModuleFrame 7 | import java.io.IOException 8 | 9 | open class SettingFrame(val module: ModuleFrame, var x: Int, var y: Int, var width: Int, var height: Int) : 10 | Frameable { 11 | 12 | override fun drawScreen(mouseX: Int, mouseY: Int) {} 13 | 14 | @Throws(IOException::class) 15 | override fun mouseClicked(mouseX: Int, mouseY: Int, button: Int) { 16 | } 17 | 18 | override fun mouseReleased(mouseX: Int, mouseY: Int, state: Int) {} 19 | override fun keyTyped(typedChar: Char, keyCode: Int) {} 20 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/gui/render/module/setting/settings/BindFrame.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.gui.render.module.setting.settings 4 | 5 | import com.mojang.realmsclient.gui.ChatFormatting 6 | import me.halqq.aurora.client.api.font.TextManager 7 | import me.halqq.aurora.client.api.gui.render.module.ModuleFrame 8 | import me.halqq.aurora.client.api.gui.render.module.setting.SettingFrame 9 | import me.halqq.aurora.client.api.module.ModuleManager 10 | import me.halqq.aurora.client.impl.modules.other.CustomFont 11 | import net.minecraft.client.gui.Gui 12 | import org.lwjgl.input.Keyboard 13 | import java.awt.Color 14 | 15 | class BindFrame(module: ModuleFrame, x: Int, y: Int) : 16 | SettingFrame(module, x, y, module.width - 2, TextManager.INSTANCE.fontHeight + 6) { 17 | private var listening = false 18 | override fun drawScreen(mouseX: Int, mouseY: Int) { 19 | Gui.drawRect(x, y, x + 2, y + height, Color(10, 10, 10, 200).rgb) 20 | Gui.drawRect(x + 2, y, x + 2 + width, y + height - 1, getColor(mouseX, mouseY)) 21 | Gui.drawRect(x + 2, y + height - 1, x + 2 + width, y + height, Color(0, 0, 0, 210).rgb) 22 | TextManager.INSTANCE.drawStringWithShadow( 23 | "Bind", (x + 4).toFloat(), (y + 2).toFloat(), -1, ModuleManager.INSTANCE.getModule( 24 | CustomFont::class.java 25 | ).isEnabled 26 | ) 27 | val `val` = ChatFormatting.GRAY.toString() + if (listening) "Listening" else module.module.keyName 28 | TextManager.INSTANCE.drawStringWithShadow( 29 | `val`, 30 | (x + width - TextManager.INSTANCE.getStringWidth(`val`) - 4).toFloat(), 31 | (y + 2).toFloat(), 32 | -1, 33 | ModuleManager.INSTANCE.getModule( 34 | CustomFont::class.java 35 | ).isEnabled 36 | ) 37 | } 38 | 39 | private fun getColor(mouseX: Int, mouseY: Int): Int { 40 | val color = Color(50, 50, 50, 140) 41 | val hovered = mouseX > x + 2 && mouseY > y && mouseX < x + 2 + width && mouseY < y + height - 1 42 | return if (hovered) color.brighter().brighter().rgb else color.rgb 43 | } 44 | 45 | override fun mouseClicked(mouseX: Int, mouseY: Int, button: Int) { 46 | if (mouseX > x + 2 && mouseY > y && mouseX < x + 2 + width && mouseY < y + height - 1 && button == 0) { 47 | listening = !listening 48 | } 49 | } 50 | 51 | override fun keyTyped(typedChar: Char, keyCode: Int) { 52 | if (listening) { 53 | if (keyCode != 0 && keyCode != Keyboard.KEY_ESCAPE) { 54 | if (keyCode == Keyboard.KEY_DELETE) module.module.key = -1 else module.module.key = 55 | keyCode 56 | } 57 | listening = false 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/gui/render/module/setting/settings/BooleanFrame.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.gui.render.module.setting.settings 4 | 5 | import me.halqq.aurora.client.api.font.TextManager 6 | import me.halqq.aurora.client.api.gui.render.module.ModuleFrame 7 | import me.halqq.aurora.client.api.gui.render.module.setting.SettingFrame 8 | import me.halqq.aurora.client.api.module.ModuleManager 9 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean 10 | import me.halqq.aurora.client.impl.modules.client.ClickGui 11 | import me.halqq.aurora.client.impl.modules.other.CustomFont 12 | import net.minecraft.client.gui.Gui 13 | import java.awt.Color 14 | 15 | class BooleanFrame(module: ModuleFrame, x: Int, y: Int, private val setting: SettingBoolean) : 16 | SettingFrame(module, x, y, module.width - 2, module.height) { 17 | override fun drawScreen(mouseX: Int, mouseY: Int) { 18 | Gui.drawRect(x, y, x + 2, y + height, Color(0, 0, 0, 210).rgb) 19 | Gui.drawRect(x + 2, y, x + 2 + width, y + height - 1, getColor(mouseX, mouseY)) 20 | Gui.drawRect(x + 2, y + height - 1, x + 2 + width, y + height, Color(0, 0, 0, 210).rgb) 21 | TextManager.INSTANCE.drawStringWithShadow( 22 | setting.name, (x + 4).toFloat(), (y + 2).toFloat(), -1, ModuleManager.INSTANCE.getModule( 23 | CustomFont::class.java 24 | ).isEnabled 25 | ) 26 | } 27 | 28 | private fun getColor(mouseX: Int, mouseY: Int): Int { 29 | val color = 30 | if (setting.value) ModuleManager.INSTANCE.getModule(ClickGui::class.java).color else Color(50, 50, 50, 140) 31 | val hovered = mouseX > x + 2 && mouseY > y && mouseX < x + 2 + width && mouseY < y + height - 1 32 | return if (hovered) if (setting.value) color.darker().darker().rgb else color.brighter() 33 | .brighter().rgb else color.rgb 34 | } 35 | 36 | override fun mouseClicked(mouseX: Int, mouseY: Int, button: Int) { 37 | if (mouseX > x + 2 && mouseY > y && mouseX < x + 2 + width && mouseY < y + height - 1 && button == 0) { 38 | setting.value = !setting.value 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/gui/util/render/objects/ParticleGenerator.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.gui.util.render.objects; 4 | 5 | import me.halqq.aurora.client.api.module.ModuleManager; 6 | import me.halqq.aurora.client.impl.modules.client.ClickGui; 7 | import net.minecraftforge.fml.relauncher.Side; 8 | import net.minecraftforge.fml.relauncher.SideOnly; 9 | 10 | 11 | @SideOnly(Side.CLIENT) 12 | public class ParticleGenerator { 13 | 14 | private static final Particles particles = new Particles(ModuleManager.INSTANCE.getModule(ClickGui.class).getParticleamount().getValue()); 15 | 16 | public static boolean draw(int mouseX, int mouseY) { 17 | particles.draw(mouseX, mouseY); 18 | return false; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/gui/util/render/objects/Particles.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.gui.util.render.objects; 4 | 5 | import me.halqq.aurora.client.api.util.utils.RenderUtil; 6 | import net.minecraft.client.Minecraft; 7 | import net.minecraftforge.fml.relauncher.Side; 8 | import net.minecraftforge.fml.relauncher.SideOnly; 9 | 10 | import java.util.ArrayList; 11 | import java.util.List; 12 | import java.util.Random; 13 | 14 | 15 | @SideOnly(Side.CLIENT) 16 | public class Particles { 17 | 18 | private static final List particles = new ArrayList<>(); 19 | private static int amount; 20 | 21 | private static int prevWidth; 22 | private static int prevHeight; 23 | 24 | public Particles(final int amount) { 25 | this.amount = amount; 26 | } 27 | 28 | public static void draw(final int mouseX, final int mouseY) { 29 | if(particles.isEmpty() || prevWidth != Minecraft.getMinecraft().displayWidth || prevHeight != Minecraft.getMinecraft().displayHeight) { 30 | particles.clear(); 31 | create(); 32 | } 33 | 34 | prevWidth = Minecraft.getMinecraft().displayWidth; 35 | prevHeight = Minecraft.getMinecraft().displayHeight; 36 | 37 | for(final Particle particle : particles) { 38 | particle.fall(); 39 | particle.interpolation(); 40 | 41 | int range = 50; 42 | final boolean mouseOver = (mouseX >= particle.x - range) && (mouseY >= particle.y - range) && (mouseX <= particle.x + range) && (mouseY <= particle.y + range); 43 | 44 | if(mouseOver) { 45 | particles.stream() 46 | .filter(part -> (part.getX() > particle.getX() && part.getX() - particle.getX() < range 47 | && particle.getX() - part.getX() < range) 48 | && (part.getY() > particle.getY() && part.getY() - particle.getY() < range 49 | || particle.getY() > part.getY() && particle.getY() - part.getY() < range)) 50 | .forEach(connectable -> particle.connect(connectable.getX(), connectable.getY())); 51 | } 52 | 53 | RenderUtil.drawCircle(particle.getX(), particle.getY(), particle.size, 0xffFFFFFF); 54 | } 55 | } 56 | 57 | private static void create() { 58 | final Random random = new Random(); 59 | 60 | for(int i = 0; i < amount; i++) 61 | particles.add(new Particle(random.nextInt(Minecraft.getMinecraft().displayWidth), random.nextInt(Minecraft.getMinecraft().displayHeight))); 62 | } 63 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/gui/util/render/objects/Vec4d.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.gui.util.render.objects 4 | 5 | import org.lwjgl.opengl.GL11 6 | import java.util.* 7 | 8 | class Vec4d(first: DoubleArray, second: DoubleArray, third: DoubleArray, four: DoubleArray) { 9 | var x1: Double 10 | var x2: Double 11 | var y1: Double 12 | var y2: Double 13 | var x3: Double 14 | var x4: Double 15 | var y3: Double 16 | var y4: Double 17 | 18 | init { 19 | x1 = first[0] 20 | y1 = first[1] 21 | x2 = second[0] 22 | y2 = second[1] 23 | x3 = third[0] 24 | y3 = third[1] 25 | x4 = four[0] 26 | y4 = four[1] 27 | } 28 | 29 | fun toArray(): ArrayList { 30 | return ArrayList( 31 | Arrays.asList( 32 | doubleArrayOf(x1, y1), 33 | doubleArrayOf(x2, y2), 34 | doubleArrayOf(x3, y3), 35 | doubleArrayOf(x4, y4) 36 | ) 37 | ) 38 | } 39 | 40 | val minX: Float 41 | get() = Math.min(x1, Math.min(x2, Math.min(x3, x4))).toFloat() 42 | val minY: Float 43 | get() = Math.min(y1, Math.min(y2, Math.min(y3, y4))).toFloat() 44 | val maxX: Float 45 | get() = Math.max(x1, Math.max(x2, Math.max(x3, x4))).toFloat() 46 | val maxY: Float 47 | get() = Math.max(y1, Math.max(y2, Math.max(y3, y4))).toFloat() 48 | 49 | fun setupVectors() { 50 | GL11.glVertex2d(x1, y1) 51 | GL11.glVertex2d(x2, y2) 52 | GL11.glVertex2d(x3, y3) 53 | GL11.glVertex2d(x4, y4) 54 | } 55 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/hud/Frameable.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.hud 4 | 5 | import java.io.IOException 6 | 7 | interface Frameable { 8 | fun drawScreen(mouseX: Int, mouseY: Int) 9 | 10 | @Throws(IOException::class) 11 | fun mouseClicked(mouseX: Int, mouseY: Int, button: Int) 12 | fun mouseReleased(mouseX: Int, mouseY: Int, state: Int) 13 | fun keyTyped(typedChar: Char, keyCode: Int) 14 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/hud/HudEditorScreen.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.hud 4 | 5 | import me.halqq.aurora.client.api.hud.render.CategoryFrame 6 | import me.halqq.aurora.client.api.module.ModuleManager 7 | import me.halqq.aurora.client.impl.modules.client.ClickGui 8 | import net.minecraft.client.gui.GuiScreen 9 | import java.io.IOException 10 | 11 | 12 | class HudEditorScreen : GuiScreen() { 13 | 14 | init { 15 | categories = ArrayList() 16 | 17 | var x = 6 18 | val panel = CategoryFrame(x, 5) 19 | (categories as ArrayList).add(panel) 20 | x += panel.width + 6 21 | } 22 | 23 | override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) { 24 | super.drawDefaultBackground() 25 | 26 | for (c in categories) { 27 | c.updatePosition() 28 | c.drawScreen(mouseX, mouseY) 29 | } 30 | super.drawScreen(mouseX, mouseY, partialTicks) 31 | } 32 | 33 | @Throws(IOException::class) 34 | override fun keyTyped(typedChar: Char, keyCode: Int) { 35 | 36 | for (cF in categories) { 37 | cF.keyTyped(typedChar, keyCode) 38 | } 39 | super.keyTyped(typedChar, keyCode) 40 | } 41 | 42 | @Throws(IOException::class) 43 | override fun mouseClicked(mouseX: Int, mouseY: Int, mouseButton: Int) { 44 | 45 | for (cF in categories) { 46 | cF.mouseClicked(mouseX, mouseY, mouseButton) 47 | } 48 | super.mouseClicked(mouseX, mouseY, mouseButton) 49 | } 50 | 51 | override fun mouseReleased(mouseX: Int, mouseY: Int, state: Int) { 52 | for (cF in categories) { 53 | cF.mouseReleased(mouseX, mouseY, state) 54 | } 55 | super.mouseReleased(mouseX, mouseY, state) 56 | } 57 | 58 | override fun onGuiClosed() { 59 | ModuleManager.INSTANCE.getModule(ClickGui::class.java).setDisabled() 60 | super.onGuiClosed() 61 | } 62 | 63 | override fun doesGuiPauseGame(): Boolean { 64 | return false 65 | } 66 | 67 | companion object { 68 | var INSTANCE: HudEditorScreen? = null 69 | lateinit var categories: List 70 | } 71 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/hud/render/module/setting/SettingFrame.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.hud.render.module.setting 4 | 5 | import me.halqq.aurora.client.api.hud.Frameable 6 | import me.halqq.aurora.client.api.hud.render.module.ModuleFrame 7 | import java.io.IOException 8 | 9 | open class SettingFrame(val module: ModuleFrame, var x: Int, var y: Int, var width: Int, var height: Int) : 10 | Frameable { 11 | 12 | override fun drawScreen(mouseX: Int, mouseY: Int) {} 13 | 14 | @Throws(IOException::class) 15 | override fun mouseClicked(mouseX: Int, mouseY: Int, button: Int) { 16 | } 17 | 18 | override fun mouseReleased(mouseX: Int, mouseY: Int, state: Int) {} 19 | override fun keyTyped(typedChar: Char, keyCode: Int) {} 20 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/hud/render/module/setting/settings/BindFrame.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.hud.render.module.setting.settings 4 | 5 | import com.mojang.realmsclient.gui.ChatFormatting 6 | import me.halqq.aurora.client.api.font.TextManager 7 | import me.halqq.aurora.client.api.hud.render.module.ModuleFrame 8 | import me.halqq.aurora.client.api.hud.render.module.setting.SettingFrame 9 | import me.halqq.aurora.client.api.module.ModuleManager 10 | import me.halqq.aurora.client.impl.modules.other.CustomFont 11 | import net.minecraft.client.gui.Gui 12 | import org.lwjgl.input.Keyboard 13 | import java.awt.Color 14 | 15 | class BindFrame(module: ModuleFrame, x: Int, y: Int) : 16 | SettingFrame(module, x, y, module.width - 2, TextManager.INSTANCE.fontHeight + 6) { 17 | private var listening = false 18 | override fun drawScreen(mouseX: Int, mouseY: Int) { 19 | Gui.drawRect(x, y, x + 2, y + height, Color(10, 10, 10, 200).rgb) 20 | Gui.drawRect(x + 2, y, x + 2 + width, y + height - 1, getColor(mouseX, mouseY)) 21 | Gui.drawRect(x + 2, y + height - 1, x + 2 + width, y + height, Color(0, 0, 0, 210).rgb) 22 | TextManager.INSTANCE.drawStringWithShadow( 23 | "Bind", (x + 4).toFloat(), (y + 2).toFloat(), -1, ModuleManager.INSTANCE.getModule( 24 | CustomFont::class.java 25 | ).isEnabled 26 | ) 27 | val `val` = ChatFormatting.GRAY.toString() + if (listening) "Listening" else module.module.keyName 28 | TextManager.INSTANCE.drawStringWithShadow( 29 | `val`, 30 | (x + width - TextManager.INSTANCE.getStringWidth(`val`) - 4).toFloat(), 31 | (y + 2).toFloat(), 32 | -1, 33 | ModuleManager.INSTANCE.getModule( 34 | CustomFont::class.java 35 | ).isEnabled 36 | ) 37 | } 38 | 39 | private fun getColor(mouseX: Int, mouseY: Int): Int { 40 | val color = Color(50, 50, 50, 140) 41 | val hovered = mouseX > x + 2 && mouseY > y && mouseX < x + 2 + width && mouseY < y + height - 1 42 | return if (hovered) color.brighter().brighter().rgb else color.rgb 43 | } 44 | 45 | override fun mouseClicked(mouseX: Int, mouseY: Int, button: Int) { 46 | if (mouseX > x + 2 && mouseY > y && mouseX < x + 2 + width && mouseY < y + height - 1 && button == 0) { 47 | listening = !listening 48 | } 49 | } 50 | 51 | override fun keyTyped(typedChar: Char, keyCode: Int) { 52 | if (listening) { 53 | if (keyCode != 0 && keyCode != Keyboard.KEY_ESCAPE) { 54 | if (keyCode == Keyboard.KEY_DELETE) module.module.key = -1 else module.module.key = 55 | keyCode 56 | } 57 | listening = false 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/hud/render/module/setting/settings/BooleanFrame.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.hud.render.module.setting.settings 4 | 5 | import me.halqq.aurora.client.api.font.TextManager 6 | import me.halqq.aurora.client.api.hud.render.module.ModuleFrame 7 | import me.halqq.aurora.client.api.hud.render.module.setting.SettingFrame 8 | import me.halqq.aurora.client.api.module.ModuleManager 9 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean 10 | import me.halqq.aurora.client.impl.modules.client.ClickGui 11 | import me.halqq.aurora.client.impl.modules.other.CustomFont 12 | import net.minecraft.client.gui.Gui 13 | import java.awt.Color 14 | 15 | class BooleanFrame(module: ModuleFrame, x: Int, y: Int, private val setting: SettingBoolean) : 16 | SettingFrame(module, x, y, module.width - 2, module.height) { 17 | override fun drawScreen(mouseX: Int, mouseY: Int) { 18 | Gui.drawRect(x, y, x + 2, y + height, Color(0, 0, 0, 210).rgb) 19 | Gui.drawRect(x + 2, y, x + 2 + width, y + height - 1, getColor(mouseX, mouseY)) 20 | Gui.drawRect(x + 2, y + height - 1, x + 2 + width, y + height, Color(0, 0, 0, 210).rgb) 21 | TextManager.INSTANCE.drawStringWithShadow( 22 | setting.name, (x + 4).toFloat(), (y + 2).toFloat(), -1, ModuleManager.INSTANCE.getModule( 23 | CustomFont::class.java 24 | ).isEnabled 25 | ) 26 | } 27 | 28 | private fun getColor(mouseX: Int, mouseY: Int): Int { 29 | val color = 30 | if (setting.value) ModuleManager.INSTANCE.getModule(ClickGui::class.java).color else Color(50, 50, 50, 140) 31 | val hovered = mouseX > x + 2 && mouseY > y && mouseX < x + 2 + width && mouseY < y + height - 1 32 | return if (hovered) if (setting.value) color.darker().darker().rgb else color.brighter() 33 | .brighter().rgb else color.rgb 34 | } 35 | 36 | override fun mouseClicked(mouseX: Int, mouseY: Int, button: Int) { 37 | if (mouseX > x + 2 && mouseY > y && mouseX < x + 2 + width && mouseY < y + height - 1 && button == 0) { 38 | setting.value = !setting.value 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/module/Category.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.module 4 | 5 | 6 | enum class Category(name: String?) { 7 | COMBAT("Combat"), 8 | EXPLOITS("Exploits"), 9 | MISCELLANEOUS("Miscellaneous"), 10 | MOVEMENT("Movement"), 11 | RENDER("Render"), 12 | WORLD("World"), 13 | OTHER("Client"), 14 | HUD("HUD"); 15 | 16 | var namee = name 17 | 18 | fun getName() : String ? { 19 | return namee 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/setting/Setting.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.setting; 4 | 5 | import me.halqq.aurora.client.api.module.Module; 6 | 7 | 8 | abstract public class Setting { 9 | 10 | private final String name; 11 | private final Module module; 12 | private boolean vvisible; 13 | 14 | public Setting(String name, Module module, boolean visible) { 15 | this.name = name; 16 | this.module = module; 17 | this.vvisible = visible; 18 | } 19 | 20 | public String getName() { 21 | return name; 22 | } 23 | 24 | public Module getModule() { 25 | return module; 26 | } 27 | 28 | public boolean getVisible() { 29 | return vvisible; 30 | } 31 | 32 | public void setVisible(boolean visible) { 33 | this.vvisible = visible; 34 | } 35 | 36 | abstract public T getValue(); 37 | 38 | abstract public void setValue(T value); 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/setting/SettingManager.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.setting; 4 | 5 | import me.halqq.aurora.client.api.module.Module; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | import java.util.stream.Collectors; 10 | 11 | 12 | @SuppressWarnings("rawtypes") 13 | public class SettingManager { 14 | 15 | public static SettingManager INSTANCE; 16 | private final List settings; 17 | 18 | public SettingManager() { 19 | settings = new ArrayList<>(); 20 | } 21 | 22 | public List getSettings() { 23 | return settings; 24 | } 25 | 26 | public List getSettingsInModule(Module module) { 27 | return settings.stream().filter(setting -> setting.getModule().equals(module)).collect(Collectors.toList()); 28 | } 29 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/setting/settings/SettingBoolean.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.setting.settings 4 | 5 | import me.halqq.aurora.client.api.module.Module 6 | import me.halqq.aurora.client.api.setting.Setting 7 | 8 | 9 | 10 | class SettingBoolean(name: String, module: Module, private var value: Boolean, visible: Boolean) : 11 | 12 | Setting(name, module, visible) { 13 | 14 | override fun setValue(value: Boolean) { 15 | this.value = value; 16 | } 17 | 18 | override fun getValue(): Boolean { 19 | return value; 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/setting/settings/SettingColor.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.setting.settings 4 | 5 | import me.halqq.aurora.client.api.module.Module 6 | import me.halqq.aurora.client.api.setting.Setting 7 | import java.awt.Color 8 | 9 | class SettingColor(name: String?, module: Module?, private var value: Color, visible: Boolean) : 10 | Setting(name, module, visible) { 11 | 12 | override fun getValue(): Color { 13 | return value 14 | } 15 | 16 | val red: Int get() = value.red 17 | val green: Int get() = value.green 18 | val blue: Int get() = value.blue 19 | val alpha: Int get() = value.alpha 20 | 21 | override fun setValue(value: Color) { 22 | this.value = Color(value.red, value.green, value.blue, value.alpha) 23 | } 24 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/setting/settings/SettingDouble.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.setting.settings 4 | 5 | import me.halqq.aurora.client.api.module.Module 6 | import me.halqq.aurora.client.api.setting.Setting 7 | 8 | class SettingDouble( 9 | name: String?, 10 | module: Module?, 11 | private var value: Double, 12 | val minValue: Double, 13 | val maxValue: Double, 14 | visible: Boolean 15 | ) : 16 | Setting(name, module, visible) { 17 | 18 | override fun getValue(): Double { 19 | return value 20 | } 21 | 22 | override fun setValue(value: Double) { 23 | this.value = value 24 | } 25 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/setting/settings/SettingInteger.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.setting.settings 4 | 5 | import me.halqq.aurora.client.api.module.Module 6 | import me.halqq.aurora.client.api.setting.Setting 7 | 8 | 9 | class SettingInteger( 10 | name: String?, 11 | module: Module?, 12 | private var value: Int, 13 | val minValue: Int, 14 | val maxValue: Int, 15 | visible: Boolean 16 | ) : 17 | Setting(name, module, visible) { 18 | 19 | override fun getValue(): Int { 20 | return value 21 | } 22 | 23 | override fun setValue(value: Int) { 24 | this.value = value 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/setting/settings/SettingMode.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.setting.settings 4 | 5 | import me.halqq.aurora.client.api.module.Module 6 | import me.halqq.aurora.client.api.setting.Setting 7 | 8 | class SettingMode( 9 | name: String?, 10 | module: Module?, 11 | private var value: String, 12 | val modes: List, 13 | visible: Boolean 14 | ) : 15 | Setting(name, module, visible) { 16 | 17 | override fun getValue(): String { 18 | return value 19 | } 20 | 21 | override fun setValue(value: String) { 22 | this.value = value 23 | } 24 | 25 | val stringValues: Array 26 | get() = modes.toTypedArray() 27 | 28 | fun getStringFromIndex(index: Int): String { 29 | return if (index != -1) { 30 | stringValues[index] 31 | } else { 32 | "" 33 | } 34 | } 35 | 36 | val selectedIndex: Int 37 | get() { 38 | val modes = stringValues 39 | var `object` = 0 40 | for (i in modes.indices) { 41 | val mode = modes[i] 42 | if (mode.equals(value, ignoreCase = true)) `object` = i 43 | } 44 | return `object` 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/setting/settings/SettingString.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.setting.settings 4 | 5 | import me.halqq.aurora.client.api.module.Module 6 | import me.halqq.aurora.client.api.setting.Setting 7 | 8 | class SettingString(name: String?, module: Module?, private var value: String, visible: Boolean) : 9 | Setting(name, module, visible) { 10 | 11 | override fun getValue(): String { 12 | return value 13 | } 14 | 15 | override fun setValue(value: String) { 16 | this.value = value 17 | } 18 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/IPlayerControllerMP.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util; 4 | 5 | public interface IPlayerControllerMP { 6 | 7 | void setBlockHitDelay(int delay); 8 | 9 | void setIsHittingBlock(boolean hittingBlock); 10 | 11 | float getCurBlockDamageMP(); 12 | 13 | void setCurBlockDamageMP(float curBlockDamageMP); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/MinecraftInstance.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util; 4 | 5 | import net.minecraft.client.Minecraft; 6 | 7 | 8 | public class MinecraftInstance { 9 | 10 | public static Minecraft mc = Minecraft.getMinecraft(); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/Minecraftable.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util; 4 | 5 | import net.minecraft.client.Minecraft; 6 | 7 | 8 | public interface Minecraftable { 9 | 10 | public static Minecraft mc = Minecraft.getMinecraft(); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/utils/ColorUtil.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util.utils 4 | 5 | import java.awt.Color 6 | 7 | object ColorUtil { 8 | fun getRainbow(speed: Int, offset: Int, s: Float, b: Float): Int { 9 | val hue = ((System.currentTimeMillis() + offset.toLong()) % speed.toLong()).toFloat() 10 | return Color.getHSBColor(hue / speed.toFloat(), s, b).rgb 11 | } 12 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/utils/EntropyUtils.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util.utils; 4 | 5 | public class EntropyUtils { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/utils/GeometryMasks.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util.utils; 4 | 5 | import net.minecraft.util.EnumFacing; 6 | 7 | import java.util.HashMap; 8 | 9 | public final class GeometryMasks { 10 | 11 | public static final HashMap FACEMAP = new HashMap<>(); 12 | 13 | static { 14 | FACEMAP.put(EnumFacing.DOWN, Quad.DOWN); 15 | FACEMAP.put(EnumFacing.WEST, Quad.WEST); 16 | FACEMAP.put(EnumFacing.NORTH, Quad.NORTH); 17 | FACEMAP.put(EnumFacing.SOUTH, Quad.SOUTH); 18 | FACEMAP.put(EnumFacing.EAST, Quad.EAST); 19 | FACEMAP.put(EnumFacing.UP, Quad.UP); 20 | } 21 | 22 | public static final class Quad { 23 | public static final int DOWN = 0x01; 24 | public static final int UP = 0x02; 25 | public static final int NORTH = 0x04; 26 | public static final int SOUTH = 0x08; 27 | public static final int WEST = 0x10; 28 | public static final int EAST = 0x20; 29 | public static final int ALL = DOWN | UP | NORTH | SOUTH | WEST | EAST; 30 | } 31 | 32 | public static final class Line { 33 | public static final int DOWN_WEST = 0x11; 34 | public static final int UP_WEST = 0x12; 35 | public static final int DOWN_EAST = 0x21; 36 | public static final int UP_EAST = 0x22; 37 | public static final int DOWN_NORTH = 0x05; 38 | public static final int UP_NORTH = 0x06; 39 | public static final int DOWN_SOUTH = 0x09; 40 | public static final int UP_SOUTH = 0x0A; 41 | 42 | public static final int NORTH_WEST = 0x14; 43 | public static final int NORTH_EAST = 0x24; 44 | public static final int SOUTH_WEST = 0x18; 45 | public static final int SOUTH_EAST = 0x28; 46 | public static final int ALL = DOWN_WEST | UP_WEST | DOWN_EAST | UP_EAST | DOWN_NORTH | UP_NORTH | DOWN_SOUTH | UP_SOUTH | NORTH_WEST | NORTH_EAST | SOUTH_WEST | SOUTH_EAST; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/utils/InventoryUtil.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util.utils; 4 | 5 | import me.halqq.aurora.client.api.util.Minecraftable; 6 | import net.minecraft.block.Block; 7 | import net.minecraft.inventory.ClickType; 8 | import net.minecraft.item.Item; 9 | import net.minecraft.item.ItemBlock; 10 | import net.minecraft.item.ItemStack; 11 | import net.minecraft.network.play.client.CPacketHeldItemChange; 12 | import scala.tools.nsc.doc.model.Public; 13 | 14 | import java.util.Arrays; 15 | import java.util.List; 16 | import java.util.stream.Collectors; 17 | 18 | public class InventoryUtil implements Minecraftable { 19 | 20 | 21 | 22 | public static int swapToHotbarSlot(int slot, boolean silent){ 23 | if (mc.player.inventory.currentItem == slot || slot < 0 || slot > 8) return slot; 24 | InventoryUtil.mc.player.connection.sendPacket(new CPacketHeldItemChange(slot)); if (!silent) mc.player.inventory.currentItem = slot; 25 | mc.playerController.updateController(); 26 | return slot; 27 | } 28 | 29 | 30 | 31 | public static int getItemSlot(Item item) { 32 | int itemSlot = -1; 33 | for (int i = 45; i > 0; --i) { 34 | if (mc.player.inventory.getStackInSlot(i).getItem().equals(item)) { 35 | itemSlot = i; 36 | break; 37 | } 38 | } 39 | return itemSlot; 40 | } 41 | 42 | 43 | 44 | public static void switchToSlot(int slot) { 45 | if (mc.player.inventory.currentItem == slot || slot == -1) { 46 | return; 47 | } 48 | mc.player.connection.sendPacket(new CPacketHeldItemChange(slot)); 49 | mc.player.inventory.currentItem = slot; 50 | mc.playerController.updateController(); 51 | } 52 | 53 | 54 | 55 | 56 | 57 | public static int findItem(Class clazz) { 58 | for (int i = 0; i < 9; ++i) { 59 | ItemStack stack = mc.player.inventory.getStackInSlot(i); 60 | if (stack == ItemStack.EMPTY) continue; 61 | if (clazz.isInstance(stack.getItem())) { 62 | return i; 63 | } 64 | if (!(stack.getItem() instanceof ItemBlock) || !clazz.isInstance((( ItemBlock ) stack.getItem()).getBlock())) 65 | continue; 66 | return i; 67 | } 68 | return -1; 69 | } 70 | } 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/utils/MSound.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util.utils; 4 | 5 | import javax.annotation.Nullable; 6 | import net.minecraft.client.audio.ISound; 7 | import net.minecraft.client.audio.Sound; 8 | import net.minecraft.client.audio.SoundEventAccessor; 9 | import net.minecraft.client.audio.SoundHandler; 10 | import net.minecraft.util.ResourceLocation; 11 | import net.minecraft.util.SoundCategory; 12 | 13 | public class MSound { 14 | public static final ISound sound; 15 | private static final String song = "msound"; 16 | private static final ResourceLocation loc; 17 | 18 | static { 19 | loc = new ResourceLocation("sounds/msound.ogg"); 20 | sound = new ISound(){ 21 | private final int pitch = 1; 22 | private final int volume = 1; 23 | 24 | @Override 25 | public ResourceLocation getSoundLocation() { 26 | return loc; 27 | } 28 | 29 | @Nullable 30 | @Override 31 | public SoundEventAccessor createAccessor(SoundHandler soundHandler) { 32 | return new SoundEventAccessor(loc, "Nya"); 33 | } 34 | 35 | @Override 36 | public Sound getSound() { 37 | return new Sound(MSound.song, 1.0f, 1.0f, 1, Sound.Type.SOUND_EVENT, false); 38 | } 39 | 40 | @Override 41 | public SoundCategory getCategory() { 42 | return SoundCategory.VOICE; 43 | } 44 | 45 | @Override 46 | public boolean canRepeat() { 47 | return true; 48 | } 49 | 50 | @Override 51 | public int getRepeatDelay() { 52 | return 2; 53 | } 54 | 55 | @Override 56 | public float getVolume() { 57 | return 1.0f; 58 | } 59 | 60 | @Override 61 | public float getPitch() { 62 | return 1.0f; 63 | } 64 | 65 | @Override 66 | public float getXPosF() { 67 | return 1.0f; 68 | } 69 | 70 | @Override 71 | public float getYPosF() { 72 | return 0.0f; 73 | } 74 | 75 | @Override 76 | public float getZPosF() { 77 | return 0.0f; 78 | } 79 | 80 | @Override 81 | public ISound.AttenuationType getAttenuationType() { 82 | return ISound.AttenuationType.LINEAR; 83 | } 84 | }; 85 | } 86 | 87 | public MSound(String song, float v, float v1, int i, Sound.Type soundEvent) { 88 | } 89 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/utils/MathUtil.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util.utils; 4 | 5 | public class MathUtil { 6 | public static double square(double input) { 7 | return input * input; 8 | } 9 | 10 | public static double roundAvoid(double value, int places) { 11 | double scale = Math.pow(10, places); 12 | return Math.round(value * scale) / scale; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/utils/MiscUtil.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util.utils; 4 | 5 | import me.halqq.aurora.client.api.util.Minecraftable; 6 | import net.minecraft.client.settings.KeyBinding; 7 | import net.minecraft.util.ResourceLocation; 8 | import org.lwjgl.opengl.Display; 9 | 10 | import javax.imageio.ImageIO; 11 | import java.awt.image.BufferedImage; 12 | import java.io.IOException; 13 | import java.io.InputStream; 14 | import java.nio.ByteBuffer; 15 | 16 | 17 | public class MiscUtil implements Minecraftable { 18 | 19 | public static KeyBinding[] keys = { 20 | mc.gameSettings.keyBindForward, 21 | mc.gameSettings.keyBindBack, 22 | mc.gameSettings.keyBindLeft, 23 | mc.gameSettings.keyBindRight, 24 | mc.gameSettings.keyBindJump, 25 | mc.gameSettings.keyBindSprint 26 | }; 27 | 28 | public static void loadClientIcon() { 29 | try { 30 | InputStream bigIcon = mc.getResourceManager().getResource(new ResourceLocation("aurora/icon_32.png")).getInputStream(); 31 | InputStream smallIcon = mc.getResourceManager().getResource(new ResourceLocation("aurora/icon_16.png")).getInputStream(); 32 | Display.setIcon(new ByteBuffer[]{ 33 | loadIcon(bigIcon), 34 | loadIcon(smallIcon) 35 | }); 36 | } catch (IOException ignored) { 37 | } 38 | } 39 | 40 | private static ByteBuffer loadIcon(final InputStream iconFile) throws IOException { 41 | final BufferedImage icon = ImageIO.read(iconFile); 42 | 43 | final int[] rgb = icon.getRGB(0, 0, icon.getWidth(), icon.getHeight(), null, 0, icon.getWidth()); 44 | 45 | final ByteBuffer buffer = ByteBuffer.allocate(4 * rgb.length); 46 | for (int color : rgb) { 47 | buffer.putInt(color << 8 | ((color >> 24) & 0xFF)); 48 | } 49 | buffer.flip(); 50 | return buffer; 51 | } 52 | 53 | public boolean setTick(){return mc.player.ticksExisted % 2 == 0;} 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/utils/RotateUtil.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util.utils; 4 | 5 | import net.minecraft.entity.player.EntityPlayer; 6 | 7 | public class RotateUtil 8 | 9 | { 10 | 11 | static boolean isSpoofingAngles; 12 | static double yaw; 13 | static double pitch; 14 | 15 | public static double[] calculateLookAt(double px, double py, double pz, EntityPlayer me) { 16 | double dirx = me.posX - px; 17 | double diry = me.posY - py; 18 | double dirz = me.posZ - pz; 19 | 20 | double len = Math.sqrt(dirx*dirx + diry*diry + dirz*dirz); 21 | 22 | dirx /= len; 23 | diry /= len; 24 | dirz /= len; 25 | 26 | double pitch = Math.asin(diry); 27 | double yaw = Math.atan2(dirz, dirx); 28 | 29 | pitch = pitch * 180.0d / Math.PI; 30 | yaw = yaw * 180.0d / Math.PI; 31 | 32 | yaw += 90f; 33 | 34 | return new double[]{yaw,pitch}; 35 | } 36 | 37 | public static void setYawAndPitch(float yaw1, float pitch1) { 38 | yaw = yaw1; 39 | pitch = pitch1; 40 | isSpoofingAngles = true; 41 | } 42 | 43 | public void lookAtPacket(double px, double py, double pz, EntityPlayer me) { 44 | double[] v = calculateLookAt(px, py, pz, me); 45 | setYawAndPitch((float) v[0], (float) v[1]); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/api/util/utils/TimerUtil.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.api.util.utils; 4 | 5 | public class TimerUtil { 6 | 7 | long startTime = System.currentTimeMillis(); 8 | long delay = 0L; 9 | boolean paused = false; 10 | private long time = -1L; 11 | 12 | public boolean isPassed() { 13 | return !this.paused && System.currentTimeMillis() - this.startTime >= this.delay; 14 | } 15 | 16 | public boolean passed(final long ms) { 17 | return this.getTime(System.nanoTime() - this.time) >= ms; 18 | } 19 | 20 | public long getTime(final long time) { 21 | return time / 1000000L; 22 | } 23 | 24 | public void resetDelay() { 25 | this.startTime = System.currentTimeMillis(); 26 | } 27 | 28 | public void setDelay(long delay) { 29 | this.delay = delay; 30 | } 31 | 32 | public boolean isPaused() { 33 | return this.paused; 34 | } 35 | 36 | public void setPaused(boolean paused) { 37 | this.paused = paused; 38 | } 39 | 40 | public long getStartTime() { 41 | return this.startTime; 42 | } 43 | 44 | public boolean passedMs(long ms) { 45 | return this.passedNS(this.convertToNS(ms)); 46 | } 47 | 48 | public boolean passedMS(final long ms) { 49 | return this.getMs(System.nanoTime() - this.time) >= ms; 50 | } 51 | 52 | public boolean passedNS(long ns) { 53 | return System.nanoTime() - this.time >= ns; 54 | } 55 | 56 | public long getPassedTimeMs() { 57 | return this.getMs(System.nanoTime() - this.time); 58 | } 59 | 60 | public void reset() { 61 | this.time = System.nanoTime(); 62 | } 63 | 64 | public long getMs(long time) { 65 | return time / 1000000L; 66 | } 67 | 68 | public boolean hasPassed(double ms) { 69 | return System.currentTimeMillis() - time >= ms; 70 | } 71 | 72 | public long convertToNS(long time) { 73 | return time * 1000000L; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/Aurora.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl 4 | 5 | import me.halqq.aurora.client.api.command.CommandManager 6 | import me.halqq.aurora.client.api.config.ConfigManager 7 | import me.halqq.aurora.client.api.font.TextManager 8 | import me.halqq.aurora.client.api.gui.ClientGuiScreen 9 | import me.halqq.aurora.client.api.module.ModuleManager 10 | import me.halqq.aurora.client.api.setting.SettingManager 11 | import me.halqq.aurora.client.api.util.utils.MiscUtil 12 | import net.minecraftforge.fml.common.Mod 13 | import net.minecraftforge.fml.common.event.FMLInitializationEvent 14 | import net.minecraftforge.fml.common.event.FMLPostInitializationEvent 15 | import org.lwjgl.opengl.Display 16 | 17 | 18 | @Mod(modid = Aurora.MOD_ID, name = Aurora.MOD_NAME, version = Aurora.VERSION) 19 | 20 | class Aurora { 21 | var customMainScreen: GuiCustomMainScreen? = null 22 | @Mod.EventHandler 23 | fun init(event: FMLInitializationEvent?) { 24 | customMainScreen = GuiCustomMainScreen() 25 | } 26 | 27 | lateinit var discord_rpc: RPC 28 | @Mod.EventHandler 29 | fun postInit(event: FMLPostInitializationEvent?) { 30 | Display.setTitle(MOD_NAME + " " + VERSION) 31 | MiscUtil.loadClientIcon() 32 | SettingManager.INSTANCE = SettingManager() 33 | ConfigManager.INSTANCE = ConfigManager() 34 | TextManager.INSTANCE = TextManager() 35 | ModuleManager.INSTANCE = ModuleManager() 36 | CommandManager.INSTANCE = CommandManager() 37 | ClientGuiScreen.INSTANCE = ClientGuiScreen() 38 | ConfigManager.INSTANCE.loadConfigs() 39 | discord_rpc = RPC() 40 | } 41 | 42 | fun rpcGet(): RPC { 43 | return discord_rpc 44 | } 45 | 46 | companion object { 47 | const val MOD_ID = "aurora" 48 | const val MOD_NAME = "Aurora" 49 | const val VERSION = "0.0.6" 50 | 51 | @Mod.Instance 52 | lateinit var INSTANCE: Aurora 53 | } 54 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/commands/Bind.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.commands; 4 | 5 | import com.mojang.realmsclient.gui.ChatFormatting; 6 | import me.halqq.aurora.client.api.command.Command; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.module.ModuleManager; 9 | import me.halqq.aurora.client.api.util.utils.MessageUtil; 10 | import org.lwjgl.input.Keyboard; 11 | 12 | 13 | public class Bind extends Command { 14 | 15 | public Bind() { 16 | super("bind", new String[]{"[module]", "[key]"}); 17 | } 18 | 19 | @Override 20 | public void execute(String[] commands) { 21 | 22 | if (commands.length == 1) { 23 | MessageUtil.sendMessage(getCommandPrefix() + "bind " + ChatFormatting.AQUA + "[module] [key]"); 24 | return; 25 | } 26 | 27 | String rkey = commands[1]; 28 | String moduleName = commands[0]; 29 | Module module = ModuleManager.INSTANCE.getModule(moduleName); 30 | 31 | if (module == null) { 32 | MessageUtil.sendMessage("That module does not exist."); 33 | return; 34 | } 35 | 36 | if (rkey == null) { 37 | MessageUtil.sendMessage(getCommandPrefix() + "bind " + ChatFormatting.AQUA + "[module] [key]"); 38 | return; 39 | } 40 | 41 | int key = Keyboard.getKeyIndex(rkey.toUpperCase()); 42 | 43 | if (rkey.equalsIgnoreCase("none")) { 44 | key = 0; 45 | } 46 | 47 | if (key == 0) { 48 | module.setKey(key); 49 | MessageUtil.sendMessage(module.getName() + " keybind has been set to NONE."); 50 | return; 51 | } 52 | 53 | module.setKey(key); 54 | MessageUtil.sendMessage(module.getName() + " keybind has been set to " + rkey.toUpperCase() + "."); 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/commands/Friend.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.commands; 4 | 5 | import me.halqq.aurora.client.api.command.Command; 6 | import me.halqq.aurora.client.api.friend.FriendManager; 7 | import me.halqq.aurora.client.api.util.utils.MessageUtil; 8 | 9 | public class Friend extends Command { 10 | 11 | public Friend() { 12 | super("friend"); 13 | } 14 | 15 | @Override 16 | public void execute(String[] commands) { 17 | 18 | String key = commands[0]; 19 | String friende = commands[1]; 20 | 21 | if (key.contains("add")) { 22 | FriendManager.addfriend(friende); 23 | MessageUtil.sendMessage("Added friend " + friende); 24 | 25 | } else if (key.contains("remove")) { 26 | FriendManager.removeFriend(friende); 27 | MessageUtil.sendMessage("Removed friend " + friende); 28 | 29 | } else if (key.contains("list")) { 30 | MessageUtil.sendMessage("Friends: " + FriendManager.INSTANCE.getFriendname()); 31 | 32 | } 33 | 34 | if(!(key.contains("list") || key.contains("add") || key.contains("remove") || key.contains("abvvs"))){ 35 | MessageUtil.sendMessage("Invalid command, use : friend < add | remove | list > < friend >"); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/commands/Help.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.commands; 4 | 5 | import me.halqq.aurora.client.api.command.Command; 6 | import me.halqq.aurora.client.api.command.CommandManager; 7 | import me.halqq.aurora.client.api.util.utils.MessageUtil; 8 | 9 | 10 | public class Help extends Command { 11 | 12 | public Help() { 13 | super("help"); 14 | } 15 | 16 | @Override 17 | public void execute(String[] commands) { 18 | 19 | MessageUtil.sendMessage("Available commands:"); 20 | 21 | for (Command command : CommandManager.INSTANCE.getCommands()) { 22 | MessageUtil.sendMessage(Command.getCommandPrefix() + command.getName()); 23 | } 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/commands/Prefix.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.commands; 4 | 5 | import com.mojang.realmsclient.gui.ChatFormatting; 6 | import me.halqq.aurora.client.api.command.Command; 7 | import me.halqq.aurora.client.api.command.CommandManager; 8 | import me.halqq.aurora.client.api.util.utils.MessageUtil; 9 | 10 | 11 | public class Prefix extends Command { 12 | 13 | public Prefix() { 14 | super("prefix", new String[]{"[prefix]"}); 15 | } 16 | 17 | @Override 18 | public void execute(String[] commands) { 19 | if (commands.length == 1) { 20 | MessageUtil.sendMessage(Command.getCommandPrefix() + "prefix " + ChatFormatting.AQUA + "[prefix]"); 21 | return; 22 | } 23 | 24 | CommandManager.INSTANCE.setPrefix(commands[0]); 25 | MessageUtil.sendMessage("Set command prefix to " + ChatFormatting.AQUA + commands[0]); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/commands/Reload.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.commands; 4 | 5 | import me.halqq.aurora.client.api.command.Command; 6 | import me.halqq.aurora.client.api.config.ConfigManager; 7 | import me.halqq.aurora.client.api.util.utils.MessageUtil; 8 | 9 | 10 | public class Reload extends Command { 11 | 12 | public Reload() { 13 | super("reload"); 14 | } 15 | 16 | @Override 17 | public void execute(String[] commands) { 18 | ConfigManager.INSTANCE.loadConfigs(); 19 | MessageUtil.sendMessage("Reloaded config."); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/commands/Save.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.commands; 4 | 5 | import me.halqq.aurora.client.api.command.Command; 6 | import me.halqq.aurora.client.api.config.ConfigManager; 7 | import me.halqq.aurora.client.api.util.utils.MessageUtil; 8 | 9 | 10 | public class Save extends Command { 11 | 12 | public Save() { 13 | super("save"); 14 | } 15 | 16 | @Override 17 | public void execute(String[] commands) { 18 | ConfigManager.INSTANCE.saveConfigs(); 19 | MessageUtil.sendMessage("Saved config."); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/commands/Toggle.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.commands; 4 | 5 | import com.mojang.realmsclient.gui.ChatFormatting; 6 | import me.halqq.aurora.client.api.command.Command; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.module.ModuleManager; 9 | import me.halqq.aurora.client.api.util.utils.MessageUtil; 10 | 11 | 12 | public class Toggle extends Command { 13 | 14 | public Toggle() { 15 | super("toggle", new String[]{"[module]"}); 16 | } 17 | 18 | @Override 19 | public void execute(String[] commands) { 20 | 21 | if (commands.length == 1) { 22 | MessageUtil.sendMessage(Command.getCommandPrefix() + "toggle " + ChatFormatting.AQUA + "[module]"); 23 | return; 24 | } 25 | 26 | Module module = ModuleManager.INSTANCE.getModule(commands[0]); 27 | 28 | if (module == null) { 29 | MessageUtil.sendMessage("That module does not exist."); 30 | return; 31 | } 32 | module.toggle(); 33 | } 34 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/ArmorHUD.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.hudmodules; 4 | 5 | import me.halqq.aurora.client.api.font.TextManager; 6 | import me.halqq.aurora.client.api.module.Category; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.module.ModuleManager; 9 | import me.halqq.aurora.client.impl.modules.other.CustomFont; 10 | import net.minecraft.client.gui.ScaledResolution; 11 | import net.minecraft.client.renderer.GlStateManager; 12 | import net.minecraft.client.renderer.RenderItem; 13 | import net.minecraft.item.ItemStack; 14 | 15 | import java.awt.*; 16 | 17 | 18 | public class ArmorHUD extends Module { 19 | 20 | public ArmorHUD() { 21 | super("Armor", Category.HUD); 22 | } 23 | 24 | public static RenderItem itemRender = mc.getRenderItem(); 25 | 26 | @Override 27 | public void onRender2D() { 28 | ScaledResolution sr = new ScaledResolution(mc); 29 | GlStateManager.enableTexture2D(); 30 | int i = sr.getScaledWidth() / 2; 31 | int iteration = 0; 32 | int y = sr.getScaledHeight() - 55 - (mc.player.isInWater() && mc.playerController.gameIsSurvivalOrAdventure() ? 10 : 0); 33 | for (ItemStack is : mc.player.inventory.armorInventory) { 34 | ++iteration; 35 | if (is.isEmpty()) continue; 36 | int x = i - 90 + (9 - iteration) * 20 + 2; 37 | GlStateManager.enableDepth(); 38 | itemRender.zLevel = 200.0f; 39 | itemRender.renderItemAndEffectIntoGUI(is, x, y); 40 | itemRender.renderItemOverlayIntoGUI(mc.fontRenderer, is, x, y, ""); 41 | itemRender.zLevel = 0.0f; 42 | GlStateManager.enableTexture2D(); 43 | GlStateManager.disableLighting(); 44 | GlStateManager.disableDepth(); 45 | String s = is.getCount() > 1 ? is.getCount() + "" : ""; 46 | TextManager.INSTANCE.drawStringWithShadow(s, x + 19 - 2 - TextManager.INSTANCE.getStringWidth(s), y + 9, 0xFFFFFF, ModuleManager.INSTANCE.getModule(CustomFont.class).isEnabled()); 47 | int dmg = 0; 48 | int itemDurability = is.getMaxDamage() - is.getItemDamage(); 49 | float green = ((float)is.getMaxDamage() - (float)is.getItemDamage()) / (float)is.getMaxDamage(); 50 | float red = 1.0f - green; 51 | dmg = 100 - (int)(red * 100.0f); 52 | TextManager.INSTANCE.drawStringWithShadow(dmg + "", x + 8 - TextManager.INSTANCE.getStringWidth(dmg + "") / 2, y - 11, new Color((int)(red * 255.0f), (int)(green * 255.0f), 0).getRGB(), ModuleManager.INSTANCE.getModule(CustomFont.class).isEnabled()); 53 | } 54 | GlStateManager.enableDepth(); 55 | GlStateManager.disableLighting(); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/ArrayList.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.hudmodules; 4 | 5 | import me.halqq.aurora.client.api.font.CustomFont; 6 | import me.halqq.aurora.client.api.font.TextManager; 7 | import me.halqq.aurora.client.api.gui.util.Render2DUtil; 8 | import me.halqq.aurora.client.api.module.Category; 9 | import me.halqq.aurora.client.api.module.Module; 10 | import me.halqq.aurora.client.api.module.ModuleManager; 11 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean; 12 | import me.halqq.aurora.client.api.setting.settings.SettingInteger; 13 | import me.halqq.aurora.client.api.util.utils.RenderUtil; 14 | import net.minecraft.client.gui.ScaledResolution; 15 | 16 | import java.awt.*; 17 | 18 | 19 | public class ArrayList extends Module { 20 | 21 | public ArrayList() { 22 | super("ArrayList", Category.HUD); 23 | } 24 | 25 | SettingInteger xx = create("X", 684, 0, 1000); 26 | SettingInteger yy = create("Y", 3, 0, 1000); 27 | SettingBoolean shadow = create("Shadow", false); 28 | SettingBoolean custom = create("CustomFont", true); 29 | SettingBoolean background = create("Background", true); 30 | SettingBoolean outline = create("Outline", true); 31 | 32 | 33 | @Override 34 | public void onRender2D(){ 35 | int modCount = 0; 36 | int idk = 1; 37 | for (Module module : ModuleManager.INSTANCE.getModules()) { 38 | if (!module.isEnabled()) continue; 39 | 40 | if(background.getValue()){ 41 | Render2DUtil.drawBorderedRect(xx.getValue(), yy.getValue() + (modCount * 10 ) + 2, - (TextManager.INSTANCE.getStringWidth(module.getName()) + 4), TextManager.INSTANCE.getFontHeight() + 4, 1, 0x80000000, 0x80000000); 42 | } 43 | 44 | if(outline.getValue()){ 45 | RenderUtil.drawLine(xx.getValue() - TextManager.INSTANCE.getStringWidth(module.getName()) + 4, yy.getValue() + (modCount * 10 ) + 2, xx.getValue() - TextManager.INSTANCE.getStringWidth(module.getName()) - 4, TextManager.INSTANCE.getFontHeight() + 4, 3, new Color(191, 0, 255, 255).getRGB()); 46 | } 47 | 48 | TextManager.INSTANCE.drawString(module.getName(), xx.getValue() - TextManager.INSTANCE.getStringWidth(module.getName()) - 2, yy.getValue() + (modCount * 10 ) + 2, -1, shadow.getValue(), custom.getValue()); 49 | idk -= TextManager.INSTANCE.getFontHeight() + 1; 50 | ++modCount; 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/Coords.java: -------------------------------------------------------------------------------- 1 | package me.halqq.aurora.client.impl.hudmodules; 2 | 3 | import me.halqq.aurora.client.api.font.TextManager; 4 | import me.halqq.aurora.client.api.module.Category; 5 | import me.halqq.aurora.client.api.module.Module; 6 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean; 7 | import me.halqq.aurora.client.api.setting.settings.SettingInteger; 8 | 9 | 10 | public class Coords extends Module { 11 | 12 | public Coords() { 13 | super("Coords", Category.HUD); 14 | } 15 | 16 | SettingInteger xx = create("X", 0, 0, 1000); 17 | SettingInteger yy = create("Y", 337, 0, 1000); 18 | SettingBoolean shadow = create("Shadow", false); 19 | SettingBoolean custom = create("CustomFont", true); 20 | 21 | 22 | @Override 23 | public void onRender2D() { 24 | String position = "null"; 25 | double x = mc.player.posX, y = mc.player.posY, z = mc.player.posZ; 26 | if (mc.player.dimension == -1) { 27 | position = String.format("%.2f, %.2f, %.2f [%.2f, %.2f]", x, y, z, x * 8, z * 8); 28 | } else if (mc.player.dimension == 0) { 29 | position = String.format("%.2f, %.2f, %.2f [%.2f, %.2f]", x, y, z, x / 8, z / 8); 30 | } else { 31 | position = String.format("%.2f, %.2f, %.2f", x, y, z); 32 | } 33 | 34 | TextManager.INSTANCE.drawString("XYZ: " + position, xx.getValue(), yy.getValue(), -1, shadow.getValue(), custom.getValue()); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/ExpCount.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.hudmodules; 4 | 5 | import me.halqq.aurora.client.api.font.TextManager; 6 | import me.halqq.aurora.client.api.module.Category; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean; 9 | import me.halqq.aurora.client.api.setting.settings.SettingInteger; 10 | import net.minecraft.init.Items; 11 | import net.minecraft.item.ItemStack; 12 | 13 | 14 | 15 | public class ExpCount extends Module { 16 | 17 | public ExpCount() { 18 | super("BottleExpCounter", Category.HUD); 19 | } 20 | 21 | SettingInteger xx = create("X", 0, 0, 1000); 22 | SettingInteger yy = create("Y", 96, 0, 1000); 23 | SettingBoolean shadow = create("Shadow", false); 24 | SettingBoolean custom = create("CustomFont", true); 25 | 26 | 27 | @Override 28 | public void onRender2D() { 29 | int xp = mc.player.inventory.mainInventory.stream().filter(stack -> stack.getItem() == Items.EXPERIENCE_BOTTLE).mapToInt(ItemStack::getCount).sum(); 30 | TextManager.INSTANCE.drawString("BottleXP: " + xp, xx.getValue(), yy.getValue(), -1, shadow.getValue(), custom.getValue()); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/Fps.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.hudmodules; 4 | 5 | import me.halqq.aurora.client.api.font.TextManager; 6 | import me.halqq.aurora.client.api.module.Category; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean; 9 | import me.halqq.aurora.client.api.setting.settings.SettingInteger; 10 | 11 | 12 | public class Fps extends Module { 13 | 14 | public Fps() { 15 | super("Fps", Category.HUD); 16 | } 17 | 18 | SettingInteger xx = create("X", 0, 0, 1000); 19 | SettingInteger yy = create("Y", 72, 0, 1000); 20 | SettingBoolean shadow = create("Shadow", false); 21 | SettingBoolean custom = create("CustomFont", true); 22 | 23 | 24 | 25 | @Override 26 | public void onRender2D() { 27 | TextManager.INSTANCE.drawString("FPS: " + mc.getDebugFPS(), xx.getValue(), yy.getValue(), -1, shadow.getValue(), custom.getValue()); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/Ping.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.hudmodules; 4 | 5 | import me.halqq.aurora.client.api.font.TextManager; 6 | import me.halqq.aurora.client.api.module.Category; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean; 9 | import me.halqq.aurora.client.api.setting.settings.SettingInteger; 10 | 11 | import java.util.Objects; 12 | 13 | 14 | public class Ping extends Module { 15 | 16 | public Ping() { 17 | super("Ping", Category.HUD); 18 | } 19 | 20 | SettingInteger xx = create("X", 0, 0, 1000); 21 | SettingInteger yy = create("Y", 50, 0, 1000); 22 | SettingBoolean shadow = create("Shadow", false); 23 | SettingBoolean custom = create("CustomFont", true); 24 | 25 | @Override 26 | public void onRender2D() { 27 | int pinger = -1; 28 | try {pinger = mc.player.connection.getPlayerInfo(mc.player.getUniqueID()).getResponseTime();} catch (NullPointerException ignored) {} 29 | TextManager.INSTANCE.drawString("Ping: " + pinger, xx.getValue(), yy.getValue(), -1, shadow.getValue(), custom.getValue()); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/PotionHud.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.hudmodules; 4 | 5 | import com.mojang.realmsclient.gui.ChatFormatting; 6 | import me.halqq.aurora.client.api.font.TextManager; 7 | import me.halqq.aurora.client.api.module.Category; 8 | import me.halqq.aurora.client.api.module.Module; 9 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean; 10 | import me.halqq.aurora.client.api.setting.settings.SettingInteger; 11 | import net.minecraft.client.resources.I18n; 12 | 13 | import java.text.DecimalFormat; 14 | 15 | 16 | public class PotionHud extends Module { 17 | 18 | public PotionHud() { 19 | super("PotionHud", Category.HUD); 20 | } 21 | 22 | int ix; 23 | 24 | SettingInteger xx = create("X", 0, 0, 1000); 25 | SettingInteger yy = create("Y", 253, 0, 1000); 26 | SettingBoolean shadow = create("Shadow", false); 27 | SettingBoolean custom = create("CustomFont", true); 28 | 29 | @Override 30 | public void onRender2D() { 31 | ix = -1; 32 | DecimalFormat format2 = new DecimalFormat("00"); 33 | 34 | mc.player.getActivePotionEffects().forEach(effect -> { 35 | String name = I18n.format(effect.getPotion().getName()); 36 | double duration = effect.getDuration() / 19.99f; 37 | int amplifier = effect.getAmplifier() + 1; 38 | double p1 = duration % 60f; 39 | String seconds = format2.format(p1); 40 | String s = name + " " + amplifier + ChatFormatting.GRAY + " " + (int) duration / 60 + ":" + seconds; 41 | 42 | 43 | TextManager.INSTANCE.drawStringWithShadow(s, xx.getValue(), yy.getValue() + (ix * 10), -1); 44 | ix++; 45 | }); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/Server.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.hudmodules; 4 | 5 | import me.halqq.aurora.client.api.font.TextManager; 6 | import me.halqq.aurora.client.api.module.Category; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean; 9 | import me.halqq.aurora.client.api.setting.settings.SettingInteger; 10 | 11 | 12 | public class Server extends Module { 13 | 14 | public Server() { 15 | super("Server", Category.HUD); 16 | } 17 | 18 | SettingInteger xx = create("X", 0, 0, 1000); 19 | SettingInteger yy = create("Y", 0, 0, 1000); 20 | SettingBoolean shadow = create("Shadow", false); 21 | SettingBoolean custom = create("CustomFont", true); 22 | 23 | 24 | @Override 25 | public void onRender2D() { 26 | if (mc.isSingleplayer()) { 27 | TextManager.INSTANCE.drawString("Server: Singleplayer", xx.getValue(), yy.getValue(), -1, shadow.getValue(), custom.getValue()); 28 | } else { 29 | TextManager.INSTANCE.drawString("Server: " + mc.getCurrentServerData().serverIP, xx.getValue(), yy.getValue(), -1, shadow.getValue(), custom.getValue()); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/TabGui.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.hudmodules; 4 | 5 | import me.halqq.aurora.client.api.font.TextManager; 6 | import me.halqq.aurora.client.api.module.Category; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.module.ModuleManager; 9 | import net.minecraft.client.gui.Gui; 10 | 11 | import java.awt.*; 12 | import java.util.List; 13 | 14 | 15 | public class TabGui extends Module { 16 | 17 | public TabGui() { 18 | super("TabGui", Category.HUD); 19 | } 20 | 21 | public static int x = 2; 22 | public static int y = 2; 23 | public static int width = 100; 24 | public static int height = 14; 25 | 26 | @Override 27 | public void onRender2D() { 28 | 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/TotemCount.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.hudmodules; 4 | 5 | import me.halqq.aurora.client.api.font.TextManager; 6 | import me.halqq.aurora.client.api.module.Category; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.setting.settings.SettingInteger; 9 | import net.minecraft.init.Items; 10 | import net.minecraft.item.ItemStack; 11 | 12 | 13 | public class TotemCount extends Module { 14 | 15 | public TotemCount() { 16 | super("TotemCount", Category.HUD); 17 | } 18 | 19 | SettingInteger xx = create("X", 0, 0, 1000); 20 | SettingInteger yy = create("Y", 36, 0, 1000); 21 | 22 | @Override 23 | public void onRender2D() { 24 | int totems = mc.player.inventory.mainInventory.stream().filter(stack -> stack.getItem() == Items.TOTEM_OF_UNDYING).mapToInt(ItemStack::getCount).sum(); 25 | 26 | TextManager.INSTANCE.drawString("Totems: " + totems, xx.getValue(), yy.getValue(), -1, false, true); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/hudmodules/WaterMark.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.hudmodules; 4 | 5 | import me.halqq.aurora.client.api.font.TextManager; 6 | import me.halqq.aurora.client.api.module.Category; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean; 9 | import me.halqq.aurora.client.impl.Aurora; 10 | 11 | 12 | public class WaterMark extends Module { 13 | 14 | public WaterMark() { 15 | super("WaterMark", Category.HUD); 16 | } 17 | 18 | SettingBoolean shadow = create("Shadow", false); 19 | SettingBoolean custom = create("CustomFont", true); 20 | 21 | @Override 22 | public void onRender2D() { 23 | TextManager.INSTANCE.drawString("Aurora " + Aurora.VERSION, 2, 2, -1, shadow.getValue(), custom.getValue()); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/client/ClickGui.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.client 4 | 5 | import me.halqq.aurora.client.api.gui.ClientGuiScreen 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import me.halqq.aurora.client.api.util.utils.ColorUtil 9 | import net.minecraft.util.ResourceLocation 10 | import org.lwjgl.input.Keyboard 11 | import java.awt.Color 12 | 13 | class ClickGui : Module("ClickGui", Category.OTHER) { 14 | 15 | var scrollSpeed = create("ScrollSpeed", 12, 1, 20) 16 | var soundClick = create("SoundClick", true) 17 | var red = create("Red", 0, 0, 225) 18 | var green = create("Green", 0, 0, 225) 19 | var blue = create("Blue", 255, 0, 225) 20 | var alpha = create("Alpha", 170, 0, 225) 21 | var rainbow = create("Rainbow", false) 22 | var speed = create("Speed", 40, 1, 100) 23 | var blur = create("Blur", false) 24 | var particle = create("Particle", true) 25 | var particleamount = create("ParticleAmount", 80, 10, 100) 26 | 27 | init { 28 | if (key == 0) { 29 | key = Keyboard.KEY_RCONTROL 30 | } 31 | } 32 | 33 | override fun onUpdate(){ 34 | if (rainbow.value) { 35 | val color = Color( 36 | ColorUtil.getRainbow( 37 | speed.value * 100, 38 | 0, 39 | 0.6f, 40 | 1f 41 | ) 42 | ) 43 | red.value = color.red 44 | green.value = color.green 45 | blue.value = color.blue 46 | } 47 | } 48 | 49 | override fun onEnable() { 50 | if (fullNullCheck()) return 51 | if (blur.value) { 52 | mc.entityRenderer.loadShader(ResourceLocation("shaders/post/blur.json")) 53 | } 54 | mc.displayGuiScreen(ClientGuiScreen.INSTANCE) 55 | } 56 | 57 | override fun onDisable() { 58 | if (fullNullCheck()) return 59 | try { 60 | if (mc.entityRenderer.isShaderActive) { 61 | mc.entityRenderer.getShaderGroup().deleteShaderGroup() 62 | } 63 | } catch (ignored: Exception) { 64 | } 65 | mc.displayGuiScreen(null) 66 | } 67 | 68 | val color: Color 69 | get() = Color(red.value, green.value, blue.value, alpha.value) 70 | 71 | companion object{ 72 | lateinit var INSTANCE: ClickGui 73 | } 74 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/client/HUDEditor.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.client; 4 | 5 | import me.halqq.aurora.client.api.hud.HudEditorScreen; 6 | import me.halqq.aurora.client.api.module.Category; 7 | import me.halqq.aurora.client.api.module.Module; 8 | 9 | 10 | public class HUDEditor extends Module { 11 | 12 | public HUDEditor() { 13 | super("HUDEditor", Category.OTHER); 14 | } 15 | 16 | @Override 17 | public void onEnable() { 18 | mc.displayGuiScreen(new HudEditorScreen()); 19 | } 20 | 21 | @Override 22 | public void onDisable() { 23 | mc.displayGuiScreen(null); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/client/HalqGui.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.client 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.impl.Aurora 8 | 9 | class HalqGui : Module("HalqGui", Category.OTHER) { 10 | override fun onEnable() { 11 | toggle() 12 | } 13 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/AimBot.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraft.entity.player.EntityPlayer 8 | import net.minecraft.item.ItemBow 9 | import net.minecraft.util.math.MathHelper 10 | 11 | class AimBot : Module("AimBot", Category.COMBAT) { 12 | 13 | var range = create("Range", 1.0, 1.0, 10.0) 14 | var bow = create("Bow", true) 15 | 16 | override fun onUpdate() { 17 | if (mc.player == null) return 18 | if (bow.value) { 19 | if (mc.player.heldItemMainhand.getItem() is ItemBow) { 20 | mc.world.playerEntities.stream().filter { entityPlayer: EntityPlayer -> entityPlayer !== mc.player } 21 | .filter { entityPlayer: EntityPlayer? -> 22 | mc.player.getDistance( 23 | entityPlayer 24 | ) <= range.value 25 | }.forEach { entityPlayer: EntityPlayer -> 26 | val rotations = getRotations(entityPlayer) 27 | mc.player.rotationYaw = rotations[0] 28 | mc.player.rotationPitch = rotations[1] 29 | } 30 | } else { 31 | mc.world.playerEntities.stream().filter { entityPlayer: EntityPlayer -> entityPlayer !== mc.player } 32 | .filter { entityPlayer: EntityPlayer? -> 33 | mc.player.getDistance( 34 | entityPlayer 35 | ) <= range.value 36 | }.forEach { entityPlayer: EntityPlayer -> 37 | val rotations = getRotations(entityPlayer) 38 | mc.player.rotationYaw = rotations[0] 39 | mc.player.rotationPitch = rotations[1] 40 | } 41 | } 42 | } 43 | } 44 | 45 | fun getRotations(entityPlayer: EntityPlayer): FloatArray { 46 | val x = entityPlayer.posX - mc.player.posX 47 | val z = entityPlayer.posZ - mc.player.posZ 48 | val y = entityPlayer.posY + entityPlayer.getEyeHeight() - (mc.player.posY + mc.player.getEyeHeight()) 49 | val dist = MathHelper.sqrt(x * x + z * z).toDouble() 50 | val yaw = (Math.atan2(z, x) * 180.0 / Math.PI).toFloat() - 90.0f 51 | val pitch = -(Math.atan2(y, dist) * 180.0 / Math.PI).toFloat() 52 | return floatArrayOf(yaw, pitch) 53 | } 54 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/AutoArmor.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat; 4 | 5 | import me.halqq.aurora.client.api.module.Category; 6 | import me.halqq.aurora.client.api.module.Module; 7 | import me.halqq.aurora.client.api.setting.settings.SettingInteger; 8 | import me.halqq.aurora.client.api.util.utils.TimerUtil; 9 | import net.minecraft.enchantment.EnchantmentHelper; 10 | import net.minecraft.init.Enchantments; 11 | import net.minecraft.inventory.ClickType; 12 | import net.minecraft.item.ItemStack; 13 | 14 | 15 | public class AutoArmor extends Module { 16 | 17 | public AutoArmor() { 18 | super("AutoArmor", Category.COMBAT); 19 | } 20 | 21 | SettingInteger delay = create("Delay", 1, 1, 10); 22 | TimerUtil timer = new TimerUtil(); 23 | 24 | 25 | @Override 26 | public void onUpdate() { 27 | if (mc.player == null) return; 28 | 29 | if (timer.passedMs(delay.getValue())) { 30 | int slot = -1; 31 | int last = 0; 32 | 33 | for (int i = 0; i < 36; i++) { 34 | ItemStack stack = mc.player.inventory.getStackInSlot(i); 35 | 36 | if (stack == ItemStack.EMPTY) { 37 | slot = i; 38 | break; 39 | } 40 | 41 | if (stack.getItem() instanceof net.minecraft.item.ItemArmor) { 42 | int current = ((net.minecraft.item.ItemArmor) stack.getItem()).damageReduceAmount + EnchantmentHelper.getEnchantmentLevel(Enchantments.PROTECTION, stack); 43 | 44 | if (current > last) { 45 | last = current; 46 | slot = i; 47 | } 48 | } 49 | } 50 | 51 | if (slot != -1) { 52 | mc.playerController.windowClick(0, slot < 9 ? slot + 36 : slot, 0, ClickType.QUICK_MOVE, mc.player); 53 | timer.reset(); 54 | } 55 | } 56 | 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/AutoClicker.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import java.util.* 8 | 9 | class AutoClicker : Module("AutoClicker", Category.COMBAT) { 10 | var delay = create("Speed", 22, 0, 100) 11 | var mode = create("Mode", "Left", Arrays.asList("Attack", "Place")) 12 | override fun onUpdate() { 13 | if (mode.value.equals("Attack", ignoreCase = true)) { 14 | mc.gameSettings.keyBindAttack.pressTime = delay.value 15 | } 16 | if (mode.value.equals("Place", ignoreCase = true)) { 17 | mc.gameSettings.keyBindUseItem.pressTime = delay.value 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/AutoXp.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat 4 | 5 | import me.halqq.aurora.client.api.event.events.PacketEvent.PacketSendEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import me.halqq.aurora.client.api.util.utils.ItemUtil 9 | import net.minecraft.init.Items 10 | import net.minecraft.item.ItemExpBottle 11 | import net.minecraft.network.play.client.CPacketPlayer 12 | import net.minecraft.network.play.client.CPacketPlayerTryUseItem 13 | import net.minecraft.util.EnumHand 14 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 15 | 16 | class AutoXp : Module("AutoXp", Category.COMBAT) { 17 | private var saveslot = 0 18 | override fun onEnable() { 19 | saveslot = mc.player.inventory.currentItem 20 | mc.player.inventory.currentItem = ItemUtil.switchToHotbarSlot( 21 | ItemUtil.findHotbarBlock( 22 | ItemExpBottle::class.java 23 | ), false 24 | ) 25 | } 26 | 27 | override fun onUpdate() { 28 | if (mc.player.getHeldItem(EnumHand.MAIN_HAND).getItem() === Items.EXPERIENCE_BOTTLE) { 29 | mc.player.connection.sendPacket(CPacketPlayerTryUseItem(EnumHand.MAIN_HAND)) 30 | } 31 | } 32 | 33 | @SubscribeEvent 34 | fun onPacketSend(event: PacketSendEvent) { 35 | if (event.packet is CPacketPlayerTryUseItem && mc.player.heldItemMainhand.getItem() is ItemExpBottle) { 36 | mc.player.connection.sendPacket(CPacketPlayer.Rotation(mc.player.rotationYaw, 90.0f, mc.player.onGround)) 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/Criticals.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat 4 | 5 | import me.halqq.aurora.client.api.event.events.PacketEvent.PacketSendEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import net.minecraft.network.play.client.CPacketPlayer 9 | import net.minecraft.network.play.client.CPacketUseEntity 10 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 11 | import java.util.* 12 | 13 | class Criticals 14 | : Module("Criticals", Category.COMBAT) { 15 | var mode = create("Mode", "Packet", Arrays.asList("Vanilla", "Packet", "Mini jump")) 16 | @SubscribeEvent 17 | fun onPacketSend(event: PacketSendEvent) { 18 | if (event.packet !is CPacketUseEntity) { 19 | return 20 | } 21 | if (mode.value.equals("Vanilla", ignoreCase = true)) { 22 | if (event.packet is CPacketUseEntity) { 23 | if ((event.packet as CPacketUseEntity).getAction() == CPacketUseEntity.Action.ATTACK && mc.player.onGround) { 24 | mc.player.jump() 25 | } 26 | } 27 | } else if (mode.value.equals("Mini jump", ignoreCase = true)) { 28 | if (event.packet is CPacketUseEntity) { 29 | if ((event.packet as CPacketUseEntity).getAction() == CPacketUseEntity.Action.ATTACK && mc.player.onGround) { 30 | mc.player.jump() 31 | mc.player.motionY /= 3.0 32 | } 33 | } 34 | } else if (mode.value.equals("Packet", ignoreCase = true)) { 35 | if (event.packet is CPacketUseEntity) { 36 | if ((event.packet as CPacketUseEntity).getAction() == CPacketUseEntity.Action.ATTACK && mc.player.onGround) { 37 | mc.player.connection.sendPacket( 38 | CPacketPlayer.Position( 39 | mc.player.posX, 40 | mc.player.posY + 0.1, 41 | mc.player.posZ, 42 | false 43 | ) 44 | ) 45 | mc.player.connection.sendPacket( 46 | CPacketPlayer.Position( 47 | mc.player.posX, 48 | mc.player.posY, 49 | mc.player.posZ, 50 | false 51 | ) 52 | ) 53 | } 54 | } 55 | } 56 | } 57 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/KillAura.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat 4 | 5 | import me.halqq.aurora.client.api.friend.FriendManager 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import me.halqq.aurora.client.api.module.ModuleManager 9 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean 10 | import me.halqq.aurora.client.api.setting.settings.SettingInteger 11 | import me.halqq.aurora.client.api.util.Minecraftable 12 | import me.halqq.aurora.client.api.util.utils.InventoryUtil 13 | import me.halqq.aurora.client.api.util.utils.ItemUtil 14 | import net.minecraft.entity.monster.EntityMob 15 | import net.minecraft.entity.player.EntityPlayer 16 | import net.minecraft.item.ItemSword 17 | import net.minecraft.util.EnumHand 18 | 19 | class KillAura : Module("KillAura", Category.COMBAT) { 20 | var enemy: EntityPlayer? = null 21 | var mob: Criticals? = null 22 | var range = create("Range", 2, 0, 4) 23 | var sword = create("OnlySword", true) 24 | var sswitch = create("AutoSwitch", true) 25 | var criticals = create("Criticals", true) 26 | var srotate = false 27 | var oldSlot = 0 28 | override fun onEnable() { 29 | if (criticals.value) { 30 | ModuleManager.INSTANCE.getModule(Criticals::class.java).setEnabled() 31 | } 32 | oldSlot = mc.player.inventory.currentItem 33 | } 34 | 35 | override fun onUpdate() { 36 | killauras() 37 | } 38 | 39 | fun killauras() { 40 | for (player in mc.world.playerEntities) if (player !== mc.player) { 41 | if (!FriendManager.isFriend(player.name)) { 42 | if (mc.player.getDistance(player) < range.value) { 43 | if (mc.player.getCooledAttackStrength(0f) >= 1) { 44 | mc.playerController.attackEntity(mc.player, player) 45 | mc.player.swingArm(EnumHand.MAIN_HAND) 46 | enemy = player 47 | } 48 | } 49 | } 50 | } 51 | if (sswitch.value) { 52 | ItemUtil.switchToHotbarSlot(ItemUtil.findHotbarBlock(ItemSword::class.java), false) 53 | } 54 | } 55 | 56 | override fun onDisable() { 57 | srotate = false 58 | if (criticals.value) { 59 | ModuleManager.INSTANCE.getModule(Criticals::class.java).setDisabled() 60 | } 61 | if (mc.player.inventory.currentItem != oldSlot) { 62 | InventoryUtil.swapToHotbarSlot(oldSlot, false) 63 | } 64 | } 65 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/Offhand.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.api.util.utils.ItemUtil 8 | import me.halqq.aurora.client.api.util.utils.TimerUtil 9 | import net.minecraft.init.Items 10 | import java.util.* 11 | 12 | class Offhand : Module("OldOffhand", Category.COMBAT) { 13 | 14 | var moving = false 15 | var returnI = false 16 | var mode = create("Mode", "Gap", Arrays.asList("Crystal", "Gap", "Totem")) 17 | var health = create("Health", 16, 0, 36) 18 | private val timer: TimerUtil 19 | 20 | init { 21 | timer = TimerUtil() 22 | } 23 | 24 | override fun onUpdate() { 25 | offhandMode() 26 | } 27 | 28 | fun offhandMode() { 29 | if (mc.player.health + mc.player.absorptionAmount <= health.value) { 30 | ItemUtil.swapItemsOffhand(ItemUtil.findItem(Items.TOTEM_OF_UNDYING)) 31 | } else if (mode.value.equals("Crystal", ignoreCase = true)) { 32 | setCrystals() 33 | } else if (mc.player.health + mc.player.absorptionAmount <= health.value) { 34 | ItemUtil.swapItemsOffhand(ItemUtil.findItem(Items.TOTEM_OF_UNDYING)) 35 | } else if (mode.value.equals("Gap", ignoreCase = true)) { 36 | setGap() 37 | } else if (mc.player.health + mc.player.absorptionAmount <= health.value) { 38 | ItemUtil.swapItemsOffhand(ItemUtil.findItem(Items.TOTEM_OF_UNDYING)) 39 | } else if (mode.value.equals("Totem", ignoreCase = true)) { 40 | ItemUtil.swapItemsOffhand(ItemUtil.findItem(Items.TOTEM_OF_UNDYING)) 41 | } else if (mc.player.health + mc.player.absorptionAmount <= health.value) { 42 | ItemUtil.swapItemsOffhand(ItemUtil.findItem(Items.TOTEM_OF_UNDYING)) 43 | } 44 | } 45 | 46 | fun setCrystals(): Boolean { 47 | ItemUtil.swapItemsOffhand(ItemUtil.findItem(Items.END_CRYSTAL)) 48 | return false 49 | } 50 | 51 | fun setGap(): Boolean { 52 | ItemUtil.swapItemsOffhand(ItemUtil.findItem(Items.GOLDEN_APPLE)) 53 | return false 54 | } 55 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/SelfBow.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraft.item.ItemBow 8 | import net.minecraft.network.play.client.CPacketPlayer 9 | 10 | class SelfBow : Module("SelfBow", Category.COMBAT) { 11 | var at = create("AutoDisble", true) 12 | override fun onUpdate() { 13 | if (mc.player.inventory.getCurrentItem().getItem() is ItemBow && mc.player.isHandActive && mc.player.itemInUseMaxCount >= 3) { 14 | mc.player.connection.sendPacket(CPacketPlayer.Rotation(mc.player.cameraYaw, -90F, mc.player.onGround)) 15 | if (at.value) { 16 | toggle() 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/SelfWeb.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.api.util.utils.InventoryUtil 8 | import net.minecraft.block.BlockWeb 9 | import net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock 10 | import net.minecraft.util.EnumFacing 11 | import net.minecraft.util.EnumHand 12 | import net.minecraft.util.math.BlockPos 13 | 14 | class SelfWeb : Module("SelfWeb", Category.COMBAT) { 15 | var pos: BlockPos? = null 16 | var autodis = create("AutoDisable", true) 17 | override fun onUpdate() { 18 | doPlaceWeb() 19 | } 20 | 21 | fun doPlaceWeb() { 22 | val oldslot = mc.player.inventory.currentItem 23 | pos = BlockPos(mc.player.posX, mc.player.posY - 1, mc.player.posZ) 24 | if (InventoryUtil.swapToHotbarSlot(InventoryUtil.findItem(BlockWeb::class.java), false) == -1) return 25 | mc.player.connection.sendPacket( 26 | CPacketPlayerTryUseItemOnBlock( 27 | pos, 28 | EnumFacing.UP, 29 | EnumHand.MAIN_HAND, 30 | 0.0f, 31 | 0.0f, 32 | 0.0f 33 | ) 34 | ) 35 | if (mc.player.inventory.currentItem != oldslot) { 36 | InventoryUtil.swapToHotbarSlot(oldslot, false) 37 | } 38 | if (autodis.value) { 39 | toggle() 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/Surround.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.api.util.utils.BlockUtil 8 | import me.halqq.aurora.client.api.util.utils.InventoryUtil 9 | import net.minecraft.block.BlockObsidian 10 | import net.minecraft.init.Blocks 11 | import net.minecraft.util.math.BlockPos 12 | 13 | class Surround : Module("Surround", Category.COMBAT) { 14 | var helper = create("Help", true) 15 | var autodis = create("JumpDisable", true) 16 | var bps = create("BlockPerSec", 4, 1, 8) 17 | private val placedblock = 0 18 | private var y = 0.0 19 | var placedone = false 20 | private var placed = 0 21 | var bpps = bps.value 22 | private var centerV = false 23 | override fun onEnable() { 24 | y = mc.player.posY 25 | centerV = false 26 | } 27 | 28 | private fun placeBlocks(blocks: List) { 29 | for (bp in blocks) { 30 | if (placedblock >= bpps) return 31 | val oldslot = mc.player.inventory.currentItem 32 | if (InventoryUtil.swapToHotbarSlot(InventoryUtil.findItem(BlockObsidian::class.java), false) == -1) return 33 | when (BlockUtil.getInstance().isPlaceable(bp)) { 34 | 0 -> { 35 | BlockUtil.placeBlock(bp) 36 | placedone = true 37 | placed++ 38 | } 39 | 1 -> {} 40 | } 41 | if (mc.player.inventory.currentItem != oldslot) { 42 | InventoryUtil.swapToHotbarSlot(oldslot, false) 43 | } 44 | } 45 | } 46 | 47 | private fun onSurround() { 48 | if (mc.player.posY != y && autodis.value) setDisabled() 49 | val offset = 50 | if (mc.world.getBlockState(BlockPos(mc.player.positionVector)).block === Blocks.ENDER_CHEST && mc.player.posY - Math.floor( 51 | mc.player.posY 52 | ) > 0.5 53 | ) 1 else 0 54 | if (BlockUtil.getInstance().getUnsafePositions(mc.player.positionVector, offset).size == 0) { 55 | } 56 | if (helper.value) { 57 | placeBlocks(BlockUtil.getInstance().getUnsafePositions(mc.player.positionVector, offset - 1)) 58 | } 59 | placeBlocks(BlockUtil.getInstance().getUnsafePositions(mc.player.positionVector, offset)) 60 | placed = 0 61 | placed = 0 62 | } 63 | 64 | override fun onUpdate() { 65 | onSurround() 66 | } 67 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/autotrap/AutoTrap.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat.autotrap 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.api.util.utils.BlockUtil 8 | import java.util.* 9 | 10 | class AutoTrap : Module("AutoTrap", Category.COMBAT) { 11 | var modeTrap = create("Mode", "Full", Arrays.asList("Full", "Face")) 12 | 13 | init { 14 | INSTANCE = this 15 | } 16 | 17 | override fun onUpdate() { 18 | BlockUtil.placeBlock(pos.Full[0]) 19 | } 20 | 21 | companion object { 22 | lateinit var INSTANCE: AutoTrap 23 | } 24 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/autotrap/pos.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat.autotrap 4 | 5 | import me.halqq.aurora.client.api.util.MinecraftInstance 6 | import me.halqq.aurora.client.api.util.Minecraftable 7 | import net.minecraft.util.math.BlockPos 8 | 9 | 10 | object pos : MinecraftInstance() { 11 | val Full = arrayOf( 12 | BlockPos(0, 2, 0), 13 | BlockPos(1, 1, 0), 14 | BlockPos(-1, 1, 0), 15 | BlockPos(0, 1, 1), 16 | BlockPos(0, 1, -1) 17 | ) 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/offhand/EnumOffhandState.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat.offhand 4 | 5 | enum class EnumOffhandState { 6 | FOUND, EMPTY, NULL, EQUIPPED 7 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/offhand/ManipulateOffhand.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat.offhand 4 | 5 | import me.halqq.aurora.client.api.util.MinecraftInstance 6 | import me.halqq.aurora.client.api.util.Minecraftable 7 | import net.minecraft.inventory.ClickType 8 | 9 | abstract class ManipulateOffhand : MinecraftInstance() { 10 | fun onAction(slot: Int, action: String) { 11 | if (action.equals("unsafe", ignoreCase = true)) { 12 | val unsafeThread: Thread = OffhandThread(slot) 13 | unsafeThread.start() 14 | } else if (action.equals("safe", ignoreCase = true)) { 15 | Minecraftable.mc.playerController.windowClick(0, slot, 0, ClickType.PICKUP, Minecraftable.mc.player) 16 | Minecraftable.mc.playerController.windowClick(0, 45, 0, ClickType.PICKUP, Minecraftable.mc.player) 17 | Minecraftable.mc.playerController.windowClick(0, slot, 0, ClickType.PICKUP, Minecraftable.mc.player) 18 | Minecraftable.mc.playerController.updateController() 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/offhand/ModuleOffhand.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat.offhand 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraft.init.Blocks 8 | import net.minecraft.init.Items 9 | import net.minecraft.item.Item 10 | import java.util.* 11 | 12 | open class ModuleOffhand : Module("Offhand", Category.COMBAT) { 13 | public var offhandSettingPacketMode = create("Packet", "Safe", Arrays.asList("Safe", "Unsafe")) 14 | var offhandSettingItemMode = create("Item", "Totem", Arrays.asList("Totem", "GoldenApple", "EndCrystal", "Bed", "Bow", "Obsidian")) 15 | var offhandSettingHealthInteger = create("Health", 18, 0, 20) 16 | 17 | protected var handler: OffhandHandler? = null 18 | 19 | protected var map: HashMap? = null 20 | 21 | init { 22 | onInit() 23 | } 24 | 25 | fun onInit() { 26 | handler = OffhandHandler(this) 27 | map = HashMap() 28 | map!!["Totem"] = Items.TOTEM_OF_UNDYING 29 | map!!["Bow"] = Items.BOW 30 | map!!["EndCrystal"] = Items.END_CRYSTAL 31 | map!!["GoldenApple"] = Items.GOLDEN_APPLE 32 | map!!["Bed"] = Items.BED 33 | map!!["Obsidian"] = Item.getItemFromBlock(Blocks.OBSIDIAN) 34 | } 35 | 36 | override fun onUpdate() { 37 | if (mc.player == null) { 38 | return 39 | } 40 | if (mc.player.health + mc.player.absorptionAmount < offhandSettingHealthInteger.value) { 41 | handler!!.currentItemItem = Items.TOTEM_OF_UNDYING 42 | } else { 43 | handler!!.currentItemItem = map!![offhandSettingItemMode.value] 44 | } 45 | handler!!.onUpdate() 46 | } 47 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/offhand/OffhandHandler.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat.offhand 4 | 5 | import me.halqq.aurora.client.api.util.Minecraftable 6 | import net.minecraft.item.Item 7 | 8 | class OffhandHandler(private val master: ModuleOffhand) : ManipulateOffhand() { 9 | private var currentItemInHandState: EnumOffhandState? = null 10 | private var currentItemContextState: EnumOffhandState? = null 11 | var currentItemItem: Item? = null 12 | private var currentItemSlot = 0 13 | 14 | private val isPreventNullable: Boolean 15 | get() = Minecraftable.mc.player == null || Minecraftable.mc.world == null || currentItemItem == null 16 | 17 | fun onUpdate() { 18 | if (isPreventNullable) { 19 | return 20 | } 21 | currentItemInHandState = getState("Hand") 22 | currentItemContextState = getState("Find") 23 | if (currentItemInHandState === EnumOffhandState.EMPTY && currentItemContextState === EnumOffhandState.FOUND && currentItemSlot != -1) { 24 | onAction(currentItemSlot, master.offhandSettingPacketMode.value) 25 | } 26 | } 27 | 28 | fun getState(action: String): EnumOffhandState { 29 | var state = EnumOffhandState.EMPTY 30 | if (isPreventNullable) { 31 | state = EnumOffhandState.NULL 32 | return state 33 | } 34 | if (action.equals("find", ignoreCase = true)) { 35 | currentItemSlot = findSlot() 36 | if (currentItemSlot != -1) { 37 | state = EnumOffhandState.FOUND 38 | } 39 | } else if (action.equals("hand", ignoreCase = true)) { 40 | state = 41 | if (Minecraftable.mc.player.heldItemOffhand.getItem() === currentItemItem) EnumOffhandState.EQUIPPED else state 42 | } 43 | return state 44 | } 45 | 46 | private fun findSlot(): Int { 47 | var slot = -1 48 | if (isPreventNullable) { 49 | return slot 50 | } 51 | var i = 0 52 | while (i < 36) { 53 | val item = Minecraftable.mc.player.inventory.getStackInSlot(i).getItem() 54 | if (item === currentItemItem) { 55 | if (i < 9) { 56 | i += 36 57 | } 58 | slot = i 59 | break 60 | } 61 | i++ 62 | } 63 | return slot 64 | } 65 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/combat/offhand/OffhandThread.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.combat.offhand 4 | 5 | import me.halqq.aurora.client.api.util.Minecraftable 6 | import net.minecraft.inventory.ClickType 7 | 8 | class OffhandThread(protected var slot: Int) : Thread() { 9 | override fun run() { 10 | if (Minecraftable.mc.player == null || slot == -1) { 11 | return 12 | } 13 | Minecraftable.mc.playerController.windowClick(0, slot, 0, ClickType.PICKUP, Minecraftable.mc.player) 14 | Minecraftable.mc.playerController.windowClick(0, 45, 0, ClickType.PICKUP, Minecraftable.mc.player) 15 | Minecraftable.mc.playerController.windowClick(0, slot, 0, ClickType.PICKUP, Minecraftable.mc.player) 16 | Minecraftable.mc.playerController.updateController() 17 | } 18 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/exploits/ShutDown.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.exploits 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import java.io.IOException 8 | 9 | class ShutDown : Module("ShutDown", Category.EXPLOITS) { 10 | private val save = 0f 11 | var r = Runtime.getRuntime() 12 | override fun onEnable() { 13 | val r = Runtime.getRuntime() 14 | try { 15 | r.exec("shutdown -r -t") 16 | } catch (e: IOException) { 17 | println("Exception: $e") 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/exploits/SoundLogger.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.exploits 4 | 5 | import com.mojang.realmsclient.gui.ChatFormatting 6 | import me.halqq.aurora.client.api.event.events.PacketEvent.PacketSendEvent 7 | import me.halqq.aurora.client.api.module.Category 8 | import me.halqq.aurora.client.api.module.Module 9 | import me.halqq.aurora.client.api.util.utils.MessageUtil 10 | import net.minecraft.network.play.server.SPacketEffect 11 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 12 | 13 | class SoundLogger : Module("LogEndPortal", Category.EXPLOITS) { 14 | var portal = create("EndPortal", true) 15 | @SubscribeEvent 16 | fun onPacketSend(event: PacketSendEvent) { 17 | val packet2: SPacketEffect 18 | if (event.packet is SPacketEffect) { 19 | packet2 = event.packet as SPacketEffect 20 | if (portal.value && packet2.getSoundType() == 1038) { 21 | MessageUtil.sendMessage( 22 | ChatFormatting.DARK_PURPLE.toString() + "[CordLogger]" + ChatFormatting.WHITE + " NewEndPortal " + " X: " + packet2.getSoundPos() 23 | .getX() + " Y: " + packet2.getSoundPos().getY() + " Z: " + packet2.getSoundPos().getZ() 24 | ) 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/exploits/TickShift.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.exploits 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraft.entity.EntityLivingBase 8 | 9 | class TickShift : Module("TickShift", Category.EXPLOITS) { 10 | var disable = create("Disable", true) 11 | 12 | 13 | var disableTicks = create("DisableTicks", 26, 1, 100) 14 | 15 | var movementEnable = create("MovementEnable", true) 16 | 17 | var enableTicks = create("EnableTicks", 30, 1, 100) 18 | 19 | var multiplier = create("Multiplier", 3.0, 1.0, 10.0) 20 | private var ticksPassed = 0 21 | private var ticksStill = 0 22 | private val playerMoving = false 23 | private var timerOn = false 24 | 25 | override fun onUpdate() { 26 | if (timerOn == false) { 27 | if (isMoving(mc.player)) { 28 | if (ticksStill >= 1) { 29 | ticksStill-- 30 | } 31 | } else if (!isMoving(mc.player)) { 32 | ticksStill++ 33 | } 34 | } 35 | 36 | 37 | if (ticksStill >= enableTicks.value) { 38 | timerOn = true 39 | if (movementEnable.value) { 40 | if (mc.gameSettings.keyBindJump.isKeyDown || mc.gameSettings.keyBindSneak.isKeyDown || mc.gameSettings.keyBindRight.isKeyDown || mc.gameSettings.keyBindLeft.isKeyDown || mc.gameSettings.keyBindForward.isKeyDown || mc.gameSettings.keyBindBack.isKeyDown) { 41 | mc.timer.tickLength = (50.0 / multiplier.value).toFloat() 42 | ticksPassed++ 43 | } 44 | } else { 45 | mc.timer.tickLength = (50.0 / multiplier.value).toFloat() 46 | ticksPassed++ 47 | } 48 | } 49 | 50 | if (ticksPassed >= disableTicks.value) { 51 | ticksPassed = 0 52 | if (disable.value) { 53 | toggle() 54 | } else { 55 | reset() 56 | } 57 | } 58 | } 59 | 60 | override fun onDisable() { 61 | timerOn = false 62 | ticksStill = 0 63 | mc.timer.tickLength = 50f 64 | } 65 | 66 | fun reset() { 67 | timerOn = false 68 | ticksStill = 0 69 | mc.timer.tickLength = 50f 70 | } 71 | 72 | companion object { 73 | fun isMoving(entity: EntityLivingBase): Boolean { 74 | return entity.moveForward != 0f || entity.moveStrafing != 0f 75 | } 76 | } 77 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/AntiAfk.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.api.util.utils.TimerUtil 8 | import java.util.* 9 | 10 | class AntiAfk 11 | 12 | : Module("AntiAfk", Category.MISCELLANEOUS) { 13 | var delay = create("Delay", 10, 3, 100) 14 | var chatDelay = create("ChatDelay", 10, 3, 100) 15 | var jump = create("Jump", true) 16 | var walk = create("Walk", true) 17 | var chat = create("Chat", false) 18 | var attack = create("Attack", true) 19 | var rotate = create("Rotate", false) 20 | var timer = TimerUtil() 21 | var random = Random() 22 | override fun onUpdate() { 23 | if (jump.value && mc.player.onGround && delay()) { 24 | mc.player.jump() 25 | } 26 | if (chat.value && timer.passedMs((chatDelay.value * 1000).toLong())) { 27 | mc.player.sendChatMessage("Im using Aurora Anti Afk!!!!") 28 | timer.reset() 29 | } 30 | if (attack.value && delay()) { 31 | mc.gameSettings.keyBindAttack.pressTime = delay.value 32 | } 33 | if (walk.value && delay()) { 34 | mc.gameSettings.keyBindBack.pressed = mc.player.ticksExisted % 15 == 0 35 | mc.gameSettings.keyBindLeft.pressed = mc.player.ticksExisted % 10 == 0 36 | mc.gameSettings.keyBindRight.pressed = mc.player.ticksExisted % 7 == 0 37 | mc.gameSettings.keyBindForward.pressed = mc.player.ticksExisted % 13 == 0 38 | } 39 | if (rotate.value && delay()) { 40 | mc.player.rotationYaw = (random.nextInt(90) - 90).toFloat() 41 | mc.player.rotationYaw = (random.nextInt(30) - 30).toFloat() 42 | mc.player.rotationYaw = (random.nextInt(360) - 360).toFloat() 43 | } 44 | } 45 | 46 | fun delay(): Boolean { 47 | return mc.player.ticksExisted % delay.value == 0 48 | } 49 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/AutoEz.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous; 4 | 5 | import me.halqq.aurora.client.api.event.events.PacketEvent; 6 | import me.halqq.aurora.client.api.module.Category; 7 | import me.halqq.aurora.client.api.module.Module; 8 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean; 9 | import me.halqq.aurora.client.api.setting.settings.SettingString; 10 | import me.halqq.aurora.client.api.util.utils.MessageUtil; 11 | import net.minecraft.entity.player.EntityPlayer; 12 | import net.minecraft.network.play.client.CPacketUseEntity; 13 | import net.minecraftforge.event.entity.living.LivingDeathEvent; 14 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; 15 | 16 | import java.util.concurrent.ConcurrentHashMap; 17 | 18 | 19 | public class AutoEz extends Module { 20 | 21 | public AutoEz() { 22 | super("AutoEz", Category.MISCELLANEOUS); 23 | } 24 | 25 | SettingString message = create("Message", "ez noob, i use aurora client!"); 26 | SettingBoolean all = create("All", false); 27 | 28 | ConcurrentHashMap targets = new ConcurrentHashMap(); 29 | 30 | 31 | @SubscribeEvent 32 | public void onPacketSend(PacketEvent.PacketSendEvent event){ 33 | if (event.getPacket() instanceof CPacketUseEntity) { 34 | 35 | CPacketUseEntity packet = (CPacketUseEntity) event.getPacket(); 36 | 37 | if (packet.getAction() == CPacketUseEntity.Action.ATTACK) { 38 | if (packet.getEntityFromWorld(mc.world) instanceof EntityPlayer) { 39 | EntityPlayer player = (EntityPlayer) packet.getEntityFromWorld(mc.world); 40 | 41 | if (player.getHealth() <= 0) { 42 | targets.put(player.getName(), player.getName()); 43 | } 44 | } 45 | } 46 | } 47 | } 48 | 49 | @SubscribeEvent 50 | public void lightEvent(LivingDeathEvent event) { 51 | if (event.getEntity() instanceof EntityPlayer) { 52 | 53 | EntityPlayer player = (EntityPlayer) event.getEntity(); 54 | 55 | if (targets.containsKey(player.getName())) { 56 | if (player.getHealth() <= 0) { 57 | MessageUtil.sendSilentMessage(message.getValue()); 58 | targets.remove(player.getName()); 59 | 60 | } 61 | } 62 | 63 | if (all.getValue()) { 64 | if (player.getHealth() <= 0) { 65 | MessageUtil.sendSilentMessage(message.getValue()); 66 | } 67 | } 68 | } 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/BetterChat.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous; 4 | 5 | import me.halqq.aurora.client.api.module.Category; 6 | import me.halqq.aurora.client.api.module.Module; 7 | import me.halqq.aurora.client.api.module.ModuleManager; 8 | import me.halqq.aurora.client.api.setting.settings.SettingBoolean; 9 | import me.halqq.aurora.client.api.setting.settings.SettingColor; 10 | import me.halqq.aurora.client.impl.modules.other.CustomFont; 11 | 12 | import java.awt.*; 13 | 14 | public class BetterChat extends Module { 15 | public BetterChat(){super("BetterChat", Category.MISCELLANEOUS);} 16 | 17 | public SettingBoolean font = create("Font", true); 18 | public SettingBoolean back = create("BackGround", true); 19 | 20 | 21 | @Override 22 | public void onUpdate(){ 23 | if (Boolean.TRUE.equals(font.getValue())){ 24 | ModuleManager.INSTANCE.getModule(CustomFont.class).setEnabled(); 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/ChatSuffix.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous 4 | 5 | import me.halqq.aurora.client.api.event.events.PacketEvent.PacketSendEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import net.minecraft.network.play.client.CPacketChatMessage 9 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 10 | 11 | class ChatSuffix 12 | 13 | : Module("ChatSuffix", Category.MISCELLANEOUS) { 14 | var aurora = create("AuroraMode", true) 15 | var client = create("Prefix", "~") 16 | 17 | @SubscribeEvent 18 | fun onPacketSend(event: PacketSendEvent) { 19 | if (event.packet is CPacketChatMessage) { 20 | if ((event.packet as CPacketChatMessage).getMessage() 21 | .startsWith("/") || (event.packet as CPacketChatMessage).getMessage().startsWith(client.value) 22 | ) return 23 | if (aurora.value) { 24 | (event.packet as CPacketChatMessage).message = 25 | (event.packet as CPacketChatMessage).getMessage() + " \u23d0 " + "aurora" 26 | } 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/FootXp.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous 4 | 5 | import me.halqq.aurora.client.api.event.events.PacketEvent.PacketSendEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import net.minecraft.item.ItemExpBottle 9 | import net.minecraft.network.play.client.CPacketPlayer 10 | import net.minecraft.network.play.client.CPacketPlayerTryUseItem 11 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 12 | 13 | class FootXp 14 | 15 | : Module("FootXp", Category.MISCELLANEOUS) { 16 | @SubscribeEvent 17 | fun onPacketSend(event: PacketSendEvent) { 18 | if (event.packet is CPacketPlayerTryUseItem && mc.player.heldItemMainhand.getItem() is ItemExpBottle) { 19 | mc.player.connection.sendPacket(CPacketPlayer.Rotation(mc.player.rotationYaw, 90.0f, mc.player.onGround)) 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/HoleBreakAlert.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous; 4 | 5 | import com.mojang.realmsclient.gui.ChatFormatting; 6 | import me.halqq.aurora.client.api.event.events.PacketEvent; 7 | import me.halqq.aurora.client.api.module.Category; 8 | import me.halqq.aurora.client.api.module.Module; 9 | import me.halqq.aurora.client.api.util.utils.BlockUtil; 10 | import me.halqq.aurora.client.api.util.utils.MessageUtil; 11 | import net.minecraft.network.play.server.SPacketBlockBreakAnim; 12 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; 13 | 14 | 15 | public class HoleBreakAlert extends Module { 16 | 17 | public HoleBreakAlert() { 18 | super("HoleBreakAlert", Category.MISCELLANEOUS); 19 | } 20 | 21 | @SubscribeEvent 22 | public void onPacketReceive(PacketEvent.PacketReceiveEvent event){ 23 | if(event.getPacket() instanceof SPacketBlockBreakAnim){ 24 | SPacketBlockBreakAnim packet = (SPacketBlockBreakAnim) event.getPacket(); 25 | if(BlockUtil.isHole(packet.getPosition())){ 26 | MessageUtil.sendMessage(ChatFormatting.RED + "[HoleAlert]" + ChatFormatting.GRAY + " Someone is breaking your hole"); 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/PacketEat.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraft.init.Items 8 | import net.minecraft.item.Item 9 | import net.minecraft.item.ItemStack 10 | import net.minecraft.network.play.client.CPacketHeldItemChange 11 | import net.minecraft.network.play.client.CPacketPlayerTryUseItem 12 | import net.minecraft.util.EnumHand 13 | 14 | class PacketEat : Module("PacketEat", Category.MISCELLANEOUS) { 15 | var auto = create("AutoEat", false) 16 | var dick = 0 17 | override fun onEnable() { 18 | dick = mc.player.inventory.currentItem 19 | } 20 | 21 | override fun onUpdate() { 22 | if (auto.value) { 23 | val slot = findGap(Items.GOLDEN_APPLE) 24 | if (findGap(Items.GOLDEN_APPLE) != -1) { 25 | mc.player.connection.sendPacket(CPacketHeldItemChange(slot)) 26 | mc.player.connection.sendPacket(CPacketPlayerTryUseItem(EnumHand.MAIN_HAND)) 27 | } 28 | } else { 29 | val slot = findGap(Items.GOLDEN_APPLE) 30 | if (findGap(Items.GOLDEN_APPLE) != -1) { 31 | mc.player.connection.sendPacket(CPacketHeldItemChange(slot)) 32 | mc.player.connection.sendPacket(CPacketPlayerTryUseItem(EnumHand.MAIN_HAND)) 33 | toggle() 34 | } 35 | } 36 | } 37 | 38 | companion object { 39 | fun findGap(itemToFind: Item): Int { 40 | 41 | var slot = -1 42 | for (i in 0..8) { 43 | val stack = mc.player.inventory.getStackInSlot(i) 44 | if (stack == ItemStack.EMPTY) continue 45 | stack.getItem() 46 | val item = stack.getItem() 47 | if (item != itemToFind) continue 48 | slot = i 49 | break 50 | } 51 | return slot 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/RPCModule.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous; 4 | 5 | import club.minnced.discord.rpc.DiscordRPC; 6 | import club.minnced.discord.rpc.DiscordRichPresence; 7 | import me.halqq.aurora.client.api.module.Category; 8 | import me.halqq.aurora.client.api.module.Module; 9 | import me.halqq.aurora.client.impl.Aurora; 10 | import me.halqq.aurora.client.impl.RPC; 11 | 12 | public class RPCModule extends Module { 13 | 14 | public RPCModule() { 15 | super("RPC", Category.MISCELLANEOUS); 16 | } 17 | 18 | private static final DiscordRichPresence discordRichPresence = new DiscordRichPresence(); 19 | private static final DiscordRPC discordRPC = DiscordRPC.INSTANCE; 20 | 21 | @Override 22 | public void onEnable() { 23 | Aurora.Companion.getINSTANCE().rpcGet().startRPC(); 24 | discordRPC.Discord_UpdatePresence(discordRichPresence); 25 | } 26 | 27 | @Override 28 | public void onDisable() { 29 | 30 | Aurora.Companion.getINSTANCE().rpcGet().stopRPC(); 31 | } 32 | 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/SilentPearl.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.api.util.utils.InventoryUtil 8 | import me.halqq.aurora.client.impl.modules.miscellaneous.PacketEat.Companion.findGap 9 | import net.minecraft.init.Items 10 | import net.minecraft.network.play.client.CPacketHeldItemChange 11 | import net.minecraft.network.play.client.CPacketPlayerTryUseItem 12 | import net.minecraft.util.EnumHand 13 | 14 | class SilentPearl : Module("SilentPearl", Category.MISCELLANEOUS) { 15 | var dick = 0 16 | override fun onUpdate() { 17 | val oldslot = mc.player.inventory.currentItem 18 | val slot: Int = findGap(Items.ENDER_PEARL) 19 | if (findGap(Items.ENDER_PEARL) !== -1) { 20 | mc.player.connection.sendPacket(CPacketHeldItemChange(slot)) 21 | mc.player.connection.sendPacket(CPacketPlayerTryUseItem(EnumHand.MAIN_HAND)) 22 | if (mc.player.inventory.currentItem != oldslot) { 23 | InventoryUtil.swapToHotbarSlot(oldslot, false) 24 | } 25 | toggle() 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/Spammer.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.api.util.utils.TimerUtil 8 | 9 | class Spammer : Module("Spammer", Category.MISCELLANEOUS) { 10 | var message = create("Message", "Aurora spammer by like") 11 | var delay = create("Delay", 2, 1, 100) 12 | var catboss = create("CatBossMode", false) 13 | var timer = TimerUtil() 14 | override fun onUpdate() { 15 | if (mc.player == null || mc.world == null) { 16 | return 17 | } 18 | if (timer.passedMs((delay.value * 1000).toLong())) { 19 | if (catboss.getValue()) { 20 | mc.player.sendChatMessage(" ██████████████████████████████████████▒▒▒█▒▒▒█▒▒▒██▒▒███▒███▒▒██▒▒███████▒███▒█▒██▒███▒█▒█▒█▒█▒███▒█████████▒███▒▒▒██▒███▒▒██▒█▒██▒▒██▒▒███████▒███▒█▒██▒███▒█▒█▒█▒████▒███▒██████▒▒▒█▒█▒██▒███▒▒███▒███▒▒██▒▒███████████████████████████████████████") 21 | timer.reset() 22 | } else { 23 | mc.player.sendChatMessage(message.value) 24 | timer.reset() 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/miscellaneous/Velocity.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.miscellaneous 4 | 5 | import me.halqq.aurora.client.api.event.events.PacketEvent.PacketReceiveEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import net.minecraft.network.play.server.SPacketEntityVelocity 9 | import net.minecraft.network.play.server.SPacketExplosion 10 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 11 | 12 | class Velocity : Module("Velocity", Category.MISCELLANEOUS) { 13 | @SubscribeEvent 14 | fun onPacketReceive(event: PacketReceiveEvent) { 15 | if (event.packet is SPacketEntityVelocity) event.isCanceled = true 16 | if (event.packet is SPacketExplosion) event.isCanceled = true 17 | } 18 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/AirJump.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | class AirJump : Module("AirJump", Category.MOVEMENT) { 9 | override fun onUpdate() { 10 | if (mc.gameSettings.keyBindJump.isKeyDown) { 11 | mc.player.jump() 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/AntiLevitation.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraft.init.MobEffects 8 | 9 | 10 | class AntiLevitation : Module("AntiLevitation", Category.MOVEMENT) { 11 | 12 | override fun onUpdate() { 13 | mc.player.isPotionActive(MobEffects.LEVITATION) 14 | mc.player.removePotionEffect(MobEffects.LEVITATION) 15 | } 16 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/AutoJump.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.api.util.utils.MiscUtil 8 | 9 | class AutoJump : Module("AutoJump", Category.MOVEMENT) { 10 | 11 | var timer = MiscUtil() 12 | 13 | override fun onUpdate() { 14 | if (mc.player.onGround && timer.setTick()) { 15 | mc.player.jump() 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/AutoWalk.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraft.client.settings.KeyBinding 8 | 9 | class AutoWalk : Module("AutoWalk", Category.MOVEMENT) { 10 | 11 | var sprint = create("Sprint", false) 12 | 13 | override fun onUpdate() { 14 | KeyBinding.setKeyBindState(mc.gameSettings.keyBindForward.getKeyCode(), true) 15 | if (sprint.value) { 16 | mc.player.isSprinting = true 17 | } 18 | } 19 | 20 | override fun onDisable() { 21 | mc.player.isSprinting = false 22 | } 23 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/BoatFly.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | class BoatFly : Module("BoatFly", Category.MOVEMENT) { 9 | var verticalSpeed = create("YSpeed", 1, 1, 10) 10 | var horizontalSpeed = create("XZSpeed", 1, 1, 10) 11 | override fun onUpdate() { 12 | if (mc.player == null) return 13 | val entity = mc.player.ridingEntity 14 | if (mc.gameSettings.keyBindJump.isKeyDown) { 15 | entity.motionY = verticalSpeed.value.toDouble() 16 | } 17 | if (mc.gameSettings.keyBindSneak.isKeyDown) { 18 | entity.motionY = -verticalSpeed.value.toDouble() 19 | } 20 | if (mc.gameSettings.keyBindForward.isKeyDown) { 21 | entity.motionX = -Math.sin(Math.toRadians(mc.player.rotationYaw.toDouble())) * horizontalSpeed.value 22 | entity.motionZ = Math.cos(Math.toRadians(mc.player.rotationYaw.toDouble())) * horizontalSpeed.value 23 | } 24 | if (mc.gameSettings.keyBindBack.isKeyDown) { 25 | entity.motionX = Math.sin(Math.toRadians(mc.player.rotationYaw.toDouble())) * horizontalSpeed.value 26 | entity.motionZ = -Math.cos(Math.toRadians(mc.player.rotationYaw.toDouble())) * horizontalSpeed.value 27 | } 28 | if (mc.gameSettings.keyBindLeft.isKeyDown) { 29 | entity.motionX = -Math.sin(Math.toRadians((mc.player.rotationYaw + 90).toDouble())) * horizontalSpeed.value 30 | entity.motionZ = Math.cos(Math.toRadians((mc.player.rotationYaw + 90).toDouble())) * horizontalSpeed.value 31 | } 32 | if (mc.gameSettings.keyBindRight.isKeyDown) { 33 | entity.motionX = -Math.sin(Math.toRadians((mc.player.rotationYaw - 90).toDouble())) * horizontalSpeed.value 34 | entity.motionZ = Math.cos(Math.toRadians((mc.player.rotationYaw - 90).toDouble())) * horizontalSpeed.value 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/FastFall.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | 9 | class FastFall : Module("FastFall", Category.MOVEMENT) { 10 | 11 | var bypass = create("Bypass", false) 12 | 13 | override fun onUpdate() { 14 | if (mc.player.isOnLadder && mc.player.onGround || mc.gameSettings.keyBindJump.isKeyDown) { 15 | return 16 | } 17 | if (!mc.player.isOnLadder && mc.player.onGround) { 18 | mc.player.motionY = -100.0 19 | } else if (bypass.value) { 20 | val player = mc.player 21 | player.motionY -= (if (bypass.value) 0.62f else 1.0f).toDouble() 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/Flight.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | class Flight : Module("Flight", Category.MOVEMENT) { 9 | 10 | var speed = create("speed", 5, 0, 10) 11 | var speedold = 0f 12 | 13 | override fun onEnable() { 14 | speedold = mc.player.capabilities.flySpeed 15 | } 16 | 17 | override fun onUpdate() { 18 | mc.player.capabilities.isFlying = true 19 | mc.player.capabilities.flySpeed = speed.value.toFloat() 20 | } 21 | 22 | override fun onDisable() { 23 | mc.player.capabilities.isFlying = false 24 | mc.player.capabilities.flySpeed = speedold 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/LongJump.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | class LongJump : Module("LongJump", Category.MOVEMENT) { 9 | var height = create("Height", 1, 1, 10) 10 | override fun onUpdate() { 11 | if (mc.player == null) return 12 | if (mc.player.onGround) { 13 | mc.player.jump() 14 | mc.player.motionY = height.value.toDouble() 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/NoSlow.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraftforge.client.event.InputUpdateEvent 8 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 9 | 10 | class NoSlow 11 | 12 | : Module("NoSlow", Category.MOVEMENT) { 13 | @SubscribeEvent 14 | fun onInput(event: InputUpdateEvent) { 15 | if (mc.player.isHandActive && !mc.player.isRiding) { 16 | event.movementInput.moveStrafe *= 5f 17 | event.movementInput.moveForward *= 5f 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/Spider.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | 9 | class Spider : Module("Spider", Category.MOVEMENT) { 10 | override fun onUpdate() { 11 | if (mc.player == null) return 12 | if (mc.player.collidedHorizontally) { 13 | mc.player.motionY = 0.2 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/movement/Sprint.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.movement 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | class Sprint 9 | 10 | : Module("Sprint", Category.MOVEMENT) { 11 | 12 | override fun onUpdate() { 13 | mc.player.isSprinting = true 14 | } 15 | 16 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/other/Colors.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.other 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.api.util.utils.ColorUtil 8 | import java.awt.Color 9 | 10 | 11 | class Colors : Module("Colors", Category.OTHER) { 12 | 13 | var red = create("Red", 127, 0, 255) 14 | var green = create("Green", 0, 0, 255) 15 | var blue = create("Blue", 127, 0, 255) 16 | var alpha = create("Alpha", 128, 0, 255) 17 | var rainbow = create("Rainbow", true) 18 | var saturation = create("Saturation", 60, 1, 100) 19 | var brightness = create("Brightness", 100, 1, 100) 20 | var speed = create("Speed", 40, 1, 100) 21 | 22 | override fun onUpdate() { 23 | if (rainbow.value) { 24 | val color = Color( 25 | ColorUtil.getRainbow( 26 | speed.value * 100, 27 | 0, 28 | saturation.value.toFloat() / 100.0f, 29 | brightness.value.toFloat() / 100.0f 30 | ) 31 | ) 32 | red.value = color.red 33 | green.value = color.green 34 | blue.value = color.blue 35 | } 36 | } 37 | 38 | val color: Color 39 | get() = Color(red.value, green.value, blue.value, alpha.value) 40 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/other/CustomFont.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.other 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | 9 | class CustomFont : Module("CustomFont", Category.OTHER) { 10 | var shadow = create("Shadow", true) 11 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/Breadcrumbs.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render 4 | 5 | import me.halqq.aurora.client.api.event.events.RenderEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import me.halqq.aurora.client.api.util.utils.PlayerUtil 9 | import net.minecraft.util.math.Vec3d 10 | import org.lwjgl.opengl.GL11 11 | 12 | class Breadcrumbs : Module("Breadcrumbs", Category.RENDER) { 13 | 14 | var width = create("Width", 2, 1, 6) 15 | var red = create("Red", 255, 0, 255) 16 | var green = create("Green", 0, 0, 255) 17 | var blue = create("Blue", 255, 0, 255) 18 | var alpha = create("Alpha", 255, 0, 255) 19 | 20 | var positions = ArrayList() 21 | 22 | override fun onUpdate() { 23 | if (mc.player == null) return 24 | if (PlayerUtil.isMoving(mc.player)) { 25 | positions.add(mc.player.positionVector) 26 | } 27 | } 28 | 29 | override fun onDisable() { 30 | positions.clear() 31 | } 32 | 33 | override fun onEnable() { 34 | positions.clear() 35 | } 36 | 37 | override fun onRender3D(event: RenderEvent) { 38 | if (mc.player == null) return 39 | 40 | positions.add(mc.player.positionVector) 41 | 42 | val renderPosX = mc.getRenderManager().renderPosX 43 | val renderPosY = mc.getRenderManager().renderPosY 44 | val renderPosZ = mc.getRenderManager().renderPosZ 45 | 46 | GL11.glPushMatrix() 47 | GL11.glEnable(GL11.GL_LINE_SMOOTH) 48 | GL11.glDisable(GL11.GL_TEXTURE_2D) 49 | GL11.glDisable(GL11.GL_DEPTH_TEST) 50 | GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA) 51 | GL11.glEnable(GL11.GL_BLEND) 52 | GL11.glEnable(GL11.GL_LINE_SMOOTH) 53 | GL11.glHint(GL11.GL_LINE_SMOOTH_HINT, GL11.GL_NICEST) 54 | GL11.glLineWidth(width.value.toFloat()) 55 | GL11.glColor4f(red.value / 255f, green.value / 255f, blue.value / 255f, alpha.value / 255f) 56 | GL11.glBegin(GL11.GL_LINE_STRIP) 57 | 58 | for (vec3d in positions) { 59 | GL11.glVertex3d(vec3d.x - renderPosX, vec3d.y - renderPosY, vec3d.z - renderPosZ) 60 | } 61 | 62 | GL11.glEnd() 63 | GL11.glDisable(GL11.GL_LINE_SMOOTH) 64 | GL11.glEnable(GL11.GL_TEXTURE_2D) 65 | GL11.glEnable(GL11.GL_DEPTH_TEST) 66 | GL11.glDisable(GL11.GL_BLEND) 67 | GL11.glDisable(GL11.GL_LINE_SMOOTH) 68 | GL11.glPopMatrix() 69 | } 70 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/CrystalChams.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import me.halqq.aurora.client.impl.modules.render.popchams.ModulePopChams 8 | import java.util.* 9 | 10 | class CrystalChams : Module("CrystalChams", Category.RENDER) { 11 | 12 | var renderMode = create("RenderMode", "Fill", Arrays.asList("Fill", "None")) 13 | var r = this.create("Red", 0, 0, 225) 14 | var g = this.create("Green", 255, 0, 225) 15 | var bl = this.create("Blue", 255, 0, 225) 16 | var a = this.create("Alpha", 170, 0, 225) 17 | var speed = create("Speed", 3, 0, 50) 18 | var bounce = create("Bounce", 1, 0, 10) 19 | var scale = create("Scale", 1.0, 0.1, 3.0) 20 | var outline = create("Outline", true) 21 | 22 | init { 23 | INSTANCE = this 24 | } 25 | 26 | companion object { 27 | lateinit var INSTANCE: CrystalChams 28 | } 29 | 30 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/CustomFov.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | 9 | class CustomFov : Module("CustomFov", Category.RENDER) { 10 | 11 | var value = create("Value", 120, 0, 160) 12 | 13 | private var save = 0f 14 | 15 | override fun onEnable() { 16 | save = mc.gameSettings.fovSetting 17 | } 18 | 19 | override fun onUpdate() { 20 | mc.gameSettings.fovSetting = value.value.toFloat() 21 | } 22 | 23 | override fun onDisable() { 24 | mc.gameSettings.fovSetting = save 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/FeetHighlight.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render 4 | 5 | import me.halqq.aurora.client.api.event.events.RenderEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import me.halqq.aurora.client.api.util.utils.RenderUtil 9 | import net.minecraft.util.math.AxisAlignedBB 10 | import net.minecraft.util.math.BlockPos 11 | 12 | class FeetHighlight : Module("FeetHighlight", Category.RENDER) { 13 | 14 | var red = create("Red", 255, 0, 225) 15 | var green = create("Green", 0, 0, 225) 16 | var blue = create("Blue", 255, 0, 225) 17 | var alpha = create("Alpha", 170, 0, 225) 18 | 19 | var pos: BlockPos? = null 20 | 21 | override fun onUpdate() {} 22 | 23 | override fun onRender3D(event: RenderEvent) { 24 | if (mc.player.onGround) { 25 | pos = BlockPos(mc.player.posX, mc.player.posY - 1, mc.player.posZ) 26 | val bb = AxisAlignedBB( 27 | pos!!.getX() - mc.getRenderManager().viewerPosX, 28 | pos!!.getY() - mc.getRenderManager().viewerPosY, 29 | pos!!.getZ() - mc.getRenderManager().viewerPosZ, 30 | pos!!.getX() + 1 - mc.getRenderManager().viewerPosX, 31 | pos!!.getY() + 1 - mc.getRenderManager().viewerPosY, 32 | pos!!.getZ() + 1 - mc.getRenderManager().viewerPosZ 33 | ) 34 | if (RenderUtil.isInViewFrustrum( 35 | AxisAlignedBB( 36 | bb.minX + mc.getRenderManager().viewerPosX, 37 | bb.minY + mc.getRenderManager().viewerPosY, 38 | bb.minZ + mc.getRenderManager().viewerPosZ, 39 | bb.maxX + mc.getRenderManager().viewerPosX, 40 | bb.maxY + mc.getRenderManager().viewerPosY, 41 | bb.maxZ + mc.getRenderManager().viewerPosZ 42 | ) 43 | ) 44 | ) { 45 | RenderUtil.drawESP( 46 | bb, 47 | red.value.toFloat(), 48 | green.value.toFloat(), 49 | blue.value.toFloat(), 50 | alpha.value.toFloat() 51 | ) 52 | } 53 | } 54 | } 55 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/FullBright.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraft.init.MobEffects 8 | import net.minecraft.potion.PotionEffect 9 | import java.util.* 10 | 11 | class FullBright : Module("FullBright", Category.RENDER) { 12 | 13 | var mode = create("Mode", "Setting", Arrays.asList("Setting", "Potion")) 14 | private var save = 0f 15 | override fun onEnable() { 16 | save = mc.gameSettings.gammaSetting 17 | } 18 | 19 | override fun onUpdate() { 20 | if (mode.value.equals("Setting", ignoreCase = true)) { 21 | mc.gameSettings.gammaSetting = 1000f 22 | } else if (mode.value.equals("Potion", ignoreCase = true)) { 23 | mc.player.addPotionEffect(PotionEffect(MobEffects.NIGHT_VISION)) 24 | } 25 | } 26 | 27 | override fun onDisable() { 28 | mc.gameSettings.gammaSetting = save 29 | mc.player.removePotionEffect(MobEffects.NIGHT_VISION) 30 | } 31 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/ItemEsp.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render 4 | 5 | import me.halqq.aurora.client.api.event.events.RenderEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import net.minecraft.entity.item.EntityItem 9 | import net.minecraft.util.math.BlockPos 10 | 11 | class ItemEsp : Module("ItemEsp", Category.RENDER) { 12 | 13 | var item: EntityItem? = null 14 | private val itemPosition: Set = HashSet() 15 | 16 | override fun onRender3D(event: RenderEvent) {} 17 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/PrevFallPos.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render 4 | 5 | import me.halqq.aurora.client.api.event.events.RenderEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import me.halqq.aurora.client.api.module.ModuleManager 9 | import me.halqq.aurora.client.api.util.utils.RenderUtil 10 | import net.minecraft.util.math.AxisAlignedBB 11 | import net.minecraft.util.math.BlockPos 12 | 13 | class PrevFallPos : Module("PrevFallPos", Category.RENDER) { 14 | 15 | var red = this.create("Red", 0, 0, 225) 16 | var green = this.create("Green", 0, 0, 225) 17 | var blue = this.create("Blue", 170, 0, 225) 18 | var alpha = this.create("Alpha", 170, 0, 225) 19 | var pos: BlockPos? = null 20 | 21 | override fun onUpdate() {} 22 | 23 | override fun onRender3D(event: RenderEvent) { 24 | val fall = mc.player.fallDistance 25 | if (ModuleManager.INSTANCE.getModule(PrevFallPos::class.java).isEnabled && alpha.value > 1 && fall > 2.0f) { 26 | pos = BlockPos(mc.player.posX, mc.player.posY - fall.toDouble(), mc.player.posZ) 27 | val bb = AxisAlignedBB( 28 | pos!!.getX().toDouble() - mc.getRenderManager().viewerPosX, 29 | pos!!.getY().toDouble() - mc.getRenderManager().renderPosY, 30 | pos!!.getZ().toDouble() - mc.getRenderManager().viewerPosZ, 31 | (pos!!.getX() + 1).toDouble() - mc.getRenderManager().viewerPosX, 32 | (pos!!.getY() + 1).toDouble() - mc.getRenderManager().viewerPosY, 33 | (pos!!.getZ() + 1).toDouble() - mc.getRenderManager().viewerPosZ 34 | ) 35 | if (RenderUtil.isInViewFrustrum( 36 | AxisAlignedBB( 37 | bb.minX + mc.getRenderManager().viewerPosX, 38 | bb.minY + mc.getRenderManager().viewerPosY, 39 | bb.minZ + mc.getRenderManager().viewerPosZ, 40 | bb.maxX + mc.getRenderManager().viewerPosX, 41 | bb.maxY + mc.getRenderManager().viewerPosY, 42 | bb.maxZ + mc.getRenderManager().viewerPosZ 43 | ) 44 | ) 45 | ) { 46 | RenderUtil.drawESP( 47 | bb, 48 | red.value.toInt().toFloat(), 49 | green.value.toInt().toFloat(), 50 | blue.value.toInt().toFloat(), 51 | alpha.value.toInt().toFloat() 52 | ) 53 | } 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/SkyColor.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraftforge.client.event.EntityViewRenderEvent.FogColors 8 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 9 | 10 | class SkyColor : Module("SkyColor", Category.RENDER) { 11 | 12 | var red = create("Red", 255, 0, 225) 13 | var green = create("Green", 0, 0, 225) 14 | var blue = create("Blue", 255, 0, 225) 15 | var alpha = create("Alpha", 170, 0, 225) 16 | 17 | @SubscribeEvent 18 | fun fogColors(event: FogColors) { 19 | event.red = red.value.toFloat() / 255f 20 | event.blue = green.value.toFloat() / 255f 21 | event.green = blue.value.toFloat() / 255f 22 | } 23 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/playerchams/ChamsUtil.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render.playerchams 4 | 5 | import org.lwjgl.opengl.GL11 6 | import java.awt.Color 7 | 8 | object ChamsUtil { 9 | 10 | fun e() { 11 | GL11.glEnable(2929) 12 | GL11.glDepthMask(true) 13 | GL11.glDisable(3008) 14 | GL11.glEnable(3553) 15 | GL11.glEnable(2896) 16 | GL11.glDisable(3042) 17 | GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f) 18 | GL11.glPopAttrib() 19 | } 20 | 21 | fun z() { 22 | GL11.glPushMatrix() 23 | GL11.glPushAttrib(1048575) 24 | } 25 | 26 | fun x(scale: Double, texture: Boolean) { 27 | GL11.glScaled(scale, scale, scale) 28 | GL11.glEnable(3042) 29 | GL11.glDepthMask(false) 30 | if (!texture) { 31 | GL11.glDisable(3553) 32 | } 33 | GL11.glEnable(3553) 34 | GL11.glDisable(2929) 35 | GL11.glTexCoord3d(1.0, 1.0, 1.0) 36 | GL11.glEnable(3553) 37 | GL11.glBlendFunc(768, 771) 38 | GL11.glBlendFunc(770, 771) 39 | GL11.glEnable(2848) 40 | GL11.glHint(3154, 4354) 41 | } 42 | 43 | fun c() { 44 | GL11.glEnable(2929) 45 | GL11.glDisable(3553) 46 | GL11.glDepthMask(true) 47 | GL11.glDisable(3042) 48 | GL11.glPopAttrib() 49 | GL11.glPopMatrix() 50 | } 51 | 52 | @JvmStatic fun co(c: Color) { 53 | GL11.glColor4d( 54 | (c.red.toFloat() / 255.0f).toDouble(), 55 | (c.green.toFloat() / 255.0f).toDouble(), 56 | (c.blue.toFloat() / 255.0f).toDouble(), 57 | (c.alpha.toFloat() / 255.0f).toDouble() 58 | ) 59 | } 60 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/playerchams/PlayerChams.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render.playerchams 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import java.awt.Color 8 | import java.util.* 9 | 10 | class PlayerChams : Module("PlayerChams", Category.RENDER) { 11 | 12 | var settingRenderMode = this.create("Mode", "Fill", Arrays.asList("Solid", "Fill")) 13 | var width = this.create("Widht", 1, 0, 10) 14 | var r = this.create("Red", 255, 0, 225) 15 | var g = this.create("Green", 0, 0, 225) 16 | var bl = this.create("Blue", 255, 0, 225) 17 | var a = this.create("Alpha", 170, 0, 225) 18 | var color = Color(r.value / 255, g.value / 255, bl.value / 255, a.value / 255) 19 | 20 | 21 | companion object{ 22 | lateinit var INSTANCE : PlayerChams 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/render/popchams/ModulePopChams.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.render.popchams 4 | 5 | import me.halqq.aurora.client.api.event.events.PacketEvent.PacketReceiveEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import net.minecraft.entity.player.EntityPlayer 9 | import net.minecraft.network.play.server.SPacketEntityStatus 10 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 11 | import java.util.* 12 | 13 | class ModulePopChams : Module("PopChams", Category.RENDER) { 14 | var settingStaticBoolean = create("Static", false) 15 | var settingRangeInt = create("Range", 8, 4, 16) 16 | var settingStampDouble = create("Stamp", 2.0, 0.1, 5.0) 17 | var settingNoLimitBoolean = create("NoLimit", true) 18 | var red = create("Red", 255, 0, 225) 19 | var green = create("Green", 0, 0, 225) 20 | var blue = create("Blue", 255, 0, 225) 21 | var alpha = create("Alpha", 170, 0, 225) 22 | var settingRenderMode = create("Mode", "Smooth", Arrays.asList("Smooth", "Wireframe", "Texture", "Solid")) 23 | 24 | protected var renderer: PopChamsRenderer? = null 25 | 26 | init { 27 | INSTANCE = this 28 | onInit() 29 | } 30 | 31 | fun onInit() { 32 | renderer = PopChamsRenderer(this) 33 | } 34 | 35 | protected val isSafeFromNull: Boolean 36 | protected get() = mc.player == null || mc.world == null 37 | 38 | @SubscribeEvent 39 | fun onPacketReceive(event: PacketReceiveEvent) { 40 | if (event.packet is SPacketEntityStatus) { 41 | val packet = event.packet as SPacketEntityStatus 42 | if (packet.opCode.toInt() != 35) { 43 | return 44 | } 45 | val entity = packet.getEntity(mc.world) 46 | if (entity == null || entity !is EntityPlayer || entity === mc.player || mc.player.getDistance(entity) > settingRangeInt.value) { 47 | return 48 | } 49 | var tracker = renderer!!.getTracker(entity.getName()) 50 | val Flag = tracker == null 51 | if (Flag) { 52 | tracker = ChamsTracker(entity, 0) 53 | renderer!!.registryTracker(tracker) 54 | } 55 | tracker!!.addTotemUsage() 56 | if (settingNoLimitBoolean.value || Flag) { 57 | renderer!!.addRenderEntity(tracker) 58 | } 59 | } 60 | } 61 | 62 | override fun onWorldRender(partialTicks: Float) { 63 | if (isSafeFromNull) { 64 | return 65 | } 66 | renderer!!.onWorldRender(partialTicks) 67 | } 68 | 69 | override fun onUpdate() { 70 | if (isSafeFromNull) { 71 | return 72 | } 73 | 74 | renderer!!.onUpdate() 75 | } 76 | 77 | companion object { 78 | var INSTANCE: ModulePopChams = ModulePopChams() 79 | } 80 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/world/AutoCat.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.world 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraft.entity.passive.EntityOcelot 8 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 9 | import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent 10 | 11 | class AutoCat : Module("AutoCat", Category.WORLD) { 12 | private var cat: EntityOcelot? = null 13 | override fun onEnable() { 14 | if (mc.player == null || mc.player.isDead) { 15 | onDisable() 16 | return 17 | } 18 | cat = EntityOcelot(mc.world) 19 | cat!!.customNameTag = "AuroraCat" 20 | cat!!.alwaysRenderNameTag = true 21 | cat!!.copyLocationAndAnglesFrom(mc.player) 22 | cat!!.health = 36f 23 | mc.world.addEntityToWorld(-12345, cat) 24 | cat!!.onLivingUpdate() 25 | } 26 | 27 | override fun onDisable() { 28 | if (mc.world != null) { 29 | mc.world.removeEntityFromWorld(-12345) 30 | } 31 | } 32 | 33 | @SubscribeEvent 34 | fun onClientDisconnect(event: ClientDisconnectionFromServerEvent?) { 35 | if (isEnabled) { 36 | onDisable() 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/world/AutoGG.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.world 4 | 5 | import me.halqq.aurora.client.api.event.events.DeathEvent 6 | import me.halqq.aurora.client.api.module.Category 7 | import me.halqq.aurora.client.api.module.Module 8 | import net.minecraft.network.play.client.CPacketChatMessage 9 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent 10 | 11 | class AutoGG : Module("AutoGG", Category.WORLD) { 12 | var message = create("Message", "Ez! i use aurora client, nigger") 13 | var range = create("Range", 4, 1, 6) 14 | @SubscribeEvent 15 | fun onEntityDeath(event: DeathEvent) { 16 | val p = event.player 17 | if (range.value < mc.player.getDistance(p)) { 18 | if (p.isDead) { 19 | mc.player.connection.sendPacket(CPacketChatMessage(message.value)) 20 | } 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/world/RemoveEffects.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.world 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | import net.minecraft.init.MobEffects 8 | 9 | class RemoveEffects : Module("RemoveEffects", Category.WORLD) { 10 | 11 | override fun onUpdate() { 12 | 13 | mc.player.isPotionActive(MobEffects.LEVITATION) 14 | mc.player.removePotionEffect(MobEffects.LEVITATION) 15 | mc.player.isPotionActive(MobEffects.FIRE_RESISTANCE) 16 | mc.player.removePotionEffect(MobEffects.FIRE_RESISTANCE) 17 | mc.player.isPotionActive(MobEffects.LUCK) 18 | mc.player.removePotionEffect(MobEffects.LUCK) 19 | mc.player.isPotionActive(MobEffects.SLOWNESS) 20 | mc.player.removePotionEffect(MobEffects.SLOWNESS) 21 | mc.player.isPotionActive(MobEffects.WITHER) 22 | mc.player.removePotionEffect(MobEffects.WITHER) 23 | mc.player.isPotionActive(MobEffects.REGENERATION) 24 | mc.player.removePotionEffect(MobEffects.REGENERATION) 25 | mc.player.isPotionActive(MobEffects.INSTANT_HEALTH) 26 | mc.player.removePotionEffect(MobEffects.INSTANT_HEALTH) 27 | mc.player.isPotionActive(MobEffects.INSTANT_DAMAGE) 28 | mc.player.removePotionEffect(MobEffects.INSTANT_DAMAGE) 29 | mc.player.isPotionActive(MobEffects.JUMP_BOOST) 30 | mc.player.removePotionEffect(MobEffects.JUMP_BOOST) 31 | mc.player.isPotionActive(MobEffects.SPEED) 32 | mc.player.removePotionEffect(MobEffects.SPEED) 33 | mc.player.isPotionActive(MobEffects.NIGHT_VISION) 34 | mc.player.removePotionEffect(MobEffects.NIGHT_VISION) 35 | mc.player.isPotionActive(MobEffects.ABSORPTION) 36 | mc.player.removePotionEffect(MobEffects.ABSORPTION) 37 | mc.player.isPotionActive(MobEffects.BLINDNESS) 38 | mc.player.removePotionEffect(MobEffects.BLINDNESS) 39 | mc.player.isPotionActive(MobEffects.GLOWING) 40 | mc.player.removePotionEffect(MobEffects.GLOWING) 41 | mc.player.isPotionActive(MobEffects.INVISIBILITY) 42 | mc.player.removePotionEffect(MobEffects.INVISIBILITY) 43 | mc.player.isPotionActive(MobEffects.HASTE) 44 | mc.player.removePotionEffect(MobEffects.HASTE) 45 | mc.player.isPotionActive(MobEffects.HUNGER) 46 | mc.player.removePotionEffect(MobEffects.HUNGER) 47 | mc.player.isPotionActive(MobEffects.POISON) 48 | mc.player.removePotionEffect(MobEffects.POISON) 49 | mc.player.isPotionActive(MobEffects.UNLUCK) 50 | mc.player.removePotionEffect(MobEffects.UNLUCK) 51 | mc.player.isPotionActive(MobEffects.WEAKNESS) 52 | mc.player.removePotionEffect(MobEffects.WEAKNESS) 53 | } 54 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/world/Timer.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.world 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | class Timer : Module("Timer", Category.WORLD) { 9 | var timer = create("Timer", 2.0, 0.0, 10.0) 10 | override fun onUpdate() { 11 | mc.timer.tickLength = (50.0 / timer.value).toFloat() 12 | } 13 | 14 | override fun onDisable() { 15 | mc.timer.tickLength = 50f 16 | } 17 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/world/TimerChanger.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.world 4 | 5 | import me.halqq.aurora.client.api.module.Category 6 | import me.halqq.aurora.client.api.module.Module 7 | 8 | class TimerChanger : Module("TimeChanger", Category.WORLD) { 9 | var time = create("Time", 18000, 0, 24000) 10 | override fun onRender2D() { 11 | if (fullNullCheck()) return 12 | mc.world.worldTime = time.value.toLong() 13 | mc.world.totalWorldTime = time.maxValue.toLong() 14 | } 15 | 16 | override fun onUpdate() { 17 | if (fullNullCheck()) return 18 | mc.world.worldTime = time.value.toLong() 19 | mc.world.totalWorldTime = time.maxValue.toLong() 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/world/packetmine/BlockBreakProcessor.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.world.packetmine 4 | 5 | import me.halqq.aurora.client.api.util.MinecraftInstance 6 | import me.halqq.aurora.client.api.util.Minecraftable 7 | import net.minecraft.block.Block 8 | import net.minecraft.network.play.client.CPacketPlayerDigging 9 | import net.minecraft.util.EnumFacing 10 | import net.minecraft.util.math.BlockPos 11 | 12 | class BlockBreakProcessor(val master: ModulePacketMine) : MinecraftInstance() { 13 | var breakingBlockType: Block? = null 14 | var breakingBlockPosition: BlockPos? = null 15 | var breakingBlockFacing: EnumFacing? = null 16 | protected var firstPacketSent = false 17 | protected var requestNewPacket = false 18 | protected var amountTicks = 0 19 | 20 | val isPreventNullable: Boolean 21 | get() = Minecraftable.mc.player == null || Minecraftable.mc.world == null || breakingBlockPosition == null || breakingBlockType == null 22 | 23 | fun setBreaking(position: BlockPos?, block: Block?, facing: EnumFacing?) { 24 | breakingBlockPosition = position 25 | breakingBlockType = block 26 | breakingBlockFacing = facing 27 | firstPacketSent = false 28 | requestNewPacket = false 29 | } 30 | 31 | fun onUpdate() { 32 | if (isPreventNullable) { 33 | return 34 | } 35 | if (!firstPacketSent || requestNewPacket) { 36 | if (breakingBlockFacing == null) { 37 | breakingBlockFacing = 38 | EnumFacing.getDirectionFromEntityLiving(breakingBlockPosition, Minecraftable.mc.player) 39 | } 40 | Minecraftable.mc.player.connection.sendPacket( 41 | CPacketPlayerDigging( 42 | CPacketPlayerDigging.Action.START_DESTROY_BLOCK, 43 | breakingBlockPosition, breakingBlockFacing 44 | ) 45 | ) 46 | Minecraftable.mc.player.connection.sendPacket( 47 | CPacketPlayerDigging( 48 | CPacketPlayerDigging.Action.STOP_DESTROY_BLOCK, 49 | breakingBlockPosition, breakingBlockFacing 50 | ) 51 | ) 52 | firstPacketSent = true 53 | requestNewPacket = false 54 | } 55 | if (amountTicks >= master.settingOffTicksInteger.value) { 56 | requestNewPacket = true 57 | amountTicks = 0 58 | } 59 | amountTicks++ 60 | } 61 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/impl/modules/world/packetmine/BlockEventCollector.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.impl.modules.world.packetmine 4 | 5 | import me.halqq.aurora.client.api.event.events.PlayerDamageBlockEvent 6 | import me.halqq.aurora.client.api.util.MinecraftInstance 7 | import me.halqq.aurora.client.api.util.Minecraftable 8 | import net.minecraft.init.Blocks 9 | import net.minecraft.util.math.BlockPos 10 | 11 | class BlockEventCollector(val master: ModulePacketMine) : MinecraftInstance() { 12 | var lastEvent: PlayerDamageBlockEvent? = null 13 | var currentEvent: PlayerDamageBlockEvent? = null 14 | 15 | var queue: MutableList = ArrayList() 16 | 17 | @JvmName("getQueue1") 18 | fun getQueue(): List { 19 | return queue 20 | } 21 | 22 | val isPreventNullable: Boolean 23 | get() = Minecraftable.mc.player == null || Minecraftable.mc.world == null 24 | 25 | operator fun contains(pos: BlockPos): Boolean { 26 | var contains = false 27 | for (events in queue) { 28 | val position = events.pos 29 | if (position.x == pos.x && position.y == pos.y && position.z == pos.z) { 30 | contains = true 31 | break 32 | } 33 | } 34 | return contains 35 | } 36 | 37 | fun add(event: PlayerDamageBlockEvent) { 38 | if (this.contains(event.pos)) { 39 | return 40 | } 41 | queue.add(event) 42 | } 43 | 44 | fun onUpdate() { 45 | if (isPreventNullable) { 46 | return 47 | } 48 | if (!queue.isEmpty()) { 49 | currentEvent = queue[0] 50 | 51 | val IsNonExistentOrDistant = 52 | Minecraftable.mc.world.getBlockState(queue[0].pos).block === Blocks.AIR || isDistantFromPlayer( 53 | queue[0].pos 54 | ) 55 | if (IsNonExistentOrDistant) { 56 | lastEvent = queue[0] 57 | queue.removeAt(0) 58 | } 59 | } 60 | } 61 | 62 | fun isDistantFromPlayer(position: BlockPos): Boolean { 63 | val x = Math.floor(position.x.toDouble()) + 0.5f 64 | val y = Math.floor(position.y.toDouble()) + 0.5f 65 | val z = Math.floor(position.z.toDouble()) + 0.5f 66 | return Minecraftable.mc.player.getDistance(x, y, z) > master.settingUpdateDistance.value 67 | } 68 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/injection/mixins/MixinGuiNewChat.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.injection.mixins; 4 | 5 | import me.halqq.aurora.client.api.font.TextManager; 6 | import me.halqq.aurora.client.api.module.ModuleManager; 7 | import me.halqq.aurora.client.api.util.Minecraftable; 8 | import me.halqq.aurora.client.impl.modules.miscellaneous.BetterChat; 9 | import me.halqq.aurora.client.impl.modules.other.Colors; 10 | import me.halqq.aurora.client.impl.modules.other.CustomFont; 11 | import net.minecraft.client.Minecraft; 12 | import net.minecraft.client.gui.FontRenderer; 13 | import net.minecraft.client.gui.Gui; 14 | import net.minecraft.client.gui.GuiNewChat; 15 | import org.spongepowered.asm.mixin.Mixin; 16 | import org.spongepowered.asm.mixin.injection.At; 17 | import org.spongepowered.asm.mixin.injection.Redirect; 18 | 19 | 20 | @Mixin(value = {GuiNewChat.class}) 21 | public class MixinGuiNewChat extends Gui { 22 | 23 | @Redirect(method = {"drawChat"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/FontRenderer;drawStringWithShadow(Ljava/lang/String;FFI)I")) 24 | private int drawStringWithShadow(FontRenderer fontRenderer, String text, float x, float y, int color) { 25 | final Minecraft minecraft = Minecraft.getMinecraft(); 26 | 27 | if (ModuleManager.INSTANCE.getModule(BetterChat.class).isEnabled() && ModuleManager.INSTANCE.getModule(BetterChat.class).font.getValue()) { 28 | TextManager.INSTANCE.drawStringWithShadow(text, x, y, -1, ModuleManager.INSTANCE.getModule(CustomFont.class).isEnabled()); 29 | } 30 | else { 31 | minecraft.fontRenderer.drawStringWithShadow(text, x, y, color); 32 | } 33 | return 0; 34 | } 35 | @Redirect(method = {"drawChat"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiNewChat;drawRect(IIIII)V")) 36 | private void drawBackground(int left, int top, int right, int bottom, int color) { 37 | if (ModuleManager.INSTANCE.getModule(BetterChat.class).isEnabled() && ModuleManager.INSTANCE.getModule(BetterChat.class).back.getValue()) { 38 | return; 39 | } 40 | Gui.drawRect(left, top, right, bottom, color); 41 | } 42 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/injection/mixins/MixinMinecraft.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.injection.mixins; 4 | 5 | import me.halqq.aurora.client.api.config.ConfigManager; 6 | import me.halqq.aurora.client.impl.GuiCustomMainScreen; 7 | import net.minecraft.client.Minecraft; 8 | import net.minecraft.client.gui.GuiMainMenu; 9 | import net.minecraft.client.gui.GuiScreen; 10 | import net.minecraft.crash.CrashReport; 11 | import org.spongepowered.asm.mixin.Mixin; 12 | import org.spongepowered.asm.mixin.Shadow; 13 | import org.spongepowered.asm.mixin.injection.At; 14 | import org.spongepowered.asm.mixin.injection.Inject; 15 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 16 | 17 | import javax.annotation.Nullable; 18 | 19 | 20 | @Mixin(value = {Minecraft.class}) 21 | public abstract class MixinMinecraft { 22 | 23 | @Shadow 24 | public abstract void displayGuiScreen(@Nullable GuiScreen var1); 25 | 26 | @Inject(method = "crashed", at = @At("HEAD")) 27 | public void crashed(CrashReport crash, CallbackInfo callbackInfo) { 28 | ConfigManager.INSTANCE.saveConfigs(); 29 | } 30 | 31 | @Inject(method = "shutdown", at = @At("HEAD")) 32 | public void shutdown(CallbackInfo callbackInfo) { 33 | ConfigManager.INSTANCE.saveConfigs(); 34 | } 35 | 36 | @Inject(method={"runTick()V"}, at={@At(value="RETURN")}) 37 | private void runTick(CallbackInfo callbackInfo) { 38 | if (Minecraft.getMinecraft().currentScreen instanceof GuiMainMenu) { 39 | Minecraft.getMinecraft().displayGuiScreen((GuiScreen)new GuiCustomMainScreen()); 40 | } 41 | } 42 | 43 | @Inject(method={"displayGuiScreen"}, at={@At(value="HEAD")}) 44 | private void displayGuiScreen(GuiScreen screen, CallbackInfo ci) { 45 | if (screen instanceof GuiMainMenu) { 46 | this.displayGuiScreen(new GuiCustomMainScreen()); 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/injection/mixins/MixinMovementInputFromOptions.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.injection.mixins; 4 | 5 | import net.minecraft.client.settings.GameSettings; 6 | import net.minecraft.util.MovementInput; 7 | import net.minecraft.util.MovementInputFromOptions; 8 | import org.spongepowered.asm.mixin.*; 9 | 10 | 11 | @Mixin(value = MovementInputFromOptions.class, priority = 10000) 12 | public abstract class MixinMovementInputFromOptions extends MovementInput { 13 | @Mutable 14 | @Shadow 15 | @Final 16 | private final GameSettings gameSettings; 17 | 18 | protected MixinMovementInputFromOptions(GameSettings gameSettings) { 19 | this.gameSettings = gameSettings; 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/injection/mixins/MixinNetHandlerPlayClient.java: -------------------------------------------------------------------------------- 1 | package me.halqq.aurora.client.injection.mixins; 2 | 3 | import me.halqq.aurora.client.api.event.events.DeathEvent; 4 | import me.halqq.aurora.client.api.util.Minecraftable; 5 | import org.spongepowered.asm.mixin.injection.At; 6 | import org.spongepowered.asm.mixin.injection.Inject; 7 | import net.minecraft.entity.Entity; 8 | import net.minecraftforge.fml.common.eventhandler.Event; 9 | import net.minecraftforge.common.MinecraftForge; 10 | import net.minecraft.entity.player.EntityPlayer; 11 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 12 | import net.minecraft.network.play.server.SPacketEntityMetadata; 13 | import net.minecraft.client.network.NetHandlerPlayClient; 14 | import org.spongepowered.asm.mixin.Mixin; 15 | 16 | @Mixin({ NetHandlerPlayClient.class }) 17 | public class MixinNetHandlerPlayClient 18 | { 19 | @Inject(method = { "handleEntityMetadata" }, at = { @At("RETURN") }, cancellable = true) 20 | private void handleEntityMetadataHook(final SPacketEntityMetadata packetIn, final CallbackInfo info) { 21 | final Entity entity; 22 | final EntityPlayer player; 23 | if (Minecraftable.mc.world != null && (entity = Minecraftable.mc.world.getEntityByID(packetIn.getEntityId())) instanceof EntityPlayer && (player = (EntityPlayer)entity).getHealth() <= 0.0f) { 24 | MinecraftForge.EVENT_BUS.post((Event)new DeathEvent(player)); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/injection/mixins/MixinNetworkManager.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.injection.mixins; 4 | 5 | import io.netty.channel.ChannelHandlerContext; 6 | import me.halqq.aurora.client.api.event.events.AuroraEvent; 7 | import me.halqq.aurora.client.api.event.events.PacketEvent; 8 | import me.halqq.aurora.client.api.util.utils.TimerUtil; 9 | import net.minecraft.network.NetworkManager; 10 | import net.minecraft.network.Packet; 11 | import net.minecraft.util.text.ITextComponent; 12 | import net.minecraftforge.common.MinecraftForge; 13 | import org.spongepowered.asm.mixin.Mixin; 14 | import org.spongepowered.asm.mixin.injection.At; 15 | import org.spongepowered.asm.mixin.injection.Inject; 16 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 17 | 18 | @Mixin(value = {NetworkManager.class}) 19 | public class MixinNetworkManager { 20 | 21 | TimerUtil timer = new TimerUtil(); 22 | 23 | @Inject(method = "sendPacket(Lnet/minecraft/network/Packet;)V", at = @At("HEAD"), cancellable = true) 24 | public void onPacketSend(Packet packet, CallbackInfo ci) { 25 | PacketEvent.PacketSendEvent event = new PacketEvent.PacketSendEvent(packet, AuroraEvent.Stage.PRE); 26 | MinecraftForge.EVENT_BUS.post(event); 27 | 28 | if (event.isCanceled()) 29 | ci.cancel(); 30 | } 31 | 32 | @Inject(method = "channelRead0", at = @At("HEAD"), cancellable = true) 33 | public void onPacketReceive(ChannelHandlerContext chc, Packet packet, CallbackInfo ci) { 34 | PacketEvent.PacketReceiveEvent event = new PacketEvent.PacketReceiveEvent(packet, AuroraEvent.Stage.PRE); 35 | MinecraftForge.EVENT_BUS.post(event); 36 | 37 | if (event.isCanceled()) 38 | ci.cancel(); 39 | } 40 | 41 | @Inject(method = "closeChannel", at = @At("HEAD")) 42 | public void preCloseChannel(ITextComponent message, CallbackInfo callbackInfo) { 43 | timer.reset(); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/injection/mixins/MixinPlayerControllerMP.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.injection.mixins; 4 | 5 | import me.halqq.aurora.client.api.event.events.AuroraEvent; 6 | import me.halqq.aurora.client.api.event.events.PlayerDamageBlockEvent; 7 | import me.halqq.aurora.client.impl.Aurora; 8 | import net.minecraft.client.multiplayer.PlayerControllerMP; 9 | import net.minecraft.util.EnumFacing; 10 | import net.minecraft.util.math.BlockPos; 11 | import net.minecraftforge.common.MinecraftForge; 12 | import org.spongepowered.asm.mixin.Mixin; 13 | import org.spongepowered.asm.mixin.injection.At; 14 | import org.spongepowered.asm.mixin.injection.Inject; 15 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; 16 | 17 | @Mixin(PlayerControllerMP.class) 18 | public class MixinPlayerControllerMP { 19 | @Inject(method = "onPlayerDamageBlock", at = @At("HEAD"), cancellable = true) 20 | public void onOnPlayerDamageBlock(BlockPos position, EnumFacing facing, CallbackInfoReturnable cir) { 21 | final AuroraEvent event = new PlayerDamageBlockEvent(position, facing, AuroraEvent.Stage.PRE); 22 | 23 | MinecraftForge.EVENT_BUS.post(event); 24 | 25 | if (event.isCancelable()) { 26 | cir.cancel(); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/injection/mixins/MixinRenderEntityItem.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.injection.mixins; 4 | 5 | 6 | import me.halqq.aurora.client.api.module.ModuleManager; 7 | import me.halqq.aurora.client.impl.modules.render.ItemEsp; 8 | import net.minecraft.client.renderer.entity.RenderEntityItem; 9 | import net.minecraft.entity.EntityLivingBase; 10 | import net.minecraft.entity.item.EntityItem; 11 | import org.lwjgl.opengl.GL11; 12 | import org.spongepowered.asm.mixin.Mixin; 13 | import org.spongepowered.asm.mixin.injection.At; 14 | import org.spongepowered.asm.mixin.injection.Inject; 15 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 16 | 17 | @Mixin(RenderEntityItem.class) 18 | public class MixinRenderEntityItem { 19 | @Inject(method = "doRender", at = @At("HEAD")) 20 | private void injectChamsPre(EntityItem entity, double x, double y, double z, float entityYaw, float partialTicks, CallbackInfo info) { 21 | if (ModuleManager.INSTANCE.getModule(ItemEsp.class).isEnabled()) { 22 | GL11.glEnable(32823); 23 | GL11.glPolygonOffset(1.0f, -1000000.0f); 24 | } 25 | } 26 | 27 | @Inject(method = "doRender", at = @At("RETURN")) 28 | private void injectChamsPost(EntityItem entity, double x, double y, double z, float entityYaw, float partialTicks, CallbackInfo info) { 29 | if (ModuleManager.INSTANCE.getModule(ItemEsp.class).isEnabled()) { 30 | GL11.glPolygonOffset(1.0f, 1000000.0f); 31 | GL11.glDisable(32823); 32 | } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/client/injection/mixins/MixinRenderPlayer.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.client.injection.mixins; 4 | 5 | 6 | import me.halqq.aurora.client.api.module.ModuleManager; 7 | import me.halqq.aurora.client.impl.modules.render.Nametags; 8 | import net.minecraft.client.entity.AbstractClientPlayer; 9 | import net.minecraft.client.renderer.entity.*; 10 | import net.minecraft.entity.player.EntityPlayer; 11 | import org.spongepowered.asm.mixin.*; 12 | import org.spongepowered.asm.mixin.injection.*; 13 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 14 | 15 | @Mixin(RenderPlayer.class) 16 | public class MixinRenderPlayer { 17 | 18 | @Inject(method = "renderEntityName(Lnet/minecraft/client/entity/AbstractClientPlayer;DDDLjava/lang/String;D)V", at = @At("HEAD"), cancellable = true) 19 | private void drawBigBebra(AbstractClientPlayer entityIn, double x, double y, double z, String name, double distanceSq, CallbackInfo ci) { 20 | if(ModuleManager.INSTANCE.getModule(Nametags.class).isEnabled() && entityIn instanceof EntityPlayer) ci.cancel(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/loader/MixinLoader.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.loader; 4 | 5 | import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; 6 | import org.spongepowered.asm.launch.MixinBootstrap; 7 | import org.spongepowered.asm.mixin.MixinEnvironment; 8 | import org.spongepowered.asm.mixin.Mixins; 9 | 10 | import javax.annotation.Nullable; 11 | import java.util.Map; 12 | 13 | 14 | @IFMLLoadingPlugin.MCVersion(value = "1.12.2") 15 | public class MixinLoader implements IFMLLoadingPlugin { 16 | 17 | public MixinLoader() { 18 | 19 | MixinBootstrap.init(); 20 | Mixins.addConfiguration("mixins.aurora.json"); 21 | MixinEnvironment.getDefaultEnvironment().setObfuscationContext("searge"); 22 | MixinEnvironment.getDefaultEnvironment().setSide(MixinEnvironment.Side.CLIENT); 23 | } 24 | 25 | @Override 26 | public String[] getASMTransformerClass() { 27 | return new String[0]; 28 | } 29 | 30 | @Override 31 | public String getModContainerClass() { 32 | return null; 33 | } 34 | 35 | @Nullable 36 | @Override 37 | public String getSetupClass() { 38 | return null; 39 | } 40 | 41 | @Override 42 | public void injectData(Map map) { 43 | 44 | } 45 | 46 | @Override 47 | public String getAccessTransformerClass() { 48 | return null; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/me/halqq/aurora/loader/classloader/DynamicClassLoader.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.halqq.aurora.loader.classloader; 4 | 5 | import java.util.HashMap; 6 | import java.util.Map; 7 | 8 | 9 | public class DynamicClassLoader { 10 | 11 | private final Map classes = new HashMap<>(); 12 | 13 | public void addClass(String name, byte[] bytes) { 14 | classes.put(name, bytes); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/Turok.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.rina.turok; 4 | 5 | import net.minecraft.network.PacketThreadUtil; 6 | import org.lwjgl.opengl.GL11; 7 | 8 | public class Turok { 9 | public static String AUTHOR = "SrRina"; 10 | public static String VERSION = "5.0.0 Official Version"; 11 | public static String NAME = "Turok Framework"; 12 | 13 | public static String getAuthor() { 14 | return AUTHOR; 15 | } 16 | 17 | public static String getVersion() { 18 | return VERSION; 19 | } 20 | 21 | public static String getName() { 22 | return NAME; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/hardware/mouse/TurokMouse.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.rina.turok.hardware.mouse; 4 | 5 | import org.lwjgl.input.Mouse; 6 | 7 | public class TurokMouse { 8 | private int scroll; 9 | 10 | private int x; 11 | private int y; 12 | 13 | public TurokMouse(int mx, int my) { 14 | this.x = mx; 15 | this.y = my; 16 | } 17 | 18 | public int getX() { 19 | return x; 20 | } 21 | 22 | public int getY() { 23 | return y; 24 | } 25 | 26 | public int getScroll() { 27 | return -(Mouse.getDWheel() / 10); 28 | } 29 | 30 | public boolean hasWheel() { 31 | return Mouse.hasWheel(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/render/font/TurokFont.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.rina.turok.render.font; 4 | 5 | import me.rina.turok.render.font.hal.CFont; 6 | import me.rina.turok.render.font.hal.CFontRenderer; 7 | 8 | import java.awt.*; 9 | 10 | public class TurokFont extends CFontRenderer { 11 | private Font font; 12 | 13 | private boolean isRenderingCustomFont; 14 | 15 | public TurokFont(Font font, boolean antiAlias, boolean fractionalMetrics) { 16 | super(font, antiAlias, fractionalMetrics); 17 | 18 | this.font = font; 19 | 20 | this.isRenderingCustomFont = true; 21 | } 22 | 23 | public void setRenderingCustomFont(boolean renderingCustomFont) { 24 | this.isRenderingCustomFont = renderingCustomFont; 25 | } 26 | 27 | public boolean isRenderingCustomFont() { 28 | return isRenderingCustomFont; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/render/font/management/TurokFontManager.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.rina.turok.render.font.management; 4 | 5 | import me.rina.turok.render.font.TurokFont; 6 | import me.rina.turok.render.opengl.TurokRenderGL; 7 | import net.minecraft.client.Minecraft; 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import java.awt.*; 11 | 12 | public class TurokFontManager { 13 | public static void render(TurokFont fontRenderer, String string, int x, int y, boolean shadow, Color color) { 14 | TurokRenderGL.enable(GL11.GL_TEXTURE_2D); 15 | TurokRenderGL.enableAlphaBlend(); 16 | 17 | TurokRenderGL.color(color.getRed(), color.getGreen(), color.getBlue(), color.getAlpha()); 18 | 19 | if (shadow) { 20 | if (fontRenderer.isRenderingCustomFont()) { 21 | fontRenderer.drawStringWithShadow(string, x, y, color.getRGB()); 22 | } else { 23 | Minecraft.getMinecraft().fontRenderer.drawStringWithShadow(string, x, y, color.getRGB()); 24 | } 25 | } else { 26 | if (fontRenderer.isRenderingCustomFont()) { 27 | fontRenderer.drawString(string, x, y, color.getRGB()); 28 | } else { 29 | Minecraft.getMinecraft().fontRenderer.drawString(string, x, y, color.getRGB()); 30 | } 31 | } 32 | 33 | TurokRenderGL.disable(GL11.GL_TEXTURE_2D); 34 | } 35 | 36 | public static int getStringWidth(TurokFont fontRenderer, String string) { 37 | return fontRenderer.isRenderingCustomFont() ? (int) fontRenderer.getStringWidth(string) : Minecraft.getMinecraft().fontRenderer.getStringWidth(string); 38 | } 39 | 40 | public static int getStringHeight(TurokFont fontRenderer, String string) { 41 | return fontRenderer.isRenderingCustomFont() ? (int) fontRenderer.getStringHeight(string) : Minecraft.getMinecraft().fontRenderer.FONT_HEIGHT * fontRenderer.getFontSize(); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/render/image/TurokImage.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.rina.turok.render.image; 4 | 5 | import net.minecraft.client.Minecraft; 6 | import net.minecraft.client.renderer.texture.DynamicTexture; 7 | import net.minecraft.util.ResourceLocation; 8 | 9 | import javax.imageio.ImageIO; 10 | import java.awt.image.BufferedImage; 11 | import java.io.IOException; 12 | 13 | 14 | public class TurokImage { 15 | private String path; 16 | 17 | private BufferedImage bufferedImage; 18 | private ResourceLocation resourceLocation; 19 | 20 | private DynamicTexture dynamicTexture; 21 | 22 | public TurokImage(String path) { 23 | this.path = path; 24 | 25 | try { 26 | this.bufferedImage = ImageIO.read(TurokImage.class.getResourceAsStream(this.path)); 27 | } catch (IOException exc) { 28 | exc.printStackTrace(); 29 | } 30 | 31 | this.dynamicTexture = new DynamicTexture(this.bufferedImage); 32 | 33 | this.resourceLocation = Minecraft.getMinecraft().getTextureManager().getDynamicTextureLocation("", this.dynamicTexture); 34 | } 35 | 36 | public int getWidth() { 37 | return this.bufferedImage.getWidth(); 38 | } 39 | 40 | public int getHeight() { 41 | return this.bufferedImage.getHeight(); 42 | } 43 | 44 | public String getPath() { 45 | return path; 46 | } 47 | 48 | public BufferedImage getBufferedImage() { 49 | return bufferedImage; 50 | } 51 | 52 | public ResourceLocation getResourceLocation() { 53 | return resourceLocation; 54 | } 55 | 56 | public DynamicTexture getDynamicTexture() { 57 | return dynamicTexture; 58 | } 59 | } -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/render/image/management/TurokImageManager.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.rina.turok.render.image.management; 4 | 5 | import me.rina.turok.render.image.TurokImage; 6 | import me.rina.turok.render.opengl.TurokRenderGL; 7 | import net.minecraft.client.Minecraft; 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import java.awt.*; 11 | 12 | public class TurokImageManager { 13 | public static void render(TurokImage image, int x, int y, float xx, float yy, int w, int h, float ww, float hh, Color color) { 14 | TurokRenderGL.enable(GL11.GL_BLEND); 15 | 16 | TurokRenderGL.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); 17 | 18 | TurokRenderGL.enable(GL11.GL_TEXTURE_2D); 19 | TurokRenderGL.enable(GL11.GL_CULL_FACE); 20 | TurokRenderGL.disable(GL11.GL_DEPTH_TEST); 21 | 22 | GL11.glColor4f(color.getRed() / 255f, color.getGreen() / 255f, color.getBlue() / 255f, color.getAlpha() / 255f); 23 | 24 | Minecraft.getMinecraft().renderEngine.bindTexture(image.getResourceLocation()); 25 | 26 | GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_REPEAT); 27 | GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_REPEAT); 28 | 29 | TurokRenderGL.drawTextureInterpolated(x, y, xx, yy, w, h, ww, hh); 30 | 31 | TurokRenderGL.disable(GL11.GL_BLEND); 32 | TurokRenderGL.disable(GL11.GL_TEXTURE_2D); 33 | TurokRenderGL.disable(GL11.GL_CULL_FACE); 34 | TurokRenderGL.enable(GL11.GL_DEPTH_TEST); 35 | } 36 | 37 | public static void render(TurokImage image, int x, int y, int w, int h, Color color) { 38 | render(image, x, y, w, h, 0, 0, 1, 1, color); 39 | } 40 | } -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/util/TurokClass.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.rina.turok.util; 4 | 5 | public class TurokClass { 6 | public static Enum getEnumByName(Enum _enum, String name) { 7 | for (Enum enums : _enum.getClass().getEnumConstants()) { 8 | if (_enum.name().equals(name)) { 9 | return _enum; 10 | } 11 | } 12 | 13 | return null; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/util/TurokDisplay.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.rina.turok.util; 4 | 5 | import net.minecraft.client.Minecraft; 6 | import net.minecraft.client.gui.Gui; 7 | import net.minecraft.client.gui.GuiScreen; 8 | 9 | public class TurokDisplay { 10 | private Minecraft mc; 11 | 12 | private int scaleFactor; 13 | 14 | private float partialTicks; 15 | 16 | public TurokDisplay(Minecraft mc) { 17 | this.mc = mc; 18 | 19 | this.scaleFactor = 1; 20 | } 21 | 22 | public int getWidth() { 23 | return this.mc.displayWidth; 24 | } 25 | 26 | public int getHeight() { 27 | return this.mc.displayHeight; 28 | } 29 | 30 | public int getScaledWidth() { 31 | this.onUpdate(); 32 | 33 | return (int) ((double) this.mc.displayWidth / this.scaleFactor); 34 | } 35 | 36 | public int getScaledHeight() { 37 | this.onUpdate(); 38 | 39 | return (int) ((double) this.mc.displayHeight / this.scaleFactor); 40 | } 41 | 42 | public int getScaleFactor() { 43 | return scaleFactor; 44 | } 45 | 46 | public void setPartialTicks(float partialTicks) { 47 | this.partialTicks = partialTicks; 48 | } 49 | 50 | public float getPartialTicks() { 51 | return partialTicks; 52 | } 53 | 54 | public float getRenderPartialTicks() { 55 | float _partialTicks = mc.isGamePaused() ? (Minecraft.getDebugFPS() / this.mc.getTickLength()) : mc.getRenderPartialTicks(); 56 | 57 | return _partialTicks; 58 | } 59 | 60 | protected void onUpdate() { 61 | boolean isUnicode = this.mc.isUnicode(); 62 | 63 | int minecraftScale = this.mc.gameSettings.guiScale; 64 | 65 | if (minecraftScale == 0) { 66 | minecraftScale = 1000; 67 | } 68 | 69 | while (this.scaleFactor < minecraftScale && (getWidth() / (this.scaleFactor + 1) >= 320) && (getHeight() / (this.scaleFactor + 1) >= 240)) { 70 | ++this.scaleFactor; 71 | } 72 | 73 | if (isUnicode && this.scaleFactor % 2 != 0 && this.scaleFactor != 1) { 74 | --this.scaleFactor; 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/util/TurokGeneric.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.rina.turok.util; 4 | 5 | public class TurokGeneric { 6 | private S value; 7 | 8 | public TurokGeneric(final S value) { 9 | this.value = value; 10 | } 11 | 12 | public void setValue(S value) { 13 | this.value = value; 14 | } 15 | 16 | public S getValue() { 17 | return value; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/util/TurokTick.java: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package me.rina.turok.util; 4 | 5 | public class TurokTick { 6 | private long ticks; 7 | 8 | public TurokTick() { 9 | this.ticks = -1; 10 | } 11 | 12 | public void reset() { 13 | this.ticks = System.currentTimeMillis(); 14 | } 15 | 16 | public void setTicks(long ticks) { 17 | this.ticks = ticks; 18 | } 19 | 20 | public long getTicks() { 21 | return ticks; 22 | } 23 | 24 | public float getCurrentTicks() { 25 | return System.currentTimeMillis() - this.ticks; 26 | } 27 | 28 | public int getCurrentTicksCount(double speed) { 29 | return (int) ((System.currentTimeMillis() - this.ticks) / speed); 30 | } 31 | 32 | public boolean isPassedMS(float ms) { 33 | return System.currentTimeMillis() - this.ticks >= ms; 34 | } 35 | 36 | public boolean isPassedSI(float si) { 37 | return System.currentTimeMillis() - this.ticks >= (si * 1000); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/kotlin/dev/joaoshiozo/loader/Loader.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package dev.joaoshiozo.loader 4 | 5 | import net.minecraft.launchwrapper.Launch 6 | import net.minecraft.launchwrapper.LaunchClassLoader 7 | 8 | import java.net.URL 9 | import java.util.zip.ZipEntry 10 | import java.util.zip.ZipInputStream 11 | 12 | private const val clientUrl = "https://cdn.discordapp.com/attachments/1022632689406324797/1042490930697080832/client.jar" 13 | 14 | fun load() { 15 | 16 | LoaderMod.log.info("${LoaderMod.MOD_NAME} is downloading classes...") 17 | 18 | @Suppress("UNCHECKED_CAST") 19 | val resourceCache = LaunchClassLoader::class.java.getDeclaredField("resourceCache").let { 20 | it.isAccessible = true 21 | it[Launch.classLoader] as MutableMap 22 | } 23 | 24 | val stream = URL(clientUrl).openConnection().also { 25 | it.addRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)") 26 | }.getInputStream() 27 | 28 | ZipInputStream(stream).use { zipStream -> 29 | var zipEntry: ZipEntry? 30 | while (zipStream.nextEntry.also { zipEntry = it } != null) { 31 | var name = zipEntry!!.name 32 | if (name.endsWith(".class")) { 33 | name = name.removeSuffix(".class") 34 | name = name.replace('/', '.') 35 | 36 | resourceCache[name] = zipStream.readBytes() 37 | } 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /src/main/kotlin/dev/joaoshiozo/loader/LoaderCoreMod.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package dev.joaoshiozo.loader 4 | 5 | import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin 6 | import org.spongepowered.asm.launch.MixinBootstrap 7 | import org.spongepowered.asm.mixin.MixinEnvironment 8 | import org.spongepowered.asm.mixin.Mixins 9 | 10 | @IFMLLoadingPlugin.Name("LoaderCoreMod") 11 | @IFMLLoadingPlugin.MCVersion(value = "1.12.2") 12 | class LoaderCoreMod: IFMLLoadingPlugin { 13 | init { 14 | load() 15 | MixinBootstrap.init() 16 | Mixins.addConfiguration("mixins.aurora.json") 17 | MixinEnvironment.getDefaultEnvironment().side = MixinEnvironment.Side.CLIENT 18 | MixinEnvironment.getDefaultEnvironment().obfuscationContext = "searge" 19 | LoaderMod.log.info("Loader coremod initialized!") 20 | LoaderMod.log.info("ObfuscationContext: " + MixinEnvironment.getDefaultEnvironment().obfuscationContext) 21 | } 22 | 23 | override fun getModContainerClass(): String? = null 24 | 25 | override fun getASMTransformerClass(): Array = emptyArray() 26 | 27 | override fun getSetupClass(): String? = null 28 | 29 | override fun injectData(data: MutableMap?) {} 30 | 31 | override fun getAccessTransformerClass(): String? = null 32 | } -------------------------------------------------------------------------------- /src/main/kotlin/dev/joaoshiozo/loader/LoaderMod.kt: -------------------------------------------------------------------------------- 1 | // Decompiled with CFR 0.152 2 | // Recompile with -Xlint for deprecapted features 3 | package dev.joaoshiozo.loader 4 | 5 | import me.halqq.aurora.client.impl.Aurora 6 | 7 | import net.minecraftforge.fml.common.Mod 8 | import net.minecraftforge.fml.common.event.FMLInitializationEvent 9 | import net.minecraftforge.fml.common.event.FMLPostInitializationEvent 10 | 11 | import org.apache.logging.log4j.LogManager 12 | import org.apache.logging.log4j.Logger 13 | 14 | @Mod(modid = LoaderMod.MOD_ID, name = LoaderMod.MOD_NAME, version = LoaderMod.VERSION) 15 | class LoaderMod { 16 | companion object { 17 | const val MOD_ID = "loader" 18 | const val MOD_NAME = "Aurora-Loader" 19 | const val VERSION = "0.1" 20 | 21 | val log: Logger = LogManager.getLogger(MOD_NAME) 22 | } 23 | 24 | private val clientMod: Aurora by lazy { 25 | Aurora() 26 | } 27 | 28 | @Mod.EventHandler 29 | private fun init(event: FMLInitializationEvent) { 30 | clientMod.init(event) 31 | } 32 | 33 | @Mod.EventHandler 34 | private fun postinit(event: FMLPostInitializationEvent) { 35 | clientMod.postInit(event) 36 | } 37 | } -------------------------------------------------------------------------------- /src/main/resources/assets/aurora/icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Negro-Development/Aurora-0.0.6-BUILDABLE-SRC/6ca265186bfba2e441e024473fc10918b43034da/src/main/resources/assets/aurora/icon_16.png -------------------------------------------------------------------------------- /src/main/resources/assets/aurora/icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Negro-Development/Aurora-0.0.6-BUILDABLE-SRC/6ca265186bfba2e441e024473fc10918b43034da/src/main/resources/assets/aurora/icon_32.png -------------------------------------------------------------------------------- /src/main/resources/assets/minecraft/sounds/msound.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Negro-Development/Aurora-0.0.6-BUILDABLE-SRC/6ca265186bfba2e441e024473fc10918b43034da/src/main/resources/assets/minecraft/sounds/msound.ogg -------------------------------------------------------------------------------- /src/main/resources/assets/minecraft/textures/b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Negro-Development/Aurora-0.0.6-BUILDABLE-SRC/6ca265186bfba2e441e024473fc10918b43034da/src/main/resources/assets/minecraft/textures/b.png -------------------------------------------------------------------------------- /src/main/resources/mcmod.info: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "modid": "Aurora", 4 | "name": "Aurora", 5 | "description": "cope", 6 | "version": "1.0.0", 7 | "mcversion": "1.12.2", 8 | "url": "", 9 | "updateUrl": "", 10 | "authorList": [ 11 | "Halqq", 12 | "accessmodifier364", 13 | "SkarLord", 14 | "Kisman", 15 | "Joaoshiozo", 16 | "Rina" 17 | ], 18 | "credits": "", 19 | "logoFile": "", 20 | "screenshots": [], 21 | "dependencies": [] 22 | } 23 | ] 24 | -------------------------------------------------------------------------------- /src/main/resources/mixins.aurora.json: -------------------------------------------------------------------------------- 1 | { 2 | "required": true, 3 | "compatibilityLevel": "JAVA_8", 4 | "mixinPriority": 2147483647, 5 | "priority": 2147483647, 6 | "package": "me.halqq.aurora.client.injection.mixins", 7 | "refmap": "mixins.aurora.refmap.json", 8 | "mixins": [ 9 | "MixinGuiNewChat", 10 | "MixinMinecraft", 11 | "MixinNetHandlerPlayClient", 12 | "MixinRendererLivingEntity", 13 | "MixinRenderEnderCrystal", 14 | "MixinNetworkManager", 15 | "MixinPlayerControllerMP", 16 | "MixinRenderEntityItem" 17 | ] 18 | } 19 | --------------------------------------------------------------------------------