Search in sources :

Example 1 with Proxies

use of mathax.client.systems.proxies.Proxies in project Client by MatHax.

the class Systems method init.

public static void init() {
    System<?> config = add(new Config());
    config.init();
    config.load();
    add(new Modules());
    add(new Commands());
    add(new Friends());
    add(new Enemies());
    add(new Macros());
    add(new Accounts());
    add(new Waypoints());
    add(new Profiles());
    add(new Proxies());
    add(new HUD());
    MatHax.EVENT_BUS.subscribe(Systems.class);
}
Also used : Waypoints(mathax.client.systems.waypoints.Waypoints) Enemies(mathax.client.systems.enemies.Enemies) Proxies(mathax.client.systems.proxies.Proxies) Config(mathax.client.systems.config.Config) Modules(mathax.client.systems.modules.Modules) Friends(mathax.client.systems.friends.Friends) HUD(mathax.client.systems.hud.HUD) Profiles(mathax.client.systems.profiles.Profiles) Commands(mathax.client.systems.commands.Commands) Macros(mathax.client.systems.macros.Macros) Accounts(mathax.client.systems.accounts.Accounts)

Example 2 with Proxies

use of mathax.client.systems.proxies.Proxies in project Client by MatHax.

the class MultiplayerScreenMixin method onInit.

@Inject(method = "init", at = @At("TAIL"))
private void onInit(CallbackInfo info) {
    Version.UpdateChecker.checkForLatest = true;
    addDrawableChild(new ButtonWidget(width - 77, 2, 75, 20, new LiteralText("Accounts"), button -> client.setScreen(GuiThemes.get().accountsScreen())));
    addDrawableChild(new ButtonWidget(width - 154, 2, 75, 20, new LiteralText("Proxies"), button -> client.setScreen(GuiThemes.get().proxiesScreen())));
    addDrawableChild(new ButtonWidget(width - 231, 2, 75, 20, new LiteralText("Servers"), button -> client.setScreen(new ServerManagerScreen(GuiThemes.get(), (MultiplayerScreen) client.currentScreen))));
    if (LastServerInfo.getLastServer() != null)
        addDrawableChild(new ButtonWidget(width / 2 - 154, 10, 100, 20, new LiteralText("Last Server"), button -> LastServerInfo.reconnect(client.currentScreen)));
}
Also used : LiteralText(net.minecraft.text.LiteralText) Inject(org.spongepowered.asm.mixin.injection.Inject) IMultiplayerScreen(mathax.client.mixininterface.IMultiplayerScreen) Color(mathax.client.utils.render.color.Color) Version(mathax.client.utils.Version) ServerInfo(net.minecraft.client.network.ServerInfo) CallbackInfo(org.spongepowered.asm.mixin.injection.callback.CallbackInfo) Mixin(org.spongepowered.asm.mixin.Mixin) Proxies(mathax.client.systems.proxies.Proxies) NameProtect(mathax.client.systems.modules.misc.NameProtect) LastServerInfo(mathax.client.utils.misc.LastServerInfo) At(org.spongepowered.asm.mixin.injection.At) Utils(mathax.client.utils.Utils) MatHax(mathax.client.MatHax) Proxy(mathax.client.systems.proxies.Proxy) GuiThemes(mathax.client.gui.GuiThemes) MultiplayerServerListWidget(net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget) MatrixStack(net.minecraft.client.util.math.MatrixStack) ButtonWidget(net.minecraft.client.gui.widget.ButtonWidget) Screen(net.minecraft.client.gui.screen.Screen) ServerManagerScreen(mathax.client.gui.screens.servermanager.ServerManagerScreen) MultiplayerScreen(net.minecraft.client.gui.screen.multiplayer.MultiplayerScreen) Modules(mathax.client.systems.modules.Modules) Shadow(org.spongepowered.asm.mixin.Shadow) Text(net.minecraft.text.Text) IMultiplayerScreen(mathax.client.mixininterface.IMultiplayerScreen) MultiplayerScreen(net.minecraft.client.gui.screen.multiplayer.MultiplayerScreen) ServerManagerScreen(mathax.client.gui.screens.servermanager.ServerManagerScreen) ButtonWidget(net.minecraft.client.gui.widget.ButtonWidget) LiteralText(net.minecraft.text.LiteralText) Inject(org.spongepowered.asm.mixin.injection.Inject)

Aggregations

Modules (mathax.client.systems.modules.Modules)2 Proxies (mathax.client.systems.proxies.Proxies)2 MatHax (mathax.client.MatHax)1 GuiThemes (mathax.client.gui.GuiThemes)1 ServerManagerScreen (mathax.client.gui.screens.servermanager.ServerManagerScreen)1 IMultiplayerScreen (mathax.client.mixininterface.IMultiplayerScreen)1 Accounts (mathax.client.systems.accounts.Accounts)1 Commands (mathax.client.systems.commands.Commands)1 Config (mathax.client.systems.config.Config)1 Enemies (mathax.client.systems.enemies.Enemies)1 Friends (mathax.client.systems.friends.Friends)1 HUD (mathax.client.systems.hud.HUD)1 Macros (mathax.client.systems.macros.Macros)1 NameProtect (mathax.client.systems.modules.misc.NameProtect)1 Profiles (mathax.client.systems.profiles.Profiles)1 Proxy (mathax.client.systems.proxies.Proxy)1 Waypoints (mathax.client.systems.waypoints.Waypoints)1 Utils (mathax.client.utils.Utils)1 Version (mathax.client.utils.Version)1 LastServerInfo (mathax.client.utils.misc.LastServerInfo)1