1
0
Fork 0
mirror of https://github.com/Miasmusa/Shadow.git synced 2025-04-22 01:03:26 -04:00

a little 🧌ing and refactoring

This commit is contained in:
0x3C50 2022-04-29 23:43:43 +02:00
parent 4adc262bda
commit c688782225
3 changed files with 7 additions and 13 deletions
src/main/java/net/shadow/client/feature

View file

@ -4,7 +4,7 @@
package net.shadow.client.feature.command.impl;
import net.minecraft.client.network.PlayerListEntry;
import com.mojang.authlib.GameProfile;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.network.ClientConnection;
import net.minecraft.network.NetworkState;
@ -20,7 +20,6 @@ import net.minecraft.text.Text;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.argument.PlayerFromNameArgumentParser;
import net.shadow.client.feature.command.argument.StreamlineArgumentParser;
import net.shadow.client.feature.command.coloring.ArgumentType;
import net.shadow.client.feature.command.coloring.PossibleArgument;
import net.shadow.client.feature.command.coloring.StaticArgumentServer;
@ -30,8 +29,6 @@ import net.shadow.client.feature.command.exception.CommandException;
import java.net.InetSocketAddress;
import java.util.Objects;
import com.mojang.authlib.GameProfile;
public class SocketKick extends Command {
public SocketKick() {
super("SocketKick", "Kicks people out of the server using sockets!!", "socketkick", "skick", "sockkick");

View file

@ -4,21 +4,19 @@
package net.shadow.client.feature.module.impl.crash;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.gui.notifications.Notification;
import net.shadow.client.feature.module.Module;
import it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.network.packet.c2s.play.ButtonClickC2SPacket;
import net.minecraft.network.packet.c2s.play.ClickSlotC2SPacket;
import net.minecraft.network.packet.c2s.play.SelectMerchantTradeC2SPacket;
import net.minecraft.network.packet.c2s.play.UpdateSelectedSlotC2SPacket;
import net.minecraft.screen.slot.SlotActionType;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
public class ErrorCrash extends Module {
@ -32,7 +30,7 @@ public class ErrorCrash extends Module {
@Override
public void tick() {
switch(mode.getValue()){
switch (mode.getValue()) {
case Click -> {
Int2ObjectMap<ItemStack> ripbozo = new Int2ObjectArrayMap();
ripbozo.put(0, new ItemStack(Items.ACACIA_BOAT, 1));

View file

@ -17,7 +17,6 @@ import net.minecraft.network.packet.c2s.play.PlayerInteractBlockC2SPacket;
import net.minecraft.util.Hand;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;