This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64a2914
commit 838596f
Showing
13,451 changed files
with
1,531,669 additions
and
2 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
Lombok contributors in alphabetical order: | ||
|
||
Adam Juraszek <juriad@gmail.com> | ||
Aleksandr Zhelezniak <lekan1992@gmail.com> | ||
Amine Touzani <ttzn.dev@gmail.com> | ||
Andre Brait <andrebrait@gmail.com> | ||
Bulgakov Alexander <buls@yandex.ru> | ||
Caleb Brinkman <floralvikings@gmail.com> | ||
Christian Nüssgens <christian@nuessgens.com> | ||
Christian Schlichtherle <christian-schlichtherle@users.noreply.github.com> | ||
Christian Sterzl <christian.sterzl@gmail.com> | ||
DaveLaw <project.lombok@apconsult.de> | ||
Dave Brosius <dbrosius@mebigfatguy.com> | ||
Dawid Rusin <dawidrusin90@gmail.com> | ||
Denis Stepanov <denis.stepanov@gmail.com> | ||
Emil Lundberg <emil@yubico.com> | ||
Enrique da Costa Cambio <enrique.dacostacambio@gmail.com> | ||
Jacob Middag <jacob@gaddim.nl> | ||
Jan Matèrne <jhm@apache.org> | ||
Jan Rieke <it@janrieke.de> | ||
Jappe van der Hel <jappe.vanderhel@gmail.com> | ||
John Paul Taylor II <johnpaultaylorii@gmail.com> | ||
Karthik kathari <44122128+varkart@users.noreply.github.com> | ||
Kevin Chirls <kchirls@users.noreply.github.com> | ||
Liu DongMiao <liudongmiao@gmail.com> | ||
Luan Nico <luannico27@gmail.com> | ||
Maarten Mulders <mthmulders@users.noreply.github.com> | ||
Mark Haynes <markhaynes.work@gmail.com> | ||
Mart Hagenaars <marthagenaars@gmail.com> | ||
Mateusz Matela <mateusz.matela@gmail.com> | ||
Martin O'Connor <38929043+martinoconnor@users.noreply.github.com> | ||
Michael Dardis <git@md-5.net> | ||
Michael Ernst <mernst@alum.mit.edu> | ||
Michiel Verheul <cheelio@gmail.com> | ||
Pascal Bihler <pascal@qfs.de> | ||
Peter Grant <petercgrant@users.noreply.github.com> | ||
Philipp Eichhorn <peichhor@web.de> | ||
Philippe Charles <philippe.charles@nbb.be> | ||
Rabea Gransberger <rgra@users.noreply.github.com> | ||
Raul Wißfeld <Rawi01@users.noreply.github.com> | ||
Reinier Zwitserloot <reinier@zwitserloot.com> | ||
Robbert Jan Grootjans <grootjans@gmail.com> | ||
Robert Wertman <robert.wertman@gmail.com> | ||
Roel Spilker <r.spilker@gmail.com> | ||
Roland Praml <pram@gmx.de> | ||
Rostislav Krasny <45571812+rosti-il@users.noreply.github.com> | ||
Samuel Pereira <samuel.p.araujo@gmail.com> | ||
Sander Koning <askoning@gmail.com> | ||
Szymon Pacanowski <spacanowski@gmail.com> | ||
Taiki Sugawara <buzz.taiki@gmail.com> | ||
Takuya Murakami <tmurakam@tmurakam.org> | ||
Thomas Darimont <thomas.darimont@gmail.com> | ||
Till Brychcy <till.brychcy@mercateo.com> | ||
Victor Williams Stafusa da Silva <victorwssilva@gmail.com> | ||
Yonatan Sherwin <yonatansherwin@gmail.com> | ||
Yun Zhi Lin <yun@yunspace.com> | ||
|
||
By adding your name to this list, you grant full and irrevocable copyright and patent indemnity to Project Lombok and all use of Project Lombok in relation to all commits you add to Project Lombok, and you certify that you have the right to do so. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
/* | ||
* Decompiled with CFR 0.153-SNAPSHOT (d6f6758-dirty). | ||
*/ | ||
package Acrimony; | ||
|
||
import Acrimony.command.CommandManager; | ||
import Acrimony.event.EventManager; | ||
import Acrimony.filesystem.FileSystem; | ||
import Acrimony.font.FontManager; | ||
import Acrimony.handler.client.BalanceHandler; | ||
import Acrimony.handler.client.CameraHandler; | ||
import Acrimony.handler.client.KeybindHandler; | ||
import Acrimony.handler.client.SlotSpoofHandler; | ||
import Acrimony.handler.packet.PacketBlinkHandler; | ||
import Acrimony.handler.packet.PacketDelayHandler; | ||
import Acrimony.module.ModuleManager; | ||
import Acrimony.ui.menu.AcrimonyMenu; | ||
import Acrimony.ui.notification.NotificationHandler; | ||
import Acrimony.util.AcrimonyClientUtil; | ||
import Acrimony.util.IMinecraft; | ||
import Acrimony.util.render.FontUtil; | ||
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion; | ||
import java.io.IOException; | ||
import net.minecraft.client.gui.GuiMainMenu; | ||
import net.minecraft.client.gui.GuiScreen; | ||
import net.vialoadingbase.ViaLoadingBase; | ||
import net.viamcp.ViaMCP; | ||
|
||
public class Acrimony | ||
implements IMinecraft { | ||
public static final Acrimony instance = new Acrimony(); | ||
public final String name = "Acrimony"; | ||
public final String version = "v1.0"; | ||
private EventManager eventManager; | ||
private ModuleManager moduleManager; | ||
private CommandManager commandManager; | ||
private PacketDelayHandler packetDelayHandler; | ||
private PacketBlinkHandler packetBlinkHandler; | ||
private AcrimonyClientUtil acrimonyClientUtil; | ||
private NotificationHandler notificationHandler; | ||
private KeybindHandler keybindHandler; | ||
private BalanceHandler balanceHandler; | ||
private CameraHandler cameraHandler; | ||
private SlotSpoofHandler slotSpoofHandler; | ||
private FileSystem fileSystem; | ||
private FontManager fontManager; | ||
private boolean destructed; | ||
|
||
public void start() throws IOException { | ||
this.eventManager = new EventManager(); | ||
this.moduleManager = new ModuleManager(); | ||
this.commandManager = new CommandManager(); | ||
this.packetDelayHandler = new PacketDelayHandler(); | ||
this.packetBlinkHandler = new PacketBlinkHandler(); | ||
this.acrimonyClientUtil = new AcrimonyClientUtil(); | ||
this.notificationHandler = new NotificationHandler(); | ||
this.keybindHandler = new KeybindHandler(); | ||
this.balanceHandler = new BalanceHandler(); | ||
this.slotSpoofHandler = new SlotSpoofHandler(); | ||
this.cameraHandler = new CameraHandler(); | ||
this.fileSystem = new FileSystem(); | ||
this.fontManager = new FontManager(); | ||
this.fileSystem.loadDefaultConfig(); | ||
this.fileSystem.loadKeybinds(); | ||
this.moduleManager.modules.forEach(m -> m.onClientStarted()); | ||
FontUtil.initFonts(); | ||
try { | ||
ViaMCP.create(); | ||
ViaMCP.INSTANCE.initAsyncSlider(); | ||
ViaLoadingBase.getInstance().reload(ProtocolVersion.v1_12_2); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
|
||
public void shutdown() { | ||
if (!this.destructed) { | ||
Acrimony.instance.fileSystem.saveDefaultConfig(); | ||
Acrimony.instance.fileSystem.saveKeybinds(); | ||
} | ||
} | ||
|
||
public GuiScreen getMainMenu() { | ||
return this.destructed ? new GuiMainMenu() : new AcrimonyMenu(); | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public String getVersion() { | ||
return this.version; | ||
} | ||
|
||
public EventManager getEventManager() { | ||
return this.eventManager; | ||
} | ||
|
||
public ModuleManager getModuleManager() { | ||
return this.moduleManager; | ||
} | ||
|
||
public CommandManager getCommandManager() { | ||
return this.commandManager; | ||
} | ||
|
||
public PacketDelayHandler getPacketDelayHandler() { | ||
return this.packetDelayHandler; | ||
} | ||
|
||
public PacketBlinkHandler getPacketBlinkHandler() { | ||
return this.packetBlinkHandler; | ||
} | ||
|
||
public AcrimonyClientUtil getAcrimonyClientUtil() { | ||
return this.acrimonyClientUtil; | ||
} | ||
|
||
public NotificationHandler getNotificationHandler() { | ||
return this.notificationHandler; | ||
} | ||
|
||
public KeybindHandler getKeybindHandler() { | ||
return this.keybindHandler; | ||
} | ||
|
||
public BalanceHandler getBalanceHandler() { | ||
return this.balanceHandler; | ||
} | ||
|
||
public CameraHandler getCameraHandler() { | ||
return this.cameraHandler; | ||
} | ||
|
||
public SlotSpoofHandler getSlotSpoofHandler() { | ||
return this.slotSpoofHandler; | ||
} | ||
|
||
public FileSystem getFileSystem() { | ||
return this.fileSystem; | ||
} | ||
|
||
public FontManager getFontManager() { | ||
return this.fontManager; | ||
} | ||
|
||
public boolean isDestructed() { | ||
return this.destructed; | ||
} | ||
|
||
public void setDestructed(boolean destructed) { | ||
this.destructed = destructed; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Decompiled with CFR 0.153-SNAPSHOT (d6f6758-dirty). | ||
*/ | ||
package Acrimony.command; | ||
|
||
public abstract class Command { | ||
private final String name; | ||
private final String description; | ||
private String[] aliases; | ||
|
||
public Command(String name, String description) { | ||
this.name = name; | ||
this.description = description; | ||
} | ||
|
||
public Command(String name, String description, String ... aliases) { | ||
this.name = name; | ||
this.description = description; | ||
this.aliases = aliases; | ||
} | ||
|
||
public abstract void onCommand(String[] var1); | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public String getDescription() { | ||
return this.description; | ||
} | ||
|
||
public String[] getAliases() { | ||
return this.aliases; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Decompiled with CFR 0.153-SNAPSHOT (d6f6758-dirty). | ||
*/ | ||
package Acrimony.command; | ||
|
||
import Acrimony.Acrimony; | ||
import Acrimony.command.Command; | ||
import Acrimony.command.impl.Bind; | ||
import Acrimony.command.impl.Config; | ||
import Acrimony.command.impl.Toggle; | ||
import Acrimony.event.Listener; | ||
import Acrimony.event.impl.ChatSendEvent; | ||
import Acrimony.util.misc.LogUtil; | ||
import java.util.ArrayList; | ||
|
||
public class CommandManager { | ||
public final ArrayList<Command> commands = new ArrayList(); | ||
|
||
public CommandManager() { | ||
Acrimony.instance.getEventManager().register(this); | ||
this.commands.add(new Toggle()); | ||
this.commands.add(new Bind()); | ||
this.commands.add(new Config()); | ||
} | ||
|
||
@Listener | ||
public void onChatSend(ChatSendEvent event) { | ||
String message = event.getMessage(); | ||
if (message.startsWith(".")) { | ||
Object command; | ||
event.setCancelled(true); | ||
String commandName = ""; | ||
for (int i = 0; i < message.length(); ++i) { | ||
if (i <= 0) continue; | ||
char c = message.charAt(i); | ||
if (c == ' ') break; | ||
commandName = commandName + c; | ||
} | ||
if ((command = this.getCommandByName(commandName)) != null) { | ||
String commandWithoutDot = message.substring(1); | ||
String[] commandParts = commandWithoutDot.split(" "); | ||
((Command)command).onCommand(commandParts); | ||
} else { | ||
LogUtil.addChatMessage("Command not found."); | ||
} | ||
} | ||
} | ||
|
||
public <T extends Command> T getCommandByName(String name) { | ||
for (Command command : this.commands) { | ||
if (command.getName().equalsIgnoreCase(name)) { | ||
return (T)command; | ||
} | ||
if (command.getAliases() == null || command.getAliases().length <= 0) continue; | ||
for (String alias : command.getAliases()) { | ||
if (!alias.equalsIgnoreCase(name)) continue; | ||
return (T)command; | ||
} | ||
} | ||
return null; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Decompiled with CFR 0.153-SNAPSHOT (d6f6758-dirty). | ||
*/ | ||
package Acrimony.command.impl; | ||
|
||
import Acrimony.Acrimony; | ||
import Acrimony.command.Command; | ||
import Acrimony.module.Module; | ||
import Acrimony.util.misc.LogUtil; | ||
import org.lwjgl.input.Keyboard; | ||
|
||
public class Bind | ||
extends Command { | ||
public Bind() { | ||
super("Bind", "Changes the keybind of the specified module."); | ||
} | ||
|
||
@Override | ||
public void onCommand(String[] args) { | ||
if (args.length >= 3) { | ||
Object module = Acrimony.instance.getModuleManager().getModuleByNameNoSpace(args[1]); | ||
if (module != null) { | ||
String keyName = args[2].toUpperCase(); | ||
((Module)module).setKey(Keyboard.getKeyIndex(keyName)); | ||
LogUtil.addChatMessage("Bound " + ((Module)module).getName() + " to " + keyName); | ||
} | ||
} else { | ||
LogUtil.addChatMessage("Usage : .bind module keybind"); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Decompiled with CFR 0.153-SNAPSHOT (d6f6758-dirty). | ||
*/ | ||
package Acrimony.command.impl; | ||
|
||
import Acrimony.Acrimony; | ||
import Acrimony.command.Command; | ||
import Acrimony.util.misc.LogUtil; | ||
|
||
public class Config | ||
extends Command { | ||
public Config() { | ||
super("Config", "Loads or saves a config."); | ||
} | ||
|
||
@Override | ||
public void onCommand(String[] args) { | ||
if (args.length >= 3) { | ||
String action = args[1].toLowerCase(); | ||
String configName = args[2]; | ||
switch (action) { | ||
case "load": { | ||
boolean success = Acrimony.instance.getFileSystem().loadConfig(configName, false); | ||
if (success) { | ||
LogUtil.addChatMessage("Loaded config " + configName); | ||
break; | ||
} | ||
LogUtil.addChatMessage("Config not found."); | ||
break; | ||
} | ||
case "save": { | ||
Acrimony.instance.getFileSystem().saveConfig(configName); | ||
LogUtil.addChatMessage("Saved config " + configName); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.