Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/myau/module/Module.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package myau.module;

import myau.Myau;
import myau.module.category.ICategory;
import myau.module.modules.HUD;
import myau.util.KeyBindUtil;

public abstract class Module {
public abstract class Module implements ICategory {
protected final String name;
protected final boolean defaultEnabled;
protected final int defaultKey;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/myau/module/category/Category.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package myau.module.category;

public enum Category {
COMBAT,
MOVEMENT,
RENDER,
PLAYER,
MISC
}
5 changes: 5 additions & 0 deletions src/main/java/myau/module/category/ICategory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package myau.module.category;

public interface ICategory {
Category category();
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/AimAssist.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import myau.events.KeyEvent;
import myau.events.TickEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.*;
import myau.property.properties.BooleanProperty;
import myau.property.properties.FloatProperty;
Expand Down Expand Up @@ -33,6 +34,11 @@ public class AimAssist extends Module {
public final BooleanProperty botChecks = new BooleanProperty("bot-check", true);
public final BooleanProperty team = new BooleanProperty("teams", true);

@Override
public Category category() {
return Category.COMBAT;
}

private boolean isValidTarget(EntityPlayer entityPlayer) {
if (entityPlayer != mc.thePlayer && entityPlayer != mc.thePlayer.ridingEntity) {
if (entityPlayer == mc.getRenderViewEntity() || entityPlayer == mc.getRenderViewEntity().ridingEntity) {
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/myau/module/modules/AntiDebuff.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package myau.module.modules;

import myau.event.EventTarget;
import myau.events.TickEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.property.properties.BooleanProperty;

public class AntiDebuff extends Module {
Expand All @@ -10,4 +13,9 @@ public class AntiDebuff extends Module {
public AntiDebuff() {
super("AntiDebuff", false);
}

@Override
public Category category() {
return Category.PLAYER;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/AntiFireball.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import myau.events.*;
import myau.management.RotationState;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.*;
import myau.property.properties.*;
import myau.property.properties.FloatProperty;
Expand Down Expand Up @@ -52,6 +53,11 @@ public AntiFireball() {
super("AntiFireball", false);
}

@Override
public Category category() {
return Category.COMBAT;
}

@EventTarget
public void onTick(TickEvent event) {
if (this.isEnabled() && event.getType() == EventType.PRE) {
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/myau/module/modules/AntiObbyTrap.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package myau.module.modules;

import myau.event.EventTarget;
import myau.events.TickEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.property.properties.BooleanProperty;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
Expand All @@ -17,6 +20,11 @@ public AntiObbyTrap() {
super("AntiObbyTrap", false);
}

@Override
public Category category() {
return Category.MISC;
}

public boolean isInsideBlock(World world, BlockPos blockPos) {
IBlockState blockState = world.getBlockState(blockPos);
Block block = blockState.getBlock();
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/AntiObfuscate.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
package myau.module.modules;

import myau.module.Module;
import myau.module.category.Category;

public class AntiObfuscate extends Module {
public AntiObfuscate() {
super("AntiObfuscate", false, true);
}

@Override
public Category category() {
return Category.MISC;
}

public String stripObfuscated(String input) {
return input.replaceAll("§k", "");
}
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/AntiVoid.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import myau.events.KeyEvent;
import myau.events.PlayerUpdateEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.PlayerUtil;
import myau.util.RandomUtil;
import myau.property.properties.FloatProperty;
Expand Down Expand Up @@ -120,4 +121,9 @@ public void verifyValue(String mode) {
public String[] getSuffix() {
return new String[]{CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, this.mode.getModeString())};
}

@Override
public Category category() {
return Category.MOVEMENT;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/AutoClicker.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import myau.events.LeftClickMouseEvent;
import myau.events.TickEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.ItemUtil;
import myau.util.KeyBindUtil;
import myau.util.RandomUtil;
Expand Down Expand Up @@ -143,4 +144,9 @@ public String[] getSuffix() {
? new String[]{this.minCPS.getValue().toString()}
: new String[]{String.format("%d-%d", this.minCPS.getValue(), this.maxCPS.getValue())};
}

@Override
public Category category() {
return Category.COMBAT;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/AutoHeal.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import myau.events.*;
import myau.mixin.IAccessorPlayerControllerMP;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.PacketUtil;
import myau.util.TimerUtil;
import myau.property.properties.BooleanProperty;
Expand Down Expand Up @@ -115,4 +116,9 @@ public void onSwap(SwapItemEvent event) {
event.setCancelled(true);
}
}

@Override
public Category category() {
return Category.PLAYER;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/AutoTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import myau.event.types.EventType;
import myau.events.TickEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.ItemUtil;
import myau.util.KeyBindUtil;
import myau.property.properties.BooleanProperty;
Expand Down Expand Up @@ -65,4 +66,9 @@ public void onDisabled() {
this.previousSlot = -1;
this.tickDelayCounter = 0;
}

@Override
public Category category() {
return Category.PLAYER;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/BedESP.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import myau.events.Render3DEvent;
import myau.mixin.IAccessorRenderManager;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.RenderUtil;
import myau.property.properties.*;
import myau.property.properties.BooleanProperty;
Expand Down Expand Up @@ -148,4 +149,9 @@ public void onEnabled() {
mc.renderGlobal.loadRenderers();
}
}

@Override
public Category category() {
return Category.RENDER;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/BedNuker.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import myau.management.RotationState;
import myau.mixin.IAccessorPlayerControllerMP;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.*;
import myau.property.properties.*;
import myau.property.properties.BooleanProperty;
Expand Down Expand Up @@ -630,4 +631,9 @@ public void onDisabled() {
public String[] getSuffix() {
return new String[]{CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, this.mode.getModeString())};
}

@Override
public Category category() {
return Category.MISC;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/BedTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import myau.events.Render2DEvent;
import myau.events.TickEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.ChatUtil;
import myau.util.ColorUtil;
import myau.util.SoundUtil;
Expand Down Expand Up @@ -338,4 +339,9 @@ public void onDisabled() {
this.whitelistedPlayers.clear();
this.bedPos = null;
}

@Override
public Category category() {
return Category.MISC;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/Blink.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import myau.events.LoadWorldEvent;
import myau.events.TickEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.property.properties.IntProperty;
import myau.property.properties.ModeProperty;

Expand Down Expand Up @@ -54,4 +55,9 @@ public void onEnabled() {
public void onDisabled() {
Myau.blinkManager.setBlinkState(false, BlinkModules.BLINK);
}

@Override
public Category category() {
return Category.MOVEMENT;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/Chams.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import myau.event.EventTarget;
import myau.events.RenderLivingEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.TeamUtil;
import myau.property.properties.BooleanProperty;
import net.minecraft.client.Minecraft;
Expand Down Expand Up @@ -84,4 +85,9 @@ public void onRenderLiving(RenderLivingEvent event) {
}
}
}

@Override
public Category category() {
return Category.RENDER;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/ChestESP.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import myau.mixin.IAccessorMinecraft;
import myau.mixin.IAccessorRenderManager;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.RenderUtil;
import myau.property.properties.BooleanProperty;
import myau.property.properties.ColorProperty;
Expand Down Expand Up @@ -120,4 +121,9 @@ public void onRender(Render3DEvent event) {
RenderUtil.disableRenderState();
}
}

@Override
public Category category() {
return Category.RENDER;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/ChestStealer.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import myau.events.UpdateEvent;
import myau.events.WindowClickEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.ChatUtil;
import myau.util.ItemUtil;
import myau.property.properties.BooleanProperty;
Expand Down Expand Up @@ -208,4 +209,9 @@ public void verifyValue(String mode) {
}
}
}

@Override
public Category category() {
return Category.PLAYER;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/ESP.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import myau.mixin.IAccessorEntityRenderer;
import myau.mixin.IAccessorRenderManager;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.ColorUtil;
import myau.util.RenderUtil;
import myau.util.TeamUtil;
Expand Down Expand Up @@ -219,4 +220,9 @@ public void onRender(Render3DEvent event) {
RenderUtil.disableRenderState();
}
}

@Override
public Category category() {
return Category.RENDER;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/Eagle.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import myau.events.MoveInputEvent;
import myau.events.TickEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.ItemUtil;
import myau.util.MoveUtil;
import myau.util.PlayerUtil;
Expand Down Expand Up @@ -93,4 +94,9 @@ public String[] getSuffix() {
? new String[]{this.minDelay.getValue().toString()}
: new String[]{String.format("%d-%d", this.minDelay.getValue(), this.maxDelay.getValue())};
}

@Override
public Category category() {
return Category.MOVEMENT;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/FastPlace.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import myau.events.TickEvent;
import myau.mixin.IAccessorMinecraft;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.RotationUtil;
import myau.property.properties.BooleanProperty;
import myau.property.properties.FloatProperty;
Expand Down Expand Up @@ -79,4 +80,9 @@ public void onDisabled() {
public String[] getSuffix() {
return new String[]{df.format(this.delay.getValue())};
}

@Override
public Category category() {
return Category.PLAYER;
}
}
6 changes: 6 additions & 0 deletions src/main/java/myau/module/modules/Fly.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import myau.events.StrafeEvent;
import myau.events.UpdateEvent;
import myau.module.Module;
import myau.module.category.Category;
import myau.util.KeyBindUtil;
import myau.util.MoveUtil;
import myau.property.properties.FloatProperty;
Expand Down Expand Up @@ -53,4 +54,9 @@ public void onDisabled() {
MoveUtil.setSpeed(0.0);
KeyBindUtil.updateKeyState(mc.gameSettings.keyBindSneak.getKeyCode());
}

@Override
public Category category() {
return Category.MOVEMENT;
}
}
Loading