Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit 7e2a658

Browse files
author
Snoworange420
committed
rewrite
1 parent 18e2514 commit 7e2a658

File tree

18 files changed

+200
-399
lines changed

18 files changed

+200
-399
lines changed
23.1 KB
Binary file not shown.
0 Bytes
Binary file not shown.

src/main/java/com/snoworange/mousse/Main.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.snoworange.mousse.ui.Hud;
1010
import com.snoworange.mousse.ui.theme.ThemeManager;
1111
import com.snoworange.mousse.util.misc.FileUtils;
12-
import com.snoworange.mousse.util.render.JColor;
1312
import net.minecraft.client.Minecraft;
1413
import net.minecraft.client.settings.KeyBinding;
1514
import net.minecraft.util.text.TextComponentString;
@@ -24,8 +23,6 @@
2423
import org.lwjgl.input.Keyboard;
2524
import org.lwjgl.opengl.Display;
2625

27-
import java.io.File;
28-
2926

3027
@Mod(modid = Main.MOD_ID, name = Main.NAME, version = Main.VERSION)
3128
public class Main {
@@ -42,7 +39,7 @@ public class Main {
4239

4340
public static final String MOD_ID = "mousse";
4441
public static final String NAME = "Mousse";
45-
public static final String VERSION = "v0.5.7";
42+
public static final String VERSION = "v0.6.0";
4643

4744
public static Minecraft mc = Minecraft.getMinecraft();
4845

src/main/java/com/snoworange/mousse/command/CommandManager.java

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ public CommandManager() {
2222

2323
commands.add(new Peek());
2424
commands.add(new Say());
25-
//commands.add(new Dispenser32kRedstoneDelay());
26-
//commands.add(new Dispenser32kAutoClose());
2725
commands.add(new Load());
2826
commands.add(new Save());
2927
}
@@ -61,44 +59,8 @@ public void onChat(final ClientChatEvent event) {
6159
}
6260
}
6361

64-
/*
65-
@EventHandler
66-
public Listener<ClientChatEvent> listener = new Listener<>(event -> {
67-
68-
String message = event.getMessage();
69-
70-
if (!message.startsWith(prefix)) {
71-
return;
72-
}
73-
74-
event.setCanceled(true);
75-
message = message.substring(prefix.length());
76-
77-
if(message.split(" ").length > 0) {
78-
boolean commandFound = false;
79-
String commandName = message.split(" ")[0];
80-
if(commandName.equals("") || commandName.equals("help")) {
81-
ChatFormatting GRAY = ChatFormatting.GRAY;
82-
ChatFormatting BOLD = ChatFormatting.BOLD;
83-
ChatFormatting RESET = ChatFormatting.RESET;
84-
sendCommandDescriptions();
85-
} else {
86-
for (Command c : commands) {
87-
if (c.aliases.contains(commandName) || c.name.equalsIgnoreCase(commandName)) {
88-
c.onCommand(Arrays.copyOfRange(message.split(" "), 1, message.split(" ").length), message);
89-
commandFound = true;
90-
break;
91-
}
92-
}
93-
if (!commandFound) {
94-
sendClientChatMessage(ChatFormatting.DARK_RED + "command does not exist, use " + ChatFormatting.ITALIC + prefix + "help " + ChatFormatting.RESET + "" + ChatFormatting.DARK_RED + "for help.", true);
95-
}
96-
}
97-
}
98-
});
99-
*/
10062
private void sendCommandDescriptions() {
101-
sendClientChatMessage("\n", false);
63+
sendClientChatMessage("Commands:", false);
10264
for (Command c : Main.commandManager.commands) {
10365
sendClientChatMessage(c.name + " - " + c.description + " [" + c.syntax + "]", false);
10466
}

src/main/java/com/snoworange/mousse/command/impl/Peek.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ public Peek() {
1010
@Override
1111
public void onCommand(String[] args, String command) {
1212
Main.moduleManager.getModule("ShulkerPeek").toggle();
13-
Main.sendMessage("Opened shulker box.");
1413
}
1514
}

src/main/java/com/snoworange/mousse/event/ForgeEventHandeler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
public class ForgeEventHandeler {
1111

12+
//TODO: fix this
13+
1214
@SubscribeEvent
1315
public void onTick(TickEvent.ClientTickEvent event) {
1416
for (Module m : Main.moduleManager.modules) {

src/main/java/com/snoworange/mousse/mixin/mixins/MixinGuiMainMenu.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ public class MixinGuiMainMenu extends GuiScreen {
1414
@Inject(method = {"drawScreen"}, at = {@At("TAIL")}, cancellable = true)
1515
public void drawText(int mouseX, int mouseY, float partialTicks, CallbackInfo ci) {
1616
FontRenderer fr = mc.fontRenderer;
17-
fr.drawStringWithShadow(Main.NAME + " by Jonakip, Snow_orange__ & Huub", 2, 12, -1);
17+
fr.drawStringWithShadow(Main.NAME + " by Jonakip, Snoworange & Huub", 2, 12, -1);
1818
}
1919
}

src/main/java/com/snoworange/mousse/module/Category.java

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,29 @@
22

33
public enum Category {
44

5-
COMBAT("Combat"), EXPLOIT("Exploit"), RENDER("Render"), MOVEMENT("Movement"), PLAYER("Player"), MISC("Misc");
5+
COMBAT("Combat"), EXPLOIT("Exploit"), RENDER("Render"), MOVEMENT("Movement"), PLAYER("Player"), MISC("Misc"), SYSTEM("System");
66

77
public String name;
8-
public int moduleIndex;
8+
public boolean opened;
99

1010
Category(String name) {
1111
this.name = name;
12+
this.opened = true;
1213
}
13-
}
14+
15+
public boolean isOpened() {
16+
return this.opened;
17+
}
18+
19+
public void setOpened(boolean opened) {
20+
this.opened = opened;
21+
}
22+
23+
public void toggle() {
24+
if (!this.opened) {
25+
this.opened = true;
26+
} else if (this.opened) {
27+
this.opened = false;
28+
}
29+
}
30+
}

src/main/java/com/snoworange/mousse/module/ModuleManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public ModuleManager() {
3232
modules.add(new FastAura());
3333
modules.add(new AutoAuto32k());
3434
modules.add(new Grab32k());
35-
//modules.add(new SelfBow());
35+
modules.add(new SelfBow());
3636
modules.add(new Auto32k2019());
3737

3838
//EXPLOIT

src/main/java/com/snoworange/mousse/module/modules/combat/Auto32k2019.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import net.minecraft.inventory.ContainerDispenser;
1717
import net.minecraft.inventory.ContainerHopper;
1818
import net.minecraft.item.Item;
19+
import net.minecraft.item.ItemAir;
1920
import net.minecraft.item.ItemShulkerBox;
2021
import net.minecraft.item.ItemStack;
2122
import net.minecraft.network.play.client.CPacketEntityAction;
@@ -214,6 +215,21 @@ public void onTick(TickEvent.ClientTickEvent event) {
214215
}
215216
}
216217

218+
int airindex = -1;
219+
220+
for (int i = 0; i < 9; i++) {
221+
222+
ItemStack itemStack = mc.player.inventory.mainInventory.get(i);
223+
224+
if (itemStack.getItem() instanceof ItemAir) {
225+
airindex = i;
226+
}
227+
}
228+
229+
if (airindex != -1) {
230+
update(airindex);
231+
}
232+
217233
if (enchantedSwordIndex != -1) {
218234
mc.playerController.windowClick(mc.player.openContainer.windowId, enchantedSwordIndex, mc.player.inventory.currentItem, ClickType.SWAP, mc.player);
219235
Main.sendMessage("32k found in slot " + enchantedSwordIndex);

0 commit comments

Comments
 (0)