From 237fe3da0495737d983d95050ddd9cd934fc9ce9 Mon Sep 17 00:00:00 2001 From: winterflyt <36+winterflyt@noreply.skidsolutions.xyz> Date: Mon, 30 Nov 2026 05:57:07 +0200 Subject: [PATCH] Upload files to "src/openonyx/features/render" --- .../features/render/BlockOverlayPart.java | 15 ++ .../features/render/BlockOverlayPart2.java | 20 ++ .../features/render/BlockOverlayPart3.java | 19 ++ src/openonyx/features/render/Boxes.java | 195 ++++++++++++++++++ src/openonyx/features/render/BoxesData.java | 6 + 5 files changed, 255 insertions(+) create mode 100644 src/openonyx/features/render/BlockOverlayPart.java create mode 100644 src/openonyx/features/render/BlockOverlayPart2.java create mode 100644 src/openonyx/features/render/BlockOverlayPart3.java create mode 100644 src/openonyx/features/render/Boxes.java create mode 100644 src/openonyx/features/render/BoxesData.java diff --git a/src/openonyx/features/render/BlockOverlayPart.java b/src/openonyx/features/render/BlockOverlayPart.java new file mode 100644 index 0000000..c3092cd --- /dev/null +++ b/src/openonyx/features/render/BlockOverlayPart.java @@ -0,0 +1,15 @@ +package openonyx.features.render; + +import openonyx.history.SettingGroup; +import openonyx.history.internal.NumberSetting; + +public final class BlockOverlayPart extends SettingGroup { + public final NumberSetting glintSpeed = new NumberSetting("Glint speed", 1.0, 0.1, 4.0, 0.1); + public final NumberSetting glintGlow; + public final NumberSetting glintScale = new NumberSetting("Glint scale", 1.5, 0.5, 4.0, 0.1).describe("How large the curtains are across the block face"); + + public BlockOverlayPart() { + super("Glint"); + this.glintGlow = new NumberSetting("Glint glow", 60.0, 0.0, 100.0, 5.0).withSuffix("%"); + } +} diff --git a/src/openonyx/features/render/BlockOverlayPart2.java b/src/openonyx/features/render/BlockOverlayPart2.java new file mode 100644 index 0000000..fb4fa59 --- /dev/null +++ b/src/openonyx/features/render/BlockOverlayPart2.java @@ -0,0 +1,20 @@ +package openonyx.features.render; + +import openonyx.history.SettingGroup; +import openonyx.history.internal.EnumSetting; +import openonyx.history.internal.NumberSetting; + +public final class BlockOverlayPart2 extends SettingGroup { + public final EnumSetting appearance; + public final NumberSetting fade; + public final NumberSetting appear = new NumberSetting("Appear", 140.0, 0.0, 600.0, 10.0).withSuffix(" ms"); + public final NumberSetting move = new NumberSetting("Move", 110.0, 0.0, 600.0, 10.0) + .withSuffix(" ms") + .describe("How long the box takes to slide to a neighbouring block"); + + public BlockOverlayPart2() { + super("Animation"); + this.fade = new NumberSetting("Fade", 180.0, 0.0, 600.0, 10.0).withSuffix(" ms"); + this.appearance = new EnumSetting<>("Appearance", AppearanceMode.POP).describe("Fade alone, a small pop, or growing out of the centre of the block"); + } +} diff --git a/src/openonyx/features/render/BlockOverlayPart3.java b/src/openonyx/features/render/BlockOverlayPart3.java new file mode 100644 index 0000000..8d1e628 --- /dev/null +++ b/src/openonyx/features/render/BlockOverlayPart3.java @@ -0,0 +1,19 @@ +package openonyx.features.render; + +import openonyx.history.SettingSection; +import openonyx.history.internal.EnumSetting; +import openonyx.history.internal.NumberSetting; + +public final class BlockOverlayPart3 extends SettingSection { + public final NumberSetting progressOpacity; + public final EnumSetting direction; + public final EnumSetting mode = new EnumSetting<>("Mode", FeatureSupport_327Mode.FILL) + .describe("The fill rising across the block, or growing out of its centre"); + + public BlockOverlayPart3() { + super("Break progress", true); + this.direction = new EnumSetting<>("Direction", DirectionMode.DOWN).describe("Which way the fill travels as the block breaks"); + this.progressOpacity = new NumberSetting("Progress opacity", 45.0, 1.0, 100.0, 1.0).withSuffix("%").describe("How solid the broken part of the block is"); + this.direction.visibleWhen(() -> this.mode.is(FeatureSupport_327Mode.FILL)); + } +} diff --git a/src/openonyx/features/render/Boxes.java b/src/openonyx/features/render/Boxes.java new file mode 100644 index 0000000..086912e --- /dev/null +++ b/src/openonyx/features/render/Boxes.java @@ -0,0 +1,195 @@ +package openonyx.features.render; + +import java.util.ArrayList; +import java.util.Comparator; +import java.util.Iterator; +import java.util.List; +import net.minecraft.client.gui.ScaledResolution; +import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.util.AxisAlignedBB; +import openonyx.events.TargetType; +import openonyx.features.Module; +import openonyx.features.ModuleCategory; +import openonyx.history.internal.BooleanSetting; +import openonyx.history.internal.EnumSetting; +import openonyx.history.internal.NumberSetting; +import openonyx.render.BoxRenderer; +import openonyx.render.EntityProjection; +import openonyx.render.EntityProjectionData2; +import openonyx.render.Render2D; +import openonyx.render.WorldToScreen; +import openonyx.theme.internal.ColorUtils; + +public final class Boxes extends Module { + public final EnumSetting shape = new EnumSetting<>("Shape", Shape.TWO_D) + .describe("A flat rectangle around the entity, or a cuboid sitting on it in the world"); + public final NumberSetting distance; + private static final double m = 0.125; + private static final double h = 0.06; + public final BooleanSetting throughWalls; + public final BoxesPart boxesPart; + public final EnumSetting