Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,19 @@ static int getCurrentFps() {
default List<String> br$getSidebar() {
throw BridgeUtil.noImpl();
}

@RequiresImpl
default String br$getChunkDebugInfo() {
throw BridgeUtil.noImpl();
}

@RequiresImpl
default String br$getEntityDebugInfo() {
throw BridgeUtil.noImpl();
}

@RequiresImpl
default String br$getParticleDebugInfo() {
throw BridgeUtil.noImpl();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import io.github.axolotlclient.bridge.internal.BridgeUtil;
import io.github.axolotlclient.bridge.internal.RequiresImpl;
import io.github.axolotlclient.bridge.render.AxoSprite;
import org.apache.commons.lang3.mutable.MutableInt;

/**
Expand All @@ -41,11 +40,6 @@ public class PlatformDispatch {
throw BridgeUtil.noImpl();
}

@RequiresImpl
public static AxoSprite.Dynamic ipHud$getServerIcon() {
throw BridgeUtil.noImpl();
}

@RequiresImpl
public static void autoBoop$openFiltersScreen(List<String> filters) {
throw BridgeUtil.noImpl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
import io.github.axolotlclient.modules.hud.gui.hud.*;
import io.github.axolotlclient.modules.hud.gui.hud.item.ArmorHud;
import io.github.axolotlclient.modules.hud.gui.hud.item.ArrowHud;
import io.github.axolotlclient.modules.hud.gui.hud.item.ItemUpdateHud;
import io.github.axolotlclient.modules.hud.gui.hud.simple.*;
import io.github.axolotlclient.modules.hud.gui.hud.item.InventoryHud;
import io.github.axolotlclient.modules.hud.gui.hud.vanilla.PlayerTabOverlayHud;
Expand Down Expand Up @@ -113,23 +112,17 @@ public void init() {
add(new ArmorHud());
add(new PotionsHud());
add(new ToggleSprintHud());
add(new IPHud());
add(new IconHud());
add(new SpeedHud());
add(new CoordsHud());
add(new ArrowHud());
add(new ItemUpdateHud());
add(new IRLTimeHud());
add(new ReachHud());
add(new MemoryHud());
add(new PlayerCountHud());
add(new CompassHud());
add(new TPSHud());
add(new ComboHud());
add(new MouseMovementHud());
add(new DayCounterHud());
add(new InventoryHud());
add(new XPHud());
add(new PlayerTabOverlayHud());
add(new SubtitlesHudHud());

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*
* Copyright © 2024 moehreag <moehreag@gmail.com> & Contributors
* Copyright © 2026 DSNS <dominic@seung.dev>
*
* This file is part of AxolotlClient.
* This file is part of DolphinClient, a fork of AxolotlClient.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -68,6 +69,9 @@ public class CoordsHud extends TextHudEntry {
private final StringOption separator = new StringOption("coordshud.separator", ", ");
private final ColorOption separatorColor = new ColorOption("coordshud.separator.color", firstColor.getDefault());
private final BooleanOption showNetherConversions = new BooleanOption("coordshud.show_nether_conversions", false);
private final BooleanOption showCCount = new BooleanOption("debugcounters.ccount", false);
private final BooleanOption showECount = new BooleanOption("debugcounters.ecount", false);
private final BooleanOption showPCount = new BooleanOption("debugcounters.pcount", false);

private DecimalFormat format = new DecimalFormat("0");

Expand Down Expand Up @@ -137,7 +141,7 @@ public static String getZDir(int dir) {
};
}

private void doRender(AxoRenderContext context, double yaw, Vec3 playerPos, String biomeName, boolean isOverworld, boolean isNether) {
private void doRender(AxoRenderContext context, double yaw, Vec3 playerPos, String biomeName, boolean isOverworld, boolean isNether, String chunkDebug, String entityDebug, String particleDebug) {
DrawPosition pos = getContentPos();

int dir = getDirection(yaw);
Expand Down Expand Up @@ -233,6 +237,13 @@ private void doRender(AxoRenderContext context, double yaw, Vec3 playerPos, Stri
height += 10;
}

int[] size = {width, height};
appendDebugLine(context, xStart, pos, size, chunkDebug);
appendDebugLine(context, xStart, pos, size, entityDebug);
appendDebugLine(context, xStart, pos, size, particleDebug);
width = size[0];
height = size[1];

boolean changed = false;

if (getContentWidth() != width) {
Expand All @@ -256,7 +267,19 @@ public void renderComponent(AxoRenderContext context, float delta) {
return;
}

doRender(context, client.br$getPlayer().br$getYaw() + 180, client.br$getPlayer().br$getPos(), client.br$getWorld().br$getBiomeName(client.br$getPlayer().br$getPos()), client.br$getWorld().br$isOverworld(), client.br$getWorld().br$isNether());
doRender(context, client.br$getPlayer().br$getYaw() + 180, client.br$getPlayer().br$getPos(), client.br$getWorld().br$getBiomeName(client.br$getPlayer().br$getPos()), client.br$getWorld().br$isOverworld(), client.br$getWorld().br$isNether(),
showCCount.get() ? client.br$getChunkDebugInfo() : null,
showECount.get() ? client.br$getEntityDebugInfo() : null,
showPCount.get() ? client.br$getParticleDebugInfo() : null);
}

private void appendDebugLine(AxoRenderContext context, int xStart, DrawPosition pos, int[] size, String line) {
if (line == null || line.isEmpty()) {
return;
}
int xEnd = context.br$drawString(line, xStart, pos.y() + size[1], secondColor.get(), shadow.get());
size[0] = Math.max(size[0], xEnd - pos.x() + 1);
size[1] += 10;
}

public String getWordedDirection(int dir) {
Expand All @@ -276,7 +299,10 @@ public String getWordedDirection(int dir) {

@Override
public void renderPlaceholderComponent(AxoRenderContext context, float delta) {
doRender(context, 180, new Vec3(109.2325, 180.8981, -5098.32698), "Plains", true, false);
doRender(context, 180, new Vec3(109.2325, 180.8981, -5098.32698), "Plains", true, false,
showCCount.get() ? "C: 186/15000 (s) D: 10, pC: 000, pU: 00, aB: 20" : null,
showECount.get() ? "E: 695/3001, SD: 12" : null,
showPCount.get() ? "P: 200" : null);
}

@Override
Expand All @@ -289,6 +315,9 @@ public List<Option<?>> getConfigurationOptions() {
options.add(minimal);
options.add(biome);
options.add(showNetherConversions);
options.add(showCCount);
options.add(showECount);
options.add(showPCount);
options.add(delimiter);
options.add(separator);
options.add(separatorColor);
Expand Down

This file was deleted.

Loading