many things my brain hurts so bad
This commit is contained in:
parent
915c3f7634
commit
61d5e42e50
8 changed files with 70 additions and 20 deletions
|
@ -33,7 +33,7 @@ public class BaseBand {
|
|||
public static String buildString = LoadHandler.data.getBoolean("release-branch") ? "Broadway" : "Dark Side of the Moon";
|
||||
public static final EventBus EVENT_BUS = new EventBus(LOGGER::error);
|
||||
public static final RemoteEventBus REMOTE_EVENT_BUS = new RemoteEventBus();
|
||||
public static final StaticEventHandler STATIC_EVENT_HANDLER_INSTANCE = new StaticEventHandler();
|
||||
public static final StaticEventHandler STATIC_EVENT_HANDLER = new StaticEventHandler();
|
||||
public static boolean enabled = true;
|
||||
public static boolean finishedDisabling = false;
|
||||
public static Minecraft mc;
|
||||
|
@ -57,9 +57,9 @@ public class BaseBand {
|
|||
|
||||
mc = Minecraft.getMinecraft();
|
||||
|
||||
MinecraftForge.EVENT_BUS.register(STATIC_EVENT_HANDLER_INSTANCE);
|
||||
MinecraftForge.EVENT_BUS.register(STATIC_EVENT_HANDLER);
|
||||
|
||||
EVENT_BUS.subscribe(STATIC_EVENT_HANDLER_INSTANCE);
|
||||
EVENT_BUS.subscribe(STATIC_EVENT_HANDLER);
|
||||
|
||||
mc.gameSettings.autoJump = false; //fuck autojump, disable it on startup
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ import de.com.baseband.client.feature.modules.movement.ElytraBot;
|
|||
import de.com.baseband.client.feature.modules.movement.ElytraFly;
|
||||
import de.com.baseband.client.feature.modules.movement.NoSlowDown;
|
||||
import de.com.baseband.client.feature.modules.movement.Velocity;
|
||||
import de.com.baseband.client.feature.modules.player.AntiLevitation;
|
||||
import de.com.baseband.client.feature.modules.render.*;
|
||||
import de.com.baseband.client.feature.modules.world.*;
|
||||
|
||||
|
@ -32,6 +33,7 @@ public class Setup {
|
|||
//new AutoKill(),
|
||||
//AutoKill.INSTANCE.autoHit,
|
||||
//AutoKill.INSTANCE.autoCrystal,
|
||||
new AntiLevitation(),
|
||||
new AutoTotem(),
|
||||
new AutoReconnect(),
|
||||
new AutoRespawn(),
|
||||
|
|
|
@ -11,12 +11,13 @@ import java.lang.annotation.Annotation;
|
|||
public enum Category {
|
||||
|
||||
COMMAND("Commands", Command.class),
|
||||
RENDER("Render", Render.class),
|
||||
CHAT("Chat", Chat.class),
|
||||
CLIENT("Client", ClientCategory.class),
|
||||
COMBAT("Combat", Combat.class),
|
||||
MOVEMENT("Movement", Movement.class),
|
||||
WORLD("World", World.class)
|
||||
PLAYER("Player", Player.class),
|
||||
RENDER("Render", Render.class),
|
||||
WORLD("World", World.class),
|
||||
CLIENT("Client", ClientCategory.class)
|
||||
;
|
||||
|
||||
Category(String name, Class<? extends Annotation> annotationClass) {
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
package de.com.baseband.client.feature.category;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Player {
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
package de.com.baseband.client.feature.commands;
|
||||
|
||||
import de.com.baseband.client.feature.Feature;
|
||||
import de.com.baseband.client.feature.category.Command;
|
||||
|
||||
@Command
|
||||
public class Credit extends Feature {
|
||||
|
||||
publi
|
||||
}
|
|
@ -89,7 +89,7 @@ public class Client extends Feature {
|
|||
}
|
||||
disableLock = true;
|
||||
Chat.print("Unloading...");
|
||||
MinecraftForge.EVENT_BUS.unregister(BaseBand.STATIC_EVENT_HANDLER_INSTANCE);
|
||||
MinecraftForge.EVENT_BUS.unregister(BaseBand.STATIC_EVENT_HANDLER);
|
||||
mc.displayGuiScreen(null);
|
||||
BaseBand.enabled = false;
|
||||
Chat.print("Waiting for config...");
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
package de.com.baseband.client.feature.modules.player;
|
||||
|
||||
import de.com.baseband.client.event.events.MoveEvent;
|
||||
import de.com.baseband.client.feature.Feature;
|
||||
import de.com.baseband.client.feature.category.Player;
|
||||
import de.com.baseband.client.registry.annotation.Config;
|
||||
import net.minecraft.init.MobEffects;
|
||||
|
||||
@Player
|
||||
public class AntiLevitation extends Feature {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "AntiLevitation";
|
||||
}
|
||||
|
||||
@Config("Mode")
|
||||
public Mode mode = Mode.Motion;
|
||||
|
||||
enum Mode {
|
||||
Effect,
|
||||
Motion
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTick() {
|
||||
if(mc.player.isPotionActive(MobEffects.LEVITATION) && mode == Mode.Effect) {
|
||||
mc.player.getActivePotionMap().remove(MobEffects.LEVITATION);
|
||||
}
|
||||
}
|
||||
|
||||
public void motion(MoveEvent event) {
|
||||
if(mode == Mode.Motion) {
|
||||
if(event.y > 0) {
|
||||
event.y = 0;
|
||||
}
|
||||
mc.player.setVelocity(event.x, event.y, event.z);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
package de.com.baseband.client.util.misc;
|
||||
|
||||
public class Timer {
|
||||
private long currentMS = 0L;
|
||||
|
||||
public boolean passed(long time) {
|
||||
return (System.currentTimeMillis() - currentMS) >= time;
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
currentMS = System.currentTimeMillis();
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue