Optimize imports globally, Make HUD meta more consistent, Add more modes to FullBright, Finally fix AutoEat
This commit is contained in:
parent
1a852a06a3
commit
75f206e1d7
46 changed files with 150 additions and 129 deletions
|
@ -1,19 +1,19 @@
|
|||
package com.baseband.client;
|
||||
|
||||
import com.baseband.client.event.Event;
|
||||
import com.baseband.client.event.remote.RemoteEvent;
|
||||
import com.baseband.client.event.remote.RemoteEventManager;
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.registry.Updater;
|
||||
import com.baseband.client.event.EventManager;
|
||||
import com.baseband.client.event.FMLEventHandler;
|
||||
import com.baseband.client.event.remote.RemoteEvent;
|
||||
import com.baseband.client.event.remote.RemoteEventManager;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.client.Client;
|
||||
import com.baseband.client.feature.render.*;
|
||||
import com.baseband.client.util.type.KeyBind;
|
||||
import com.baseband.client.feature.render.HUD;
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.registry.Updater;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.util.type.FeatureAction;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
import com.baseband.client.util.type.FeatureAction;
|
||||
import com.baseband.client.util.type.KeyBind;
|
||||
import de.tudbut.parsing.TCN;
|
||||
import de.tudbut.tools.Lock;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.baseband.client.event;
|
||||
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.Setup;
|
||||
import com.baseband.client.event.events.PlayerDestroyEvent;
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.client.Client;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
|
|
|
@ -10,7 +10,10 @@ import de.tudbut.parsing.JSON;
|
|||
import de.tudbut.parsing.TCN;
|
||||
import de.tudbut.tools.ConfigSaverTCN2;
|
||||
|
||||
import java.io.*;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InterruptedIOException;
|
||||
import java.io.OutputStream;
|
||||
import java.net.ServerSocket;
|
||||
import java.net.Socket;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.baseband.client.feature;
|
||||
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.feature.category.*;
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.registry.Configuration;
|
||||
import com.baseband.client.feature.category.*;
|
||||
import com.baseband.client.util.adapt.FieldFinder;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
|
||||
|
|
|
@ -1,19 +1,17 @@
|
|||
package com.baseband.client.feature;
|
||||
|
||||
import com.baseband.client.Setup;
|
||||
import com.baseband.client.registry.AnyGate;
|
||||
import com.baseband.client.registry.annotation.*;
|
||||
import com.baseband.client.gui.lib.component.*;
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.Setup;
|
||||
import com.baseband.client.feature.category.Command;
|
||||
import com.baseband.client.gui.lib.component.*;
|
||||
import com.baseband.client.registry.AnyGate;
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.registry.Configuration;
|
||||
import com.baseband.client.feature.category.Command;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.util.adapt.FieldFinder;
|
||||
import com.baseband.client.util.type.KeyBind;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.registry.SetCommand;
|
||||
import com.baseband.client.registry.annotation.Trigger;
|
||||
import com.baseband.client.registry.annotation.*;
|
||||
import com.baseband.client.util.adapt.FieldFinder;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.util.type.KeyBind;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.baseband.client.feature.chat;
|
||||
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Chat;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import net.minecraftforge.client.event.ClientChatEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package com.baseband.client.feature.chat;
|
||||
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.*;
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.mixins.ICPacketChat;
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Chat;
|
||||
import com.baseband.client.feature.render.HUD;
|
||||
import com.baseband.client.mixins.ICPacketChat;
|
||||
import com.baseband.client.registry.annotation.*;
|
||||
import com.baseband.client.util.adapt.FieldFinder;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.util.misc.*;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
import com.baseband.client.util.misc.SBE;
|
||||
import com.baseband.client.util.misc.Trypt;
|
||||
import de.tudbut.tools.Hasher;
|
||||
import net.minecraft.network.play.client.CPacketChatMessage;
|
||||
import net.minecraft.network.play.server.SPacketChat;
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
package com.baseband.client.feature.chat;
|
||||
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Chat;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.registry.annotation.Trigger;
|
||||
import com.baseband.client.util.adapt.FieldFinder;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.registry.annotation.Trigger;
|
||||
import net.minecraft.client.gui.ChatLine;
|
||||
import net.minecraft.client.gui.GuiNewChat;
|
||||
import net.minecraft.network.play.server.SPacketChat;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package com.baseband.client.feature.chat;
|
||||
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Chat;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.util.adapt.FieldFinder;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
import net.minecraft.network.play.server.SPacketChat;
|
||||
import net.minecraft.util.text.ITextComponent;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.baseband.client.feature.client;
|
||||
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.ClientCategory;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.util.adapt.FieldFinder;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
|
|
|
@ -32,7 +32,7 @@ public class Baritone extends Feature {
|
|||
public void onTick() {
|
||||
IBaritoneProcess baritoneProcess = BaritoneManager.getBaritone().getPathingControlManager().mostRecentInControl().orElse(null);
|
||||
|
||||
text = "Baritone §7[" + (baritoneProcess == null ? "IDLE" : baritoneProcess.displayName()) + "]";
|
||||
text = "Baritone §7[" + (baritoneProcess == null ? "Idle" : baritoneProcess.displayName()) + "]";
|
||||
}
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
package com.baseband.client.feature.client;
|
||||
|
||||
import com.baseband.client.feature.category.ClientCategory;
|
||||
import com.baseband.client.registry.Configuration;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.KeyBound;
|
||||
import com.baseband.client.util.interact.RotationManager;
|
||||
import com.baseband.client.util.interact.ServerDataManager;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.event.events.PlayerDestroyEvent;
|
||||
import com.baseband.client.gui.GuiTheme;
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.feature.category.ClientCategory;
|
||||
import com.baseband.client.gui.GuiTheme;
|
||||
import com.baseband.client.registry.Configuration;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.KeyBound;
|
||||
import com.baseband.client.registry.annotation.Trigger;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.util.interact.RotationManager;
|
||||
import com.baseband.client.util.interact.ServerDataManager;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.network.Packet;
|
||||
import net.minecraft.network.play.server.SPacketPlayerPosLook;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package com.baseband.client.feature.client;
|
||||
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.ClientCategory;
|
||||
import com.baseband.client.registry.PlayerDB;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import de.tudbut.parsing.TCN;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
package com.baseband.client.feature.client;
|
||||
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.util.interact.ServerDataManager;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.event.events.PlayerDestroyEvent;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.ClientCategory;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.util.adapt.FieldFinder;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.util.interact.ServerDataManager;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraftforge.client.event.RenderWorldLastEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package com.baseband.client.feature.combat;
|
||||
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Combat;
|
||||
import com.baseband.client.registry.PlayerDB;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import de.tudbut.parsing.TCN;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
package com.baseband.client.feature.combat;
|
||||
|
||||
import com.baseband.client.registry.annotation.*;
|
||||
import com.baseband.client.gui.GuiBBIngame;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Combat;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.gui.GuiBBIngame;
|
||||
import com.baseband.client.registry.annotation.*;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.util.interact.InventoryUtils;
|
||||
import de.tudbut.tools.Lock;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
|
|
|
@ -3,8 +3,8 @@ package com.baseband.client.feature.command;
|
|||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Command;
|
||||
import com.baseband.client.feature.client.Client;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.registry.SetCommand;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
import static com.baseband.client.BaseBand.features;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package com.baseband.client.feature.command;
|
||||
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Command;
|
||||
import com.baseband.client.feature.client.Client;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.registry.SetCommand;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.baseband.client.feature.command;
|
||||
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Command;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
|
||||
/**
|
||||
* @author TudbuT
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package com.baseband.client.feature.command;
|
||||
|
||||
import com.baseband.client.gui.lib.component.Component;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Command;
|
||||
import com.baseband.client.feature.client.Client;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
import com.baseband.client.gui.lib.component.Component;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.util.interact.ChatUtil;
|
||||
|
||||
import static com.baseband.client.BaseBand.features;
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package com.baseband.client.feature.movement;
|
||||
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Movement;
|
||||
import com.baseband.client.feature.client.Client;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Movement;
|
||||
import com.baseband.client.feature.client.Client;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
package com.baseband.client.feature.movement;
|
||||
|
||||
import com.baseband.client.registry.annotation.*;
|
||||
import com.baseband.client.event.events.MoveEvent;
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Movement;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.util.interact.MotionUtil;
|
||||
import de.tudbut.tools.Lock;
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
package com.baseband.client.feature.movement;
|
||||
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.event.Priority;
|
||||
import com.baseband.client.event.events.MoveEvent;
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.mixins.IMinecraft;
|
||||
import com.baseband.client.mixins.ITimer;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Movement;
|
||||
import com.baseband.client.feature.client.Timer;
|
||||
import com.baseband.client.util.interact.MotionUtil;
|
||||
import com.baseband.client.mixins.IMinecraft;
|
||||
import com.baseband.client.mixins.ITimer;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.util.interact.MotionUtil;
|
||||
import net.minecraft.network.play.server.SPacketEntityVelocity;
|
||||
import net.minecraft.network.play.server.SPacketExplosion;
|
||||
import net.minecraft.network.play.server.SPacketPlayerPosLook;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.baseband.client.feature.movement;
|
||||
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.mixins.ISPacketExplosion;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Movement;
|
||||
import com.baseband.client.mixins.ISPacketExplosion;
|
||||
import net.minecraft.network.play.server.SPacketEntityVelocity;
|
||||
import net.minecraft.network.play.server.SPacketExplosion;
|
||||
import net.minecraftforge.client.event.PlayerSPPushOutOfBlocksEvent;
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.baseband.client.feature.render;
|
|||
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Render;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import net.minecraft.init.MobEffects;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
|
||||
|
@ -12,14 +13,39 @@ public class Bright extends Feature {
|
|||
return "Bright";
|
||||
}
|
||||
|
||||
|
||||
@Config("Mode")
|
||||
public Mode mode = Mode.Gamma;
|
||||
|
||||
public enum Mode {
|
||||
Potion,
|
||||
Gamma
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEveryTick() {
|
||||
//Hot
|
||||
if (enabled && !notIngame()) {
|
||||
text = this + "§7 [" + mode.toString() + "]";
|
||||
} else {
|
||||
text = toString();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTick() {
|
||||
switch (mode) {
|
||||
case Gamma:
|
||||
mc.gameSettings.gammaSetting = 100f;
|
||||
case Potion:
|
||||
mc.player.addPotionEffect(new PotionEffect(MobEffects.NIGHT_VISION, 20 * 60, 0, true, false));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
if(notIngame()) return;
|
||||
mc.player.removeActivePotionEffect(MobEffects.NIGHT_VISION);
|
||||
mc.gameSettings.gammaSetting = 1f;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package com.baseband.client.feature.render;
|
||||
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Render;
|
||||
import com.baseband.client.gui.GuiRewrite;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.gui.GuiRewrite;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Render;
|
||||
|
||||
import static com.baseband.client.BaseBand.features;
|
||||
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
package com.baseband.client.feature.render;
|
||||
|
||||
import com.baseband.client.registry.annotation.*;
|
||||
import com.baseband.client.gui.GuiTheme;
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.feature.Category;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Render;
|
||||
import com.baseband.client.feature.client.Client;
|
||||
import com.baseband.client.util.interact.ServerDataManager;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
import com.baseband.client.gui.GuiTheme;
|
||||
import com.baseband.client.registry.annotation.*;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.registry.annotation.Trigger;
|
||||
import com.baseband.client.util.interact.ServerDataManager;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
import com.baseband.client.util.render.Pixels;
|
||||
import com.baseband.client.util.render.TextSplitter;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.baseband.client.feature.render;
|
||||
|
||||
import com.baseband.client.mixins.IRenderManager;
|
||||
import com.baseband.client.mixins.IMinecraft;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Render;
|
||||
import com.baseband.client.mixins.IMinecraft;
|
||||
import com.baseband.client.mixins.IRenderManager;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
import net.minecraft.client.renderer.BufferBuilder;
|
||||
import net.minecraft.client.renderer.GlStateManager;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.baseband.client.feature.render;
|
||||
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Render;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import net.minecraftforge.client.event.RenderBlockOverlayEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package com.baseband.client.feature.render;
|
||||
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.Render;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import net.minecraftforge.client.event.EntityViewRenderEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package com.baseband.client.feature.world;
|
||||
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.event.events.BaritoneEvent;
|
||||
import com.baseband.client.mixins.IMinecraft;
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.World;
|
||||
import com.baseband.client.mixins.IMinecraft;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.settings.KeyBinding;
|
||||
import net.minecraft.init.MobEffects;
|
||||
import net.minecraft.item.ItemAppleGold;
|
||||
|
@ -35,7 +36,7 @@ public class AutoEat extends Feature {
|
|||
@Override
|
||||
public void onEveryTick() {
|
||||
if(enabled) {
|
||||
text = this + "§7 [" + (eating ? "EATING" : "IDLE") + "]";
|
||||
text = this + "§7 [" + (eating ? "Eating" : "Idle") + "]";
|
||||
} else {
|
||||
text = toString();
|
||||
}
|
||||
|
@ -105,7 +106,7 @@ public class AutoEat extends Feature {
|
|||
//你为什么用谷歌翻译这个
|
||||
//get outta my face!
|
||||
//you know you didn't!
|
||||
return mc.currentScreen == null && //re- dumbfuck code, this used to be != null
|
||||
return !(mc.currentScreen instanceof GuiContainer) && //re- dumbfuck code, this used to be != null
|
||||
stack.getItem() instanceof ItemFood //it has to be food bruh
|
||||
&& !(stack.getItem() instanceof ItemChorusFruit) //not a chorus fruit you ret-.... dumbfuck
|
||||
&& ((20 - currentHunger) >= ((ItemFood) stack.getItem()).getHealAmount(stack) //if hunger low and food wanted refills the amount left
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.baseband.client.feature.world;
|
||||
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.World;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
|
||||
@World
|
||||
public class AutoSignText extends Feature {
|
||||
|
|
|
@ -7,8 +7,6 @@ import com.baseband.client.mixins.IPlayerControllerMP;
|
|||
import com.baseband.client.registry.annotation.Config;
|
||||
import net.minecraft.network.play.client.CPacketPlayerDigging;
|
||||
import net.minecraft.util.EnumHand;
|
||||
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
|
||||
@World
|
||||
public class FastBreak extends Feature {
|
||||
|
@ -24,14 +22,13 @@ public class FastBreak extends Feature {
|
|||
@Config("NoBreakDelay")
|
||||
public boolean noBreakDelay;
|
||||
|
||||
enum Mode {
|
||||
public enum Mode {
|
||||
Damage,
|
||||
Packet
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEveryTick() {
|
||||
|
||||
//Hot
|
||||
if (enabled && !notIngame()) {
|
||||
text = this + "§7 [" + mode.toString() + "]";
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package com.baseband.client.feature.world;
|
||||
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.event.events.PacketEvent;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.World;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import net.minecraft.network.play.client.CPacketKeepAlive;
|
||||
|
||||
@World
|
||||
|
|
|
@ -1,18 +1,15 @@
|
|||
package com.baseband.client.feature.world;
|
||||
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.registry.annotation.Range;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.category.World;
|
||||
import com.baseband.client.feature.render.ClickGUI;
|
||||
import com.baseband.client.util.adapt.SimpleWorldGenerator;
|
||||
import com.baseband.client.registry.annotation.Description;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
import com.baseband.client.registry.annotation.*;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.registry.annotation.Trigger;
|
||||
import com.baseband.client.util.adapt.SimpleWorldGenerator;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
import com.baseband.client.util.render.Pixels;
|
||||
import de.tudbut.tools.Lock;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.entity.EntityPlayerSP;
|
||||
import net.minecraft.init.Blocks;
|
||||
|
@ -22,7 +19,6 @@ import net.minecraft.world.chunk.Chunk;
|
|||
import net.minecraftforge.client.event.RenderWorldLastEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import de.tudbut.tools.Lock;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -36,9 +36,9 @@ public class Select extends Feature {
|
|||
@Override
|
||||
public void onTick() {
|
||||
if(selection != null)
|
||||
text = this + "§7 [" + selection.area() + "B]";
|
||||
text = this + "§7 [" + selection.area() + " Blocks]";
|
||||
else
|
||||
text = this + "§7 [0B]";
|
||||
text = this + "§7 [0 Blocks]";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package com.baseband.client.gui;
|
||||
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.render.ClickGUI;
|
||||
import com.baseband.client.gui.lib.GUIManager;
|
||||
import com.baseband.client.gui.lib.component.Category;
|
||||
import com.baseband.client.gui.lib.component.Component;
|
||||
import com.baseband.client.feature.Feature;
|
||||
import com.baseband.client.feature.render.ClickGUI;
|
||||
import de.tudbut.obj.TLMap;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.baseband.client.gui.lib;
|
||||
|
||||
import com.baseband.client.gui.GuiTheme;
|
||||
import com.baseband.client.gui.lib.component.Component;
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.feature.client.Client;
|
||||
import com.baseband.client.gui.GuiTheme;
|
||||
import com.baseband.client.gui.lib.component.Component;
|
||||
import org.lwjgl.util.Rectangle;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package com.baseband.client.gui.lib.component;
|
||||
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.gui.lib.GUIManager;
|
||||
import com.baseband.client.gui.lib.RenderException;
|
||||
import com.baseband.client.registry.AnyGate;
|
||||
import com.baseband.client.registry.annotation.Config;
|
||||
import com.baseband.client.registry.annotation.Gate;
|
||||
import com.baseband.client.gui.lib.GUIManager;
|
||||
import com.baseband.client.gui.lib.RenderException;
|
||||
import com.baseband.client.util.adapt.Marker;
|
||||
import com.baseband.client.util.render.TextSplitter;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.baseband.client.gui.lib.component;
|
||||
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.feature.command.Set;
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
|
||||
public class EnumButton extends Component {
|
||||
ConfigHandle handle;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.baseband.client.gui.lib.component;
|
||||
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.gui.lib.GUIManager;
|
||||
import com.baseband.client.feature.command.Set;
|
||||
import com.baseband.client.gui.lib.GUIManager;
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
import net.minecraft.client.gui.Gui;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.baseband.client.gui.lib.component;
|
||||
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.gui.lib.GUIManager;
|
||||
import com.baseband.client.feature.command.Set;
|
||||
import com.baseband.client.gui.lib.GUIManager;
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
import net.minecraft.client.gui.Gui;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.baseband.client.gui.lib.component;
|
||||
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.feature.command.Set;
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
|
||||
public class StringButton extends Button {
|
||||
protected final String name;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.baseband.client.gui.lib.component;
|
||||
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.feature.command.Set;
|
||||
import com.baseband.client.registry.ConfigHandle;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
|
||||
public class ToggleButton extends Component {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.baseband.client.mixins;
|
||||
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.baseband.client.event.events.MotionUpdateEvent;
|
||||
import com.baseband.client.event.events.MoveEvent;
|
||||
import com.baseband.client.BaseBand;
|
||||
import com.mojang.authlib.GameProfile;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.entity.AbstractClientPlayer;
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.baseband.client.util.adapt;
|
|||
|
||||
import com.baseband.client.Setup;
|
||||
import com.baseband.client.util.misc.GlobalUtil;
|
||||
import de.tudbut.tools.ReflectUtil;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.profiler.Profiler;
|
||||
|
@ -18,7 +19,6 @@ import net.minecraft.world.gen.ChunkGeneratorOverworld;
|
|||
import net.minecraft.world.gen.IChunkGenerator;
|
||||
import net.minecraft.world.storage.SaveHandlerMP;
|
||||
import net.minecraft.world.storage.WorldInfo;
|
||||
import de.tudbut.tools.ReflectUtil;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
|
|
Loading…
Add table
Reference in a new issue