-
Notifications
You must be signed in to change notification settings - Fork 13
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
Showing
215 changed files
with
15,966 additions
and
15,915 deletions.
There are no files selected for viewing
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
130 changes: 68 additions & 62 deletions
130
...src/main/java/bleach/hack/BleachHack.java → src/main/java/bleach/hack/BleachHack.java
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 |
---|---|---|
@@ -1,62 +1,68 @@ | ||
/* | ||
* This file is part of the BleachHack distribution (https://github.com/BleachDrinker420/bleachhack-1.14/). | ||
* Copyright (c) 2019 Bleach. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package bleach.hack; | ||
|
||
import com.google.common.eventbus.EventBus; | ||
|
||
import bleach.hack.gui.BleachMainMenu; | ||
import bleach.hack.module.Module; | ||
import bleach.hack.module.ModuleManager; | ||
import bleach.hack.module.mods.ClickGui; | ||
import bleach.hack.utils.FriendManager; | ||
import bleach.hack.utils.file.BleachFileHelper; | ||
import bleach.hack.utils.file.BleachFileMang; | ||
import net.fabricmc.api.ModInitializer; | ||
|
||
public class BleachHack implements ModInitializer { | ||
|
||
public static final String VERSION = "B1000"; | ||
public static final int INTVERSION = 24; | ||
|
||
public static EventBus eventBus = new EventBus(); | ||
|
||
public static FriendManager friendMang; | ||
|
||
@Override | ||
public void onInitialize() { | ||
BleachFileMang.init(); | ||
BleachFileHelper.readModules(); | ||
|
||
ClickGui.clickGui.initWindows(); | ||
BleachFileHelper.readClickGui(); | ||
BleachFileHelper.readPrefix(); | ||
BleachFileHelper.readFriends(); | ||
|
||
for (Module m: ModuleManager.getModules()) m.init(); | ||
|
||
//v This makes a scat fetishist look like housekeeping. | ||
eventBus.register(new ModuleManager()); | ||
// wait why do we need this ^? | ||
// Because I was too lazy to implement a proper keybind system and I left the keypress handler in ModuleManager as a subscribed event. TODO: Proper Keybind System | ||
|
||
String mainMenu = BleachFileHelper.readMiscSetting("customTitleScreen"); | ||
if (mainMenu != null && mainMenu.equalsIgnoreCase("false")) { | ||
BleachMainMenu.customTitleScreen = false; | ||
} | ||
} | ||
} | ||
/* | ||
* This file is part of the BleachHack distribution (https://github.com/BleachDrinker420/bleachhack-1.14/). | ||
* Copyright (c) 2019 Bleach. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package bleach.hack; | ||
|
||
import bleach.hack.utils.Rainbow; | ||
import com.google.common.eventbus.EventBus; | ||
|
||
import bleach.hack.gui.BleachMainMenu; | ||
import bleach.hack.module.Module; | ||
import bleach.hack.module.ModuleManager; | ||
import bleach.hack.module.mods.ClickGui; | ||
import bleach.hack.utils.FriendManager; | ||
import bleach.hack.utils.file.BleachFileHelper; | ||
import bleach.hack.utils.file.BleachFileMang; | ||
import net.fabricmc.api.ModInitializer; | ||
import net.minecraft.client.MinecraftClient; | ||
|
||
import java.nio.file.Paths; | ||
|
||
public class BleachHack implements ModInitializer { | ||
|
||
public static final String VERSION = "B1000"; | ||
public static final int INTVERSION = 24; | ||
|
||
public static EventBus eventBus = new EventBus(); | ||
|
||
public static FriendManager friendMang; | ||
|
||
@Override | ||
public void onInitialize() { | ||
BleachFileMang.init(); | ||
BleachFileHelper.readModules(); | ||
|
||
ClickGui.clickGui.initWindows(); | ||
BleachFileHelper.readClickGui(); | ||
BleachFileHelper.readPrefix(); | ||
BleachFileHelper.readFriends(); | ||
|
||
for (Module m: ModuleManager.getModules()) m.init(); | ||
|
||
eventBus.register(new Rainbow()); | ||
|
||
//v This makes a scat fetishist look like housekeeping. | ||
eventBus.register(new ModuleManager()); | ||
// wait why do we need this ^? | ||
// Because I was too lazy to implement a proper keybind system and I left the keypress handler in ModuleManager as a subscribed event. TODO: Proper Keybind System | ||
|
||
String mainMenu = BleachFileHelper.readMiscSetting("customTitleScreen"); | ||
if (mainMenu != null && mainMenu.equalsIgnoreCase("false")) { | ||
BleachMainMenu.customTitleScreen = false; | ||
} | ||
} | ||
} |
64 changes: 32 additions & 32 deletions
64
...ain/java/bleach/hack/command/Command.java → ...ain/java/bleach/hack/command/Command.java
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
/* | ||
* This file is part of the BleachHack distribution (https://github.com/BleachDrinker420/bleachhack-1.14/). | ||
* Copyright (c) 2019 Bleach. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package bleach.hack.command; | ||
|
||
import net.minecraft.client.MinecraftClient; | ||
|
||
public abstract class Command { | ||
|
||
public static String PREFIX = "$"; | ||
|
||
protected MinecraftClient mc = MinecraftClient.getInstance(); | ||
|
||
public abstract String getAlias(); | ||
public abstract String getDescription(); | ||
public abstract String getSyntax(); | ||
public abstract void onCommand(String command,String[] args) throws Exception; | ||
} | ||
/* | ||
* This file is part of the BleachHack distribution (https://github.com/BleachDrinker420/bleachhack-1.14/). | ||
* Copyright (c) 2019 Bleach. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package bleach.hack.command; | ||
|
||
import net.minecraft.client.MinecraftClient; | ||
|
||
public abstract class Command { | ||
|
||
public static String PREFIX = "$"; | ||
|
||
protected MinecraftClient mc = MinecraftClient.getInstance(); | ||
|
||
public abstract String getAlias(); | ||
public abstract String getDescription(); | ||
public abstract String getSyntax(); | ||
public abstract void onCommand(String command,String[] args) throws Exception; | ||
} |
Oops, something went wrong.