|
1 | 1 | package me.ghosttypes.reaper.mixins; |
2 | 2 |
|
3 | | -import me.ghosttypes.reaper.Reaper; |
4 | 3 | import me.ghosttypes.reaper.events.InteractEvent; |
5 | 4 | import me.ghosttypes.reaper.modules.misc.MultiTask; |
6 | | -import me.ghosttypes.reaper.util.player.Interactions; |
7 | 5 | import meteordevelopment.meteorclient.MeteorClient; |
8 | 6 | import meteordevelopment.meteorclient.mixininterface.IMinecraftClient; |
9 | 7 | import meteordevelopment.meteorclient.systems.modules.Modules; |
|
18 | 16 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; |
19 | 17 |
|
20 | 18 | import java.io.IOException; |
21 | | -import java.io.InputStream; |
22 | 19 |
|
23 | 20 | @Mixin( |
24 | 21 | value = {MinecraftClient.class}, |
25 | 22 | priority = 1001 |
26 | 23 | ) |
27 | 24 | public abstract class MincraftClientMixin implements IMinecraftClient { |
28 | 25 |
|
29 | | - @Inject(method = "getWindowTitle", at = @At("HEAD"), cancellable = true) |
30 | | - public void getWindowTitle(CallbackInfoReturnable<String> ci){ |
31 | | - String title = "Reaper " + Reaper.VERSION; |
32 | | - if (Interactions.isDeveloper()) title = "Reaper " + Reaper.VERSION + " [Developer Edition]"; |
33 | | - if (Interactions.isBetaUser()) title = "Reaper " + Reaper.VERSION + " [Beta Edition]"; |
34 | | - ci.setReturnValue(title); |
35 | | - } |
36 | | - |
37 | | - @Redirect(method = "<init>", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;setIcon(Ljava/io/InputStream;Ljava/io/InputStream;)V")) |
38 | | - public void setAlternativeWindowIcon(Window window, InputStream inputStream1, InputStream inputStream2) throws IOException { |
39 | | - window.setIcon( |
40 | | - Reaper.class.getResourceAsStream("/assets/reaper/16.png"), |
41 | | - Reaper.class.getResourceAsStream("/assets/reaper/32.png") |
42 | | - ); |
43 | | - } |
44 | | - |
45 | 26 | @Redirect( |
46 | 27 | method = {"handleBlockBreaking"}, |
47 | 28 | at = @At( |
|
0 commit comments