Remove constructors
This commit is contained in:
parent
766bf8ee9c
commit
4e0e3e9547
|
@ -32,17 +32,6 @@ public abstract class Mod {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Mod(String name, Category cat) {
|
|
||||||
this.name = name;
|
|
||||||
this.category = cat;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Mod(String name, Category cat, boolean hasSetting) {
|
|
||||||
this.name = name;
|
|
||||||
this.category = cat;
|
|
||||||
this.hasSetting = hasSetting;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void addSetting(Setting... settings) {
|
public void addSetting(Setting... settings) {
|
||||||
this.settings.addAll(Arrays.asList(settings));
|
this.settings.addAll(Arrays.asList(settings));
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,16 +34,12 @@ import dev.resent.module.impl.misc.NoRain;
|
||||||
import dev.resent.module.impl.misc.NoSwingDelay;
|
import dev.resent.module.impl.misc.NoSwingDelay;
|
||||||
import dev.resent.module.impl.misc.Scoreboard;
|
import dev.resent.module.impl.misc.Scoreboard;
|
||||||
import dev.resent.module.impl.misc.SelfNametag;
|
import dev.resent.module.impl.misc.SelfNametag;
|
||||||
import dev.resent.module.impl.misc.Test;
|
|
||||||
import dev.resent.module.impl.misc.Tooltips;
|
import dev.resent.module.impl.misc.Tooltips;
|
||||||
import dev.resent.module.impl.movement.Sprint;
|
import dev.resent.module.impl.movement.Sprint;
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
|
|
||||||
public class ModManager {
|
public class ModManager {
|
||||||
public List<Mod> modules = new ArrayList<>();
|
public List<Mod> modules = new ArrayList<>();
|
||||||
public Minecraft mc = Minecraft.getMinecraft();
|
|
||||||
|
|
||||||
public static Test test;
|
|
||||||
public static Cosmetics cosmetics = new Cosmetics();
|
public static Cosmetics cosmetics = new Cosmetics();
|
||||||
public static Sprint sprint;
|
public static Sprint sprint;
|
||||||
public static CPS cps;
|
public static CPS cps;
|
||||||
|
@ -81,8 +77,7 @@ public class ModManager {
|
||||||
public static CrystalOptimizer crystalOptimizer = new CrystalOptimizer();
|
public static CrystalOptimizer crystalOptimizer = new CrystalOptimizer();
|
||||||
|
|
||||||
public ModManager() {
|
public ModManager() {
|
||||||
//Hud
|
//HudZ
|
||||||
register(test = new Test());
|
|
||||||
register(cosmetics);
|
register(cosmetics);
|
||||||
register(hotbar);
|
register(hotbar);
|
||||||
register(crystalOptimizer);
|
register(crystalOptimizer);
|
||||||
|
|
|
@ -26,19 +26,6 @@ public abstract class RenderMod extends Mod {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public RenderMod(String name, Category cat, int x, int y) {
|
|
||||||
super(name, cat);
|
|
||||||
this.x = x;
|
|
||||||
this.y = y;
|
|
||||||
}
|
|
||||||
|
|
||||||
public RenderMod(String name, Category cat, int x, int y, boolean hasSetting) {
|
|
||||||
super(name, cat, hasSetting);
|
|
||||||
this.x = x;
|
|
||||||
this.y = y;
|
|
||||||
this.hasSetting = hasSetting;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void draw() {}
|
public void draw() {}
|
||||||
|
|
||||||
public void resize() {
|
public void resize() {
|
||||||
|
|
|
@ -17,10 +17,6 @@ public class Freelook extends Mod {
|
||||||
public static boolean perspectiveToggled = false;
|
public static boolean perspectiveToggled = false;
|
||||||
public static boolean returnOnRelease = false;
|
public static boolean returnOnRelease = false;
|
||||||
|
|
||||||
public Freelook() {
|
|
||||||
super("FreeLook", Category.HUD);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void smh() {
|
public void smh() {
|
||||||
if (W.freelook().isEnabled()) perspectiveToggled = !perspectiveToggled;
|
if (W.freelook().isEnabled()) perspectiveToggled = !perspectiveToggled;
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,4 @@ import dev.resent.module.base.Category;
|
||||||
import dev.resent.module.base.Mod;
|
import dev.resent.module.base.Mod;
|
||||||
|
|
||||||
@Module(name = "NoDynamicFOV", category = Category.MISC)
|
@Module(name = "NoDynamicFOV", category = Category.MISC)
|
||||||
public class DynamicFOV extends Mod {
|
public class DynamicFOV extends Mod { }
|
||||||
|
|
||||||
public DynamicFOV() {
|
|
||||||
super("NoDynamicFOV", Category.MISC);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -5,9 +5,4 @@ import dev.resent.module.base.Category;
|
||||||
import dev.resent.module.base.Mod;
|
import dev.resent.module.base.Mod;
|
||||||
|
|
||||||
@Module(name = "NoRain", category = Category.MISC)
|
@Module(name = "NoRain", category = Category.MISC)
|
||||||
public class NoRain extends Mod {
|
public class NoRain extends Mod { }
|
||||||
|
|
||||||
public NoRain() {
|
|
||||||
super("NoRain", Category.MISC);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -5,9 +5,4 @@ import dev.resent.module.base.Category;
|
||||||
import dev.resent.module.base.Mod;
|
import dev.resent.module.base.Mod;
|
||||||
|
|
||||||
@Module(name = "Self Nametag", category = Category.MISC)
|
@Module(name = "Self Nametag", category = Category.MISC)
|
||||||
public class SelfNametag extends Mod {
|
public class SelfNametag extends Mod { }
|
||||||
|
|
||||||
public SelfNametag() {
|
|
||||||
super("Self Nametag", Category.MISC);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
package dev.resent.module.impl.misc;
|
|
||||||
|
|
||||||
import dev.resent.annotation.Module;
|
|
||||||
import dev.resent.module.base.Category;
|
|
||||||
import dev.resent.module.base.Mod;
|
|
||||||
|
|
||||||
@Module(name = "Test", category = Category.MISC, hasSetting = false)
|
|
||||||
public class Test extends Mod{ }
|
|
|
@ -1,14 +1,12 @@
|
||||||
package dev.resent.module.impl.misc;
|
package dev.resent.module.impl.misc;
|
||||||
|
|
||||||
|
import dev.resent.annotation.Module;
|
||||||
import dev.resent.module.base.Category;
|
import dev.resent.module.base.Category;
|
||||||
import dev.resent.module.base.Mod;
|
import dev.resent.module.base.Mod;
|
||||||
|
|
||||||
|
@Module(name = "Tooltips", category = Category.MISC)
|
||||||
public class Tooltips extends Mod {
|
public class Tooltips extends Mod {
|
||||||
|
|
||||||
public Tooltips() {
|
|
||||||
super("Tooltips", Category.MISC);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
if (mc.theWorld != null) mc.gameSettings.advancedItemTooltips = true;
|
if (mc.theWorld != null) mc.gameSettings.advancedItemTooltips = true;
|
||||||
|
|
|
@ -1,16 +1,17 @@
|
||||||
package dev.resent.module.impl.movement;
|
package dev.resent.module.impl.movement;
|
||||||
|
|
||||||
|
import dev.resent.annotation.RenderModule;
|
||||||
import dev.resent.module.Theme;
|
import dev.resent.module.Theme;
|
||||||
import dev.resent.module.base.Category;
|
import dev.resent.module.base.Category;
|
||||||
import dev.resent.module.base.RenderMod;
|
import dev.resent.module.base.RenderMod;
|
||||||
import dev.resent.module.setting.BooleanSetting;
|
import dev.resent.module.setting.BooleanSetting;
|
||||||
|
|
||||||
|
@RenderModule(name = "ToggleSprint", category = Category.MOVEMENT, x = 4, y = 122, hasSetting = true)
|
||||||
public class Sprint extends RenderMod {
|
public class Sprint extends RenderMod {
|
||||||
|
|
||||||
public BooleanSetting drawn = new BooleanSetting("Text Drawn", "", true);
|
public BooleanSetting drawn = new BooleanSetting("Text Drawn", "", true);
|
||||||
|
|
||||||
public Sprint() {
|
public Sprint() {
|
||||||
super("ToggleSprint", Category.MOVEMENT, 4, 94, true);
|
|
||||||
addSetting(drawn);
|
addSetting(drawn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user