Upload files to "src/openonyx/render/group_v"

This commit is contained in:
winterflyt committed 2026-11-30 06:11:38 +02:00
1 parent 37572499c2
commit 291669eaf9
5 files changed
+353

No files matched your search

@@ -0,0 +1,44 @@
package openonyx.render.group_v;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
public final class IconPaths {
private static final Map<String, float[]> STRING_MAP = new LinkedHashMap<>();
public static void L(String string) {
STRING_MAP.remove(string);
}
private IconPaths() {
}
public static List<float[]> L(String string) {
String string1 = string;
ArrayList arrayList = new ArrayList(STRING_MAP.size());
Iterator iterator = STRING_MAP.entrySet().iterator();
while (iterator.hasNext()) {
Entry entry;
if (!((String)(entry = (Entry)iterator.next()).getKey()).equals(string1)) {
arrayList.add((float[])entry.getValue());
}
}
return arrayList;
}
public static void L(String string, float f, float g, float h, float i) {
float[] j = new float[4];
boolean bl = true;
j[0] = f;
j[1] = g;
j[2] = h;
j[3] = i;
STRING_MAP.put(string, j);
}
}
@@ -0,0 +1,104 @@
package openonyx.render.group_v;
import net.minecraft.client.gui.ScaledResolution;
import openonyx.core.OnyxClient;
import openonyx.features.hud.ArrayListModule;
import openonyx.features.hud.Keybinds;
import openonyx.features.hud.Notifications;
import openonyx.features.hud.PotionHUD;
import openonyx.features.hud.StatsIsland;
import openonyx.features.hud.TargetHUD;
import openonyx.features.hud.Watermark;
import openonyx.features.render.BedESP;
import openonyx.features.render.Crosshair;
import openonyx.features.render.TNTTimer;
import openonyx.render.HandTransform;
import openonyx.render.Render2D;
import openonyx.render.group_w.CustomGuiRenderer;
public final class RenderSupport_181 {
private static final Render2D RENDER2_D = new Render2D().withoutCursor();
private RenderSupport_181() {
}
public static void L(ScaledResolution scaledResolution, float f) {
ScaledResolution scaledResolution1 = scaledResolution;
if (OnyxClient.moduleManager != null) {
TargetHUD targetHUD = OnyxClient.moduleManager.targetHUD;
Keybinds keybinds = OnyxClient.moduleManager.keybinds;
PotionHUD potionHUD = OnyxClient.moduleManager.potionHUD;
Notifications notifications = OnyxClient.moduleManager.notifications;
ArrayListModule arrayListModule = OnyxClient.moduleManager.arrayListModule;
Watermark watermark;
Watermark watermark1 = watermark = OnyxClient.moduleManager.watermark;
StatsIsland statsIsland = OnyxClient.moduleManager.watermark.getStatsIsland();
BedESP bedESP = OnyxClient.moduleManager.bedESP;
Crosshair crosshair = OnyxClient.moduleManager.crosshair;
TNTTimer tNTTimer = OnyxClient.moduleManager.tntTimer;
boolean bl = targetHUD.l();
boolean bl1 = keybinds.l();
boolean bl2 = potionHUD.I();
boolean bl3 = notifications.l();
boolean bl4 = arrayListModule.l();
boolean bl5 = watermark1.h();
boolean bl6 = statsIsland.D();
boolean bl7 = bedESP.h();
boolean bl8 = crosshair.I();
boolean bl9 = tNTTimer.isEnabled();
boolean bl11 = HandTransform.L();
boolean bl10 = CustomGuiRenderer.L();
if (bl || bl1 || bl4 || bl5 || bl6 || bl8 || bl9 || bl11 || bl10 || bl2 || bl3 || bl7) {
float h = scaledResolution1.getScaledWidth();
float g = scaledResolution1.getScaledHeight();
RENDER2_D.beginFrame();
if (bl10) {
CustomGuiRenderer.L(RENDER2_D, h, g);
}
if (bl9) {
tNTTimer.L(RENDER2_D, h, g, f);
}
if (bl8) {
crosshair.L(RENDER2_D, h, g);
}
if (bl) {
targetHUD.L(RENDER2_D, h, g, f);
}
if (bl1) {
keybinds.L(RENDER2_D, h, g);
}
if (bl2) {
potionHUD.L(RENDER2_D, h, g);
}
if (bl7) {
bedESP.L(RENDER2_D, h, g);
}
if (bl4) {
arrayListModule.L(RENDER2_D, h, g);
}
if (bl5) {
watermark.L(RENDER2_D, h, g);
}
if (bl6) {
statsIsland.L(RENDER2_D, h, g);
}
if (bl3) {
notifications.L(RENDER2_D, h, g);
}
HandTransform.L(RENDER2_D, h, g);
RENDER2_D.clearScissors();
}
}
}
}
@@ -0,0 +1,59 @@
package openonyx.render.group_v;
import org.lwjgl.input.Keyboard;
public final class RenderSupport_184 {
private boolean I;
private boolean d;
private boolean i;
private boolean f;
private static final float H = 1.0F;
private static final float[] e;
static {
float[] fx = new float[2];
boolean bl = true;
fx[0] = 0.0F;
fx[1] = 0.0F;
e = fx;
}
public float[] L(boolean bl) {
RenderSupport_184 renderSupport_1841 = this;
boolean bl3 = bl && Keyboard.isKeyDown(203);
boolean bl2 = bl && Keyboard.isKeyDown(205);
boolean bl1 = bl && Keyboard.isKeyDown(200);
bl = bl && Keyboard.isKeyDown(208);
float g = 0.0F;
float fx = 0.0F;
if (bl3 && !renderSupport_1841.f) {
g--;
}
if (bl2 && !renderSupport_1841.I) {
g++;
}
if (bl1 && !renderSupport_1841.d) {
fx--;
}
if (bl && !renderSupport_1841.i) {
fx++;
}
renderSupport_1841.f = bl3;
renderSupport_1841.I = bl2;
renderSupport_1841.d = bl1;
renderSupport_1841.i = bl;
if (g == 0.0F && fx == 0.0F) {
return e;
}
float[] h = new float[2];
boolean bl4 = true;
h[0] = g;
h[1] = fx;
return h;
}
}
@@ -0,0 +1,142 @@
package openonyx.render.group_v;
import java.util.List;
import openonyx.render.Render2D;
public final class RoundedShapes {
private static final int h = -1885559891;
private static final float[] l;
private static final float I = 4.0F;
private static final int d = 1468764569;
private static final float i = 7.0F;
public static final RoundedShapesData2 ROUNDED_SHAPES_DATA2 = new RoundedShapesData2(0.0F, 0.0F, Float.NaN, Float.NaN);
private static final float H = 1.0F;
private static final float e = 5.0F;
static {
float[] f = new float[3];
boolean bl = true;
f[0] = 0.25F;
f[1] = 0.5F;
f[2] = 0.75F;
l = f;
}
public static RoundedShapesData2 L(float f, float g, float h, float i, float j, float k, float l) {
return L(f, g, hx, ix, j, k, lx, List.of());
}
private RoundedShapes() {
}
private static RoundedShapesData L(float f, float g, float h, float i, List<float[]> list, boolean bl) {
float j = ix;
float k = Math.max(ix, hx - ix - g);
float lx;
float m = lx = Math.clamp(f, j, k);
float n = Float.NaN;
float o = 8.0F;
float[] ba = new float[5];
boolean bl1 = true;
ba[0] = ix;
ba[1] = hx * 0.25F;
ba[2] = hx * 0.5F;
ba[3] = hx * 0.75F;
ba[4] = hx - ix;
float[] s = ba;
ba = new float[5];
bl1 = true;
ba[0] = j;
ba[1] = Math.clamp(s[1] - g / 2.0F, j, k);
ba[2] = Math.clamp(s[2] - g / 2.0F, j, k);
ba[3] = Math.clamp(s[3] - g / 2.0F, j, k);
ba[4] = k;
float[] u = ba;
int p;
for (int y = p = 0; y < u.length; y = ++p) {
float q;
if (!((q = Math.abs(lx - u[p])) >= o) && !(q > 7.0F)) {
m = u[p];
n = s[p];
o = q;
}
}
for (float[] x : list) {
hx = bl ? x[0] : x[1];
ix = bl ? x[2] : x[3];
ba = new float[5];
bl1 = true;
ba[0] = hx;
ba[1] = hx + ix - g;
ba[2] = hx + ix / 2.0F - g / 2.0F;
ba[3] = hx + ix;
ba[4] = hx - g;
float[] w = ba;
ba = new float[5];
bl1 = true;
ba[0] = hx;
ba[1] = hx + ix;
ba[2] = hx + ix / 2.0F;
ba[3] = hx + ix;
ba[4] = hx;
float[] t = ba;
for (int z = v = 0; z < w.length; z = ++v) {
float r;
if (!(w[v] < j) && !(w[v] > k) && !((r = Math.abs(lx - w[v])) >= o) && !(r > 7.0F)) {
m = w[v];
n = t[v];
o = r;
}
}
}
return new RoundedShapesData(m, n);
}
public static RoundedShapesData2 L(float f, float g, float h, float i, float j, float k, float l, List<float[]> list) {
RoundedShapesData roundedShapesData1 = L(f, hx, j, lx, list, true);
RoundedShapesData roundedShapesData = L(g, ix, k, lx, list, false);
return new RoundedShapesData2(roundedShapesData1.position(), roundedShapesData.position(), roundedShapesData1.guide(), roundedShapesData.guide());
}
public static void L(Render2D render2D, float f, float g, RoundedShapesData2 roundedShapesData2) {
float[] hx = l;
int ix = l.length;
int j;
for (int lx = j = 0; lx < ix; lx = j) {
float k = hx[j];
d(render2D, f * k, g, 1468764569);
float m = g * k;
j++;
L(render2D, m, f, 1468764569);
}
if (Float.isFinite(roundedShapesData2.guideX())) {
d(render2D, roundedShapesData2.guideX(), g, -1885559891);
}
if (Float.isFinite(roundedShapesData2.guideY())) {
L(render2D, roundedShapesData2.guideY(), f, -1885559891);
}
}
private static void d(Render2D render2D, float f, float g, int i) {
Render2D render2D1 = render2D;
for (float j = hx = 4.0F; j < g - 4.0F; j = hx += 9.0F) {
render2D1.I(f, hx, f, Math.min(hx + 5.0F, g - 4.0F), 1.0F, ix);
}
}
private static void L(Render2D render2D, float f, float g, int i) {
Render2D render2D1 = render2D;
for (float j = hx = 4.0F; j < g - 4.0F; j = hx += 9.0F) {
render2D1.I(hx, f, Math.min(hx + 5.0F, g - 4.0F), f, 1.0F, ix);
}
}
}
@@ -0,0 +1,4 @@
package openonyx.render.group_v;
record RoundedShapesData(float position, float guide) {
}