Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 8167723

Browse files
committed
format
1 parent 76cd4e6 commit 8167723

File tree

61 files changed

+211
-213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+211
-213
lines changed

1.16_combat-6/src/main/java/io/github/axolotlclient/bridge/mixin/PlatformDispatchMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class Impl implements AxoSprite.Dynamic, AxoSpriteImpl {
137137
@Override
138138
public void draw(MinecraftClient client, MatrixStack stack, int sX, int sY, int sW, int sH) {
139139
client.getTextureManager().bindTexture(iconId);
140-
DrawUtil.drawTexture(stack, sX, sY, 0, 0, sW, sH, sW, sH);
140+
DrawUtil.drawTexture(stack, sX, sY, 0, 0, sW, sH, sW, sH);
141141
}
142142

143143
@Override

1.16_combat-6/src/main/java/io/github/axolotlclient/bridge/mixin/key/GameOptionsMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.spongepowered.asm.mixin.Shadow;
3232

3333
@Mixin(GameOptions.class)
34-
public abstract class GameOptionsMixin implements AxoClientKeybinds{
34+
public abstract class GameOptionsMixin implements AxoClientKeybinds {
3535
@Shadow
3636
@Final
3737
public KeyBinding keyAttack;

1.16_combat-6/src/main/java/io/github/axolotlclient/bridge/mixin/util/IdentifierMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.spongepowered.asm.mixin.Shadow;
2929

3030
@Mixin(Identifier.class)
31-
public abstract class IdentifierMixin implements AxoIdentifier{
31+
public abstract class IdentifierMixin implements AxoIdentifier {
3232
@Shadow
3333
public abstract String getPath();
3434

1.16_combat-6/src/main/java/io/github/axolotlclient/config/screen/CreditsScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) {
8282
renderBackground(matrices);
8383
creditsList.render(matrices, mouseX, mouseY, delta);
8484
super.render(matrices, mouseX, mouseY, delta);
85-
drawCenteredText(matrices, textRenderer, getTitle(), width / 2, 33/2 - textRenderer.fontHeight / 2, -1);
85+
drawCenteredText(matrices, textRenderer, getTitle(), width / 2, 33 / 2 - textRenderer.fontHeight / 2, -1);
8686
}
8787

8888
@Override

1.16_combat-6/src/main/java/io/github/axolotlclient/modules/hud/HudManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
import io.github.axolotlclient.modules.hud.gui.hud.KeystrokeHud;
2727
import io.github.axolotlclient.modules.hud.gui.hud.PackDisplayHud;
2828
import io.github.axolotlclient.modules.hud.gui.hud.PlayerHud;
29-
import io.github.axolotlclient.modules.hud.gui.hud.vanilla.*;
3029
import io.github.axolotlclient.modules.hud.gui.hud.simple.ComboHud;
3130
import io.github.axolotlclient.modules.hud.gui.hud.simple.ReachHud;
31+
import io.github.axolotlclient.modules.hud.gui.hud.vanilla.*;
3232
import lombok.Getter;
3333
import net.minecraft.client.MinecraftClient;
3434

@@ -67,7 +67,7 @@ protected void addExtraHud() {
6767
public void render(AxoRenderContext context, float delta) {
6868
final var mc = ((MinecraftClient) client);
6969
mc.getProfiler().push("Hud render");
70-
if(!(mc.currentScreen instanceof HudEditScreen)) {
70+
if (!(mc.currentScreen instanceof HudEditScreen)) {
7171
super.render(context, delta);
7272
}
7373
mc.getProfiler().pop();

1.16_combat-6/src/main/java/io/github/axolotlclient/modules/hud/gui/hud/KeystrokeHud.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
import io.github.axolotlclient.config.profiles.ProfileAware;
3939
import io.github.axolotlclient.mixin.KeyBindAccessor;
4040
import io.github.axolotlclient.modules.hud.ClickInputTracker;
41+
import io.github.axolotlclient.modules.hud.gui.entry.TextHudEntry;
4142
import io.github.axolotlclient.modules.hud.gui.keystrokes.KeystrokePositioningScreen;
4243
import io.github.axolotlclient.modules.hud.gui.keystrokes.KeystrokesScreen;
43-
import io.github.axolotlclient.modules.hud.gui.entry.TextHudEntry;
4444
import io.github.axolotlclient.modules.hud.gui.layout.Justification;
4545
import io.github.axolotlclient.modules.hud.util.DrawPosition;
4646
import io.github.axolotlclient.modules.hud.util.Rectangle;

1.20/src/main/java/io/github/axolotlclient/api/chat/ChatWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public boolean mouseClicked(double mouseX, double mouseY, int button) {
172172
if (!origin.sender().equals(API.getInstance().getSelf())) {
173173
builder.entry(Text.translatable("api.friends.chat"), buttonWidget ->
174174
ChannelRequest.getOrCreateDM(origin.sender())
175-
.whenCompleteAsync((channel, throwable) -> client.execute(() -> client.setScreen(new ChatScreen(screen.getParent(), channel)))))
175+
.whenCompleteAsync((channel, throwable) -> client.execute(() -> client.setScreen(new ChatScreen(screen.getParent(), channel)))))
176176
.spacer();
177177
}
178178
builder.entry(Text.translatable("api.chat.report.message"), buttonWidget -> {

1.20/src/main/java/io/github/axolotlclient/api/multiplayer/FriendsMultiplayerScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public FriendsMultiplayerScreen(Screen lastScreen) {
6060
@Override
6161
protected void init() {
6262
if (this.initialized) {
63-
this.serverSelectionList.updateSize(this.width, this.height, 60, this.height-64);
63+
this.serverSelectionList.updateSize(this.width, this.height, 60, this.height - 64);
6464
} else {
6565
this.serverSelectionList = new FriendsMultiplayerSelectionList(this, this.client, this.width, this.height - 64 - 60, 60, 36);
6666
}

1.20/src/main/java/io/github/axolotlclient/api/multiplayer/ServerInfoUtil.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,22 @@ public static Status.Activity.ServerInfo getServerInfo(String levelName, ServerM
4040
return new Status.Activity.ServerInfo(levelName, null, null, null, null);
4141
}
4242
return new Status.Activity.ServerInfo(levelName, status.description().getString(),
43-
new Status.Activity.ServerInfo.Favicon(status.favicon().map(ServerMetadata.Favicon::iconBytes).orElse(null)),
44-
status.players().map(p ->
45-
new Status.Activity.ServerInfo.Players(p.max(), p.online(),
46-
p.sample().stream().map(prof -> new Status.Activity.ServerInfo.Players.Player(prof.getName(), UUIDHelper.toUndashed(prof.getId()))).toList())
47-
).orElse(null),
48-
status.version().map(v -> new Status.Activity.ServerInfo.Version(v.name(), v.protocol())).orElse(null));
43+
new Status.Activity.ServerInfo.Favicon(status.favicon().map(ServerMetadata.Favicon::iconBytes).orElse(null)),
44+
status.players().map(p ->
45+
new Status.Activity.ServerInfo.Players(p.max(), p.online(),
46+
p.sample().stream().map(prof -> new Status.Activity.ServerInfo.Players.Player(prof.getName(), UUIDHelper.toUndashed(prof.getId()))).toList())
47+
).orElse(null),
48+
status.version().map(v -> new Status.Activity.ServerInfo.Version(v.name(), v.protocol())).orElse(null));
4949
}
5050

5151
public static ServerMetadata getServerStatus(Status.Activity.ServerInfo info) {
5252
return new ServerMetadata(Text.of(info.levelName()),
53-
Optional.ofNullable(info.players()).map(p -> new ServerMetadata.Players(p.max(),
54-
p.online(),
55-
p.sample().stream().map(prof -> new GameProfile(UUIDHelper.fromUndashed(prof.uuid()), prof.name())).toList())),
56-
Optional.ofNullable(info.version()).map(v -> new ServerMetadata.Version(v.name(), v.protocol())),
57-
Optional.ofNullable(info.icon()).map(f -> new ServerMetadata.Favicon(f.iconBytes())),
58-
false);
53+
Optional.ofNullable(info.players()).map(p -> new ServerMetadata.Players(p.max(),
54+
p.online(),
55+
p.sample().stream().map(prof -> new GameProfile(UUIDHelper.fromUndashed(prof.uuid()), prof.name())).toList())),
56+
Optional.ofNullable(info.version()).map(v -> new ServerMetadata.Version(v.name(), v.protocol())),
57+
Optional.ofNullable(info.icon()).map(f -> new ServerMetadata.Favicon(f.iconBytes())),
58+
false);
5959
}
6060

6161
public static ServerInfo getServerData(String username, Status.Activity.E4mcMetadata metadata) {

1.20/src/main/java/io/github/axolotlclient/bridge/mixin/MinecraftClientMixin.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ public abstract class MinecraftClientMixin implements AxoMinecraftClient {
8989
public abstract ResourceManager getResourceManager();
9090

9191
@Override
92-
public@Nullable AxoPlayer br$getPlayer() {
92+
public @Nullable AxoPlayer br$getPlayer() {
9393
return player;
9494
}
95+
9596
@Override
9697

9798
public AxoWorld br$getWorld() {
@@ -146,7 +147,7 @@ public abstract class MinecraftClientMixin implements AxoMinecraftClient {
146147
@Override
147148
public void br$reinitScreen() {
148149
if (currentScreen != null) {
149-
currentScreen.init((MinecraftClient) (Object)this, currentScreen.width, currentScreen.height);
150+
currentScreen.init((MinecraftClient) (Object) this, currentScreen.width, currentScreen.height);
150151
}
151152
}
152153

0 commit comments

Comments
 (0)