Archive incari-client (client, 26.3, clean)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Fri, 9 Oct 2026 22:17:55 -0400
|
||||
Subject: [PATCH] modules: Let modules change the movement keys
|
||||
|
||||
The module framework's movement event (ADR 0046): after the game
|
||||
reads the movement keys each tick, modules may change them. Toggle Sprint
|
||||
latches sprint and sneak this way.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/player/KeyboardInput.java b/src/main/java/net/minecraft/client/player/KeyboardInput.java
|
||||
index 60888bb4220be95109f2d8cab391307778e635f9..7dca9b5a8daddb03965ec24e26feac3d6bf774aa 100644
|
||||
--- a/src/main/java/net/minecraft/client/player/KeyboardInput.java
|
||||
+++ b/src/main/java/net/minecraft/client/player/KeyboardInput.java
|
||||
@@ -32,2 +32,5 @@
|
||||
);
|
||||
+ // Incari start: modules may change the movement keys (Toggle Sprint)
|
||||
+ this.keyPresses = incari.client.modules.ModuleInput.adjust(this.keyPresses, this.options);
|
||||
+ // Incari end
|
||||
float forwardImpulse = calculateImpulse(this.keyPresses.forward(), this.keyPresses.backward());
|
||||
@@ -0,0 +1,19 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Fri, 9 Oct 2026 22:17:55 -0400
|
||||
Subject: [PATCH] modules: Draw modules' HUD elements with the HUD
|
||||
|
||||
Modules' HUD elements (ADR 0046) are drawn after the HUD's first
|
||||
stratum, before the chat, so in the browser they go into the HUD's
|
||||
texture with the rest (ADR 0030).
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Hud.java b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
index cb09877416ec50e3613574bb0d4917ba985ae278..84977420997b886d87f219ccb7a1b6dbafdf76d9 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
@@ -242,2 +242,5 @@
|
||||
// Incari end
|
||||
+ // Incari start: modules' HUD elements
|
||||
+ incari.client.modules.ModuleHud.extract(graphics);
|
||||
+ // Incari end
|
||||
this.extractChat(graphics, deltaTracker);
|
||||
@@ -0,0 +1,23 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 18:33:42 -0400
|
||||
Subject: [PATCH] modules: Let modules lower the fire overlay
|
||||
|
||||
The fire overlay event (ADR 0050): before the flames are drawn over the
|
||||
view, modules may move them down. Low Fire draws them lower.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/ScreenEffectRenderer.java b/src/main/java/net/minecraft/client/renderer/ScreenEffectRenderer.java
|
||||
index ea445974f4b44fd406655b2f1886246330fec24f..0c698388720b8b7e14536895a684beee8b2dd4cf 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/ScreenEffectRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/ScreenEffectRenderer.java
|
||||
@@ -59,3 +59,10 @@
|
||||
TextureAtlasSprite fireSprite = this.sprites.get(ModelBakery.FIRE_1);
|
||||
+ // Incari start: modules may lower the flames (Low Fire)
|
||||
+ poseStack.pushPose();
|
||||
+ poseStack.translate(0.0F, -incari.client.modules.ModuleOverlays.fireDrop(), 0.0F);
|
||||
+ // Incari end
|
||||
submitFire(poseStack, submitNodeCollector, fireSprite);
|
||||
+ // Incari start
|
||||
+ poseStack.popPose();
|
||||
+ // Incari end
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 18:33:42 -0400
|
||||
Subject: [PATCH] modules: Let a module draw the scoreboard sidebar where the
|
||||
player puts it
|
||||
|
||||
Custom Scoreboard (ADR 0050) takes the sidebar from its place: the HUD
|
||||
leaves it out there, and the module's HUD element has the game draw it
|
||||
at the element's place and scale, measuring it as it goes.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Hud.java b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
index 92b7a563bd1b79c0d10c8ef39938c8cf58434b74..c9294ead88ebf18b9522a0a34776807bae2b983b 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
@@ -429,2 +429,5 @@
|
||||
Objective displayObjective = teamObjective != null ? teamObjective : scoreboard.getDisplayObjective(DisplaySlot.SIDEBAR);
|
||||
+ // Incari start: a module may draw the sidebar where the player puts it (Custom Scoreboard)
|
||||
+ displayObjective = incari.client.modules.GameParts.takeSidebar(displayObjective);
|
||||
+ // Incari end
|
||||
if (displayObjective != null) {
|
||||
@@ -686,3 +689,5 @@
|
||||
|
||||
- private void displayScoreboardSidebar(final GuiGraphicsExtractor graphics, final Objective objective) {
|
||||
+ // Incari start: public, for a module's HUD element to draw the sidebar (Custom Scoreboard)
|
||||
+ public void displayScoreboardSidebar(final GuiGraphicsExtractor graphics, final Objective objective) {
|
||||
+ // Incari end
|
||||
Scoreboard scoreboard = objective.getScoreboard();
|
||||
@@ -726,2 +731,5 @@
|
||||
int headerY = bottom - entriesCount * 9;
|
||||
+ // Incari start: drawn for a module's element, the sidebar moves to its place
|
||||
+ incari.client.modules.GameParts.sidebarBox(graphics, left - 2, headerY - 9 - 1, right, bottom);
|
||||
+ // Incari end
|
||||
// Incari start: the sidebar on one glass card (HudLook)
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 20:19:50 -0400
|
||||
Subject: [PATCH] modules: Draw what modules show every frame over the world,
|
||||
under the HUD
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Hud.java b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
index c9294ead88ebf18b9522a0a34776807bae2b983b..e3928abcbe1848252d31c04af0818ec3ab5e8a98 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
@@ -223,2 +223,5 @@
|
||||
this.extractCameraOverlays(graphics, deltaTracker);
|
||||
+ // Incari start: what modules draw every frame over the world, under the HUD (ADR 0051)
|
||||
+ incari.client.modules.ModuleHud.extractLive(graphics);
|
||||
+ // Incari end
|
||||
this.extractCrosshair(graphics, deltaTracker);
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 20:19:50 -0400
|
||||
Subject: [PATCH] modules: Let modules add to the world, waypoints' beams
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/LevelRenderer.java b/src/main/java/net/minecraft/client/renderer/LevelRenderer.java
|
||||
index 1cab59c8fb172f0fed7e6b5794e65c3f49d14428..854128f55d3b27558da38506f73f8fe4181f0bae 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/LevelRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/LevelRenderer.java
|
||||
@@ -334,2 +334,5 @@
|
||||
levelRenderState.particlesRenderState.submit(submitNodeCollector, levelRenderState.cameraRenderState);
|
||||
+ // Incari start: what modules add to the world, waypoints' beams (ADR 0051)
|
||||
+ incari.client.modules.ModuleWorld.submit(poseStack, submitNodeCollector, levelRenderState.cameraRenderState);
|
||||
+ // Incari end
|
||||
if (renderOutline) {
|
||||
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 22:13:56 -0400
|
||||
Subject: [PATCH] modules: Let modules count the player's clicks
|
||||
|
||||
The click event (ADR 0052): each mouse press over the world, for CPS and Keystrokes.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/MouseHandler.java b/src/main/java/net/minecraft/client/MouseHandler.java
|
||||
index 2fd7b4bb27d63fd16221421c8844086e022eb51f..70d5065ad0b0ddc3eb2af6ab991601a56f1be4c7 100644
|
||||
--- a/src/main/java/net/minecraft/client/MouseHandler.java
|
||||
+++ b/src/main/java/net/minecraft/client/MouseHandler.java
|
||||
@@ -140,2 +140,5 @@
|
||||
if (pressed) {
|
||||
+ // Incari start: modules count clicks (CPS)
|
||||
+ incari.client.modules.ModuleInput.click(rawButtonInfo.button());
|
||||
+ // Incari end
|
||||
KeyMapping.click(mouseKey);
|
||||
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 22:13:56 -0400
|
||||
Subject: [PATCH] modules: Let modules see how far a hit reached
|
||||
|
||||
The attack event (ADR 0052): the distance from the player's eyes to where the crosshair met the target, for Reach Display.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
index 651c962414c02675b99bab4d818162ded371391f..9cfadb59ace9e77fd7f0de50dda0aa230cada850 100644
|
||||
--- a/src/main/java/net/minecraft/client/Minecraft.java
|
||||
+++ b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
@@ -1719,2 +1719,5 @@
|
||||
this.gameMode.attack(this.player, ((EntityHitResult)this.hitResult).getEntity());
|
||||
+ // Incari start: modules see the hit's reach (Reach Display)
|
||||
+ incari.client.modules.ModuleInput.attacked(this.player, this.hitResult);
|
||||
+ // Incari end
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 22:39:00 -0400
|
||||
Subject: [PATCH] modules: Let a module draw the crosshair
|
||||
|
||||
The crosshair event (ADR 0053): where the game draws its crosshair, a module may draw its own instead (Crosshair Editor).
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Hud.java b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
index e3928abcbe1848252d31c04af0818ec3ab5e8a98..5df4bb155b3435bd21d7060af60aecee9323cd3c 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
@@ -461,2 +461,5 @@
|
||||
int size = 15;
|
||||
+ // Incari start: a module may draw the crosshair (Crosshair Editor)
|
||||
+ if (!incari.client.modules.ModuleHud.crosshair(graphics))
|
||||
+ // Incari end
|
||||
graphics.blitSprite(RenderPipelines.CROSSHAIR, CROSSHAIR_SPRITE, (graphics.guiWidth() - 15) / 2, (graphics.guiHeight() - 15) / 2, 15, 15);
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 22:39:00 -0400
|
||||
Subject: [PATCH] modules: Let a module turn the camera without the player
|
||||
|
||||
The turn and camera events (ADR 0053): the mouse's turns may be kept from the player and the camera's angles changed (Freelook).
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Camera.java b/src/main/java/net/minecraft/client/Camera.java
|
||||
index de5172d8ef4c63e62590fab82cd5154b436e8574..76eea5796c84d07a2af7d7ca3b0ef35694b457f8 100644
|
||||
--- a/src/main/java/net/minecraft/client/Camera.java
|
||||
+++ b/src/main/java/net/minecraft/client/Camera.java
|
||||
@@ -270,2 +270,5 @@
|
||||
this.detached = !this.minecraft.options.getCameraType().isFirstPerson();
|
||||
+ // Incari start: a module may turn the camera without the player (Freelook)
|
||||
+ if (incari.client.modules.ModuleCamera.camera(this.yRot, this.xRot)) this.setRotation(incari.client.modules.ModuleCamera.yaw(), incari.client.modules.ModuleCamera.pitch());
|
||||
+ // Incari end
|
||||
if (this.detached) {
|
||||
diff --git a/src/main/java/net/minecraft/client/MouseHandler.java b/src/main/java/net/minecraft/client/MouseHandler.java
|
||||
index 70d5065ad0b0ddc3eb2af6ab991601a56f1be4c7..7a6a3a2036fd9d1e662d860daaa9e43fcb20e8d8 100644
|
||||
--- a/src/main/java/net/minecraft/client/MouseHandler.java
|
||||
+++ b/src/main/java/net/minecraft/client/MouseHandler.java
|
||||
@@ -345,2 +345,5 @@
|
||||
this.minecraft.getTutorial().onMouse(xo, yo);
|
||||
+ // Incari start: a module may turn the camera instead of the player (Freelook)
|
||||
+ if (incari.client.modules.ModuleCamera.turn(xo, yo)) return;
|
||||
+ // Incari end
|
||||
if (this.minecraft.player != null) {
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 22:39:00 -0400
|
||||
Subject: [PATCH] modules: Let modules change how held items are drawn
|
||||
|
||||
The held item event (ADR 0053): a shield drawn lower (Low Shield); 1.7's item positions, rod, sword-blocking pose and block-hit swing (1.7 Animations).
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/FirstPersonHandsAndItemsRenderer.java b/src/main/java/net/minecraft/client/renderer/FirstPersonHandsAndItemsRenderer.java
|
||||
index 9ba3908d582f8e95c5c765bbe62b1e6e8f34dead..760daeb7de43b9e9644b073d659646afee2e8a5e 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/FirstPersonHandsAndItemsRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/FirstPersonHandsAndItemsRenderer.java
|
||||
@@ -407,2 +407,5 @@
|
||||
poseStack.pushPose();
|
||||
+ // Incari start: modules say how the item is drawn (Low Shield, 1.7 Animations)
|
||||
+ incari.client.modules.ModuleHands.begin(poseStack, isMainHand, itemStack, avatarRenderState.isUsingItem && avatarRenderState.useItemHand == hand);
|
||||
+ // Incari end
|
||||
if (itemStack.isEmpty()) {
|
||||
@@ -461,2 +464,5 @@
|
||||
}
|
||||
+ // Incari start: 1.7's block-hit, the arm swinging while the item's in use
|
||||
+ if (incari.client.modules.ModuleHands.swingWhileUsing()) this.applyItemArmAttackTransform(poseStack, arm, attack);
|
||||
+ // Incari end
|
||||
|
||||
@@ -472,3 +478,5 @@
|
||||
case BLOCK:
|
||||
- if (!(itemStack.getItem() instanceof ShieldItem)) {
|
||||
+ // Incari start: 1.7's sword-blocking pose (1.7 Animations)
|
||||
+ if (!(itemStack.getItem() instanceof ShieldItem) && !incari.client.modules.ModuleHands.legacyBlock(poseStack, invert)) {
|
||||
+ // Incari end
|
||||
poseStack.translate(invert * -0.14142136F, 0.08F, 0.14142136F);
|
||||
@@ -560,2 +568,5 @@
|
||||
|
||||
+ // Incari start: 1.7's held items (1.7 Animations)
|
||||
+ incari.client.modules.ModuleHands.beforeItem(poseStack, itemStack, invert);
|
||||
+ // Incari end
|
||||
(isMainHand ? state.mainHandRenderState : state.offHandRenderState)
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 22:39:00 -0400
|
||||
Subject: [PATCH] modules: Let a module show other weather and time on the
|
||||
client
|
||||
|
||||
Weather Changer (ADR 0053): the client level's rain and thunder, the snow that falls and the day clock's time as a module shows them; the server's own untouched.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/ClientClockManager.java b/src/main/java/net/minecraft/client/ClientClockManager.java
|
||||
index f2b1eb3ee1002df516f5c389ac7eef51d82653ec..901e84448700ec1c172d0c07ca19f38db852e069 100644
|
||||
--- a/src/main/java/net/minecraft/client/ClientClockManager.java
|
||||
+++ b/src/main/java/net/minecraft/client/ClientClockManager.java
|
||||
@@ -48,3 +48,5 @@
|
||||
public long totalTicks() {
|
||||
- return this.totalTicks;
|
||||
+ // Incari start: a module may hold the time of day on the client (Weather Changer)
|
||||
+ return incari.client.modules.ModuleSky.clockTicks(this, this.totalTicks);
|
||||
+ // Incari end
|
||||
}
|
||||
@@ -53,3 +55,5 @@
|
||||
public float partialTick() {
|
||||
- return this.partialTick;
|
||||
+ // Incari start
|
||||
+ return incari.client.modules.ModuleSky.clockPartialTick(this, this.partialTick);
|
||||
+ // Incari end
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/WeatherEffectRenderer.java b/src/main/java/net/minecraft/client/renderer/WeatherEffectRenderer.java
|
||||
index 96faef34876d4a3b9359d9daf913c8b2c75b5705..0c0958c3947ffe8d711e2d11bc45a2bf3c75de9f 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/WeatherEffectRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/WeatherEffectRenderer.java
|
||||
@@ -83,3 +83,5 @@
|
||||
if (y1 - y0 != 0) {
|
||||
- Biome.Precipitation precipitation = level.getPrecipitationAt(mutablePos.set(x, cameraBlockY, z));
|
||||
+ // Incari start: a module may show snow wherever it falls (Weather Changer)
|
||||
+ Biome.Precipitation precipitation = incari.client.modules.ModuleSky.precipitation(level.getPrecipitationAt(mutablePos.set(x, cameraBlockY, z)));
|
||||
+ // Incari end
|
||||
if (precipitation != Biome.Precipitation.NONE) {
|
||||
diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java
|
||||
index 8c4eac77220f01d20598603aea64ec81daaa546a..f09dbba50d2c801c31166c712a289a0a702225ff 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/Level.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
||||
@@ -928,3 +928,5 @@
|
||||
public float getThunderLevel(final float a) {
|
||||
- return Mth.lerp(a, this.oThunderLevel, this.thunderLevel) * this.getRainLevel(a);
|
||||
+ // Incari start: a module may show other weather on the client (Weather Changer)
|
||||
+ return incari.client.modules.ModuleSky.thunder(this, Mth.lerp(a, this.oThunderLevel, this.thunderLevel) * this.getRainLevel(a));
|
||||
+ // Incari end
|
||||
}
|
||||
@@ -938,3 +940,5 @@
|
||||
public float getRainLevel(final float a) {
|
||||
- return Mth.lerp(a, this.oRainLevel, this.rainLevel);
|
||||
+ // Incari start: a module may show other weather on the client (Weather Changer)
|
||||
+ return incari.client.modules.ModuleSky.rain(this, Mth.lerp(a, this.oRainLevel, this.rainLevel));
|
||||
+ // Incari end
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 22:55:29 -0400
|
||||
Subject: [PATCH] modules: Let modules hear of a saved screenshot
|
||||
|
||||
The screenshot event (ADR 0054): once F2's picture is written, modules hear of it on the game thread (Screenshot Manager copies it).
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Screenshot.java b/src/main/java/net/minecraft/client/Screenshot.java
|
||||
index c392cb42b2d90a67475973ebb9bf42445d4a45fc..28bef63397b1b6e82e5e37b74548c392cbdcaf95 100644
|
||||
--- a/src/main/java/net/minecraft/client/Screenshot.java
|
||||
+++ b/src/main/java/net/minecraft/client/Screenshot.java
|
||||
@@ -57,2 +57,5 @@
|
||||
image.writeToFile(file);
|
||||
+ // Incari start: modules hear of it (Screenshot Manager)
|
||||
+ incari.client.modules.ModuleScreenshots.saved(file);
|
||||
+ // Incari end
|
||||
Component component = Component.literal(file.getName())
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 22:55:29 -0400
|
||||
Subject: [PATCH] modules: Let a module show a container's contents as a grid
|
||||
|
||||
Shulker Tooltips (ADR 0054): the tooltip's image a grid of the items inside, drawn by Incari, and the game's lines of names left out meanwhile.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/inventory/tooltip/ClientTooltipComponent.java b/src/main/java/net/minecraft/client/gui/screens/inventory/tooltip/ClientTooltipComponent.java
|
||||
index eb7c7f8ae87ded37fb49c226080ad74ef8bb09c4..2a59178cb02222e41ac080827b0ae3bd9952cd02 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/inventory/tooltip/ClientTooltipComponent.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/inventory/tooltip/ClientTooltipComponent.java
|
||||
@@ -17,2 +17,5 @@
|
||||
case ClientActivePlayersTooltip.ActivePlayersTooltip activePlayersTooltip -> new ClientActivePlayersTooltip(activePlayersTooltip);
|
||||
+ // Incari start: a container's contents as a grid (Shulker Tooltips)
|
||||
+ case incari.client.modules.ModuleTooltips.Preview preview -> incari.client.modules.ModuleTooltips.client(preview);
|
||||
+ // Incari end
|
||||
default -> throw new IllegalArgumentException("Unknown TooltipComponent");
|
||||
diff --git a/src/main/java/net/minecraft/world/item/ItemStack.java b/src/main/java/net/minecraft/world/item/ItemStack.java
|
||||
index f7be0a48eec5003a6ab6b84cc5d80d16b53c6f17..2ab91bbaf5e9e86852013c13d86b1c9734275f43 100644
|
||||
--- a/src/main/java/net/minecraft/world/item/ItemStack.java
|
||||
+++ b/src/main/java/net/minecraft/world/item/ItemStack.java
|
||||
@@ -215,3 +215,5 @@
|
||||
public Optional<TooltipComponent> getTooltipImage() {
|
||||
- return this.getItem().getTooltipImage(this);
|
||||
+ // Incari start: a module may show a container's contents as a grid (Shulker Tooltips)
|
||||
+ return incari.client.modules.ModuleTooltips.image(this, this.getItem().getTooltipImage(this));
|
||||
+ // Incari end
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/world/item/component/ItemContainerContents.java b/src/main/java/net/minecraft/world/item/component/ItemContainerContents.java
|
||||
index ef76a02b1394de08db4e79ba661eac02b3dcdd22..2afca759b6644c9c2e25b878f0c4d175027f88fa 100644
|
||||
--- a/src/main/java/net/minecraft/world/item/component/ItemContainerContents.java
|
||||
+++ b/src/main/java/net/minecraft/world/item/component/ItemContainerContents.java
|
||||
@@ -177,2 +177,5 @@
|
||||
) {
|
||||
+ // Incari start: not while a module shows the contents as a grid (Shulker Tooltips)
|
||||
+ if (incari.client.modules.ModuleTooltips.hidesLines(this)) return;
|
||||
+ // Incari end
|
||||
int lineCount = 0;
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Mon, 12 Oct 2026 19:25:17 -0400
|
||||
Subject: [PATCH] modules: Let Block Outline color, widen and fill the block
|
||||
outline
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/LevelRenderer.java b/src/main/java/net/minecraft/client/renderer/LevelRenderer.java
|
||||
index 854128f55d3b27558da38506f73f8fe4181f0bae..3f148014f90f19d3edc24a713b4ce0bd8c320e72 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/LevelRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/LevelRenderer.java
|
||||
@@ -1091,2 +1091,3 @@
|
||||
int outlineColor = state.highContrast() ? -11010079 : ARGB.black(102);
|
||||
+ outlineColor = incari.client.modules.ModuleEffects.outlineColor(outlineColor, state.highContrast(), poseStack, submitNodeCollector, state.shape()); // Incari: Block Outline
|
||||
RenderType blockOutlineRenderType;
|
||||
@@ -1106,3 +1107,3 @@
|
||||
outlineColor,
|
||||
- this.gameRenderer.gameRenderState().windowRenderState.appropriateLineWidth,
|
||||
+ incari.client.modules.ModuleEffects.outlineWidth(this.gameRenderer.gameRenderState().windowRenderState.appropriateLineWidth), // Incari: Block Outline
|
||||
state.isTranslucent()
|
||||
@@ -0,0 +1,14 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Mon, 12 Oct 2026 19:25:17 -0400
|
||||
Subject: [PATCH] modules: Let Hit Color repaint the hurt tint
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/texture/OverlayTexture.java b/src/main/java/net/minecraft/client/renderer/texture/OverlayTexture.java
|
||||
index cb6ca2583996afb935c2e423c136da67da349ed6..b73823f6fe6a24675688cda875662894c6a76d29 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/texture/OverlayTexture.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/texture/OverlayTexture.java
|
||||
@@ -29,2 +29,3 @@
|
||||
this.texture.upload();
|
||||
+ incari.client.modules.ModuleEffects.overlay(this.texture); // Incari: Hit Color
|
||||
}
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 13 Oct 2026 18:45:32 -0400
|
||||
Subject: [PATCH] modules: Show a module's weather only where weather is drawn
|
||||
and heard
|
||||
|
||||
Weather Changer (ADR 0053) changed the client level's rain and thunder
|
||||
themselves, which the game also decides by: Riptide worked only in the
|
||||
shown rain. The level's weather stays the server's; the weather renderer,
|
||||
the sky, the fog, the weather's environment attributes and the rain's
|
||||
splashes and sounds ask what's shown instead, and Snow makes no rain
|
||||
splashes or sounds.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/multiplayer/ClientLevel.java b/src/main/java/net/minecraft/client/multiplayer/ClientLevel.java
|
||||
index 0dc59b287c2c223a9dc7ea21aa97fd528b91e0a2..c458b0e6bb7bb92884d28c9668729c4ad7a297ce 100644
|
||||
--- a/src/main/java/net/minecraft/client/multiplayer/ClientLevel.java
|
||||
+++ b/src/main/java/net/minecraft/client/multiplayer/ClientLevel.java
|
||||
@@ -343,3 +343,5 @@
|
||||
int weatherRadius = this.minecraft.options.weatherRadius().get();
|
||||
- float rainLevel = this.getRainLevel(1.0F);
|
||||
+ // Incari start: a module may show other weather on the client (Weather Changer)
|
||||
+ float rainLevel = incari.client.modules.ModuleSky.shownRain(this, 1.0F);
|
||||
+ // Incari end
|
||||
if (!(rainLevel <= 0.0F)) {
|
||||
@@ -359,3 +361,5 @@
|
||||
&& heightmapPosition.getY() >= cameraPosition.getY() - 10
|
||||
- && this.getPrecipitationAt(heightmapPosition) == Biome.Precipitation.RAIN) {
|
||||
+ // Incari start: no rain's splashes and sound where a module shows snow
|
||||
+ && incari.client.modules.ModuleSky.precipitation(this.getPrecipitationAt(heightmapPosition)) == Biome.Precipitation.RAIN) {
|
||||
+ // Incari end
|
||||
rainParticlePosition = heightmapPosition.below();
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/SkyRenderer.java b/src/main/java/net/minecraft/client/renderer/SkyRenderer.java
|
||||
index ed46dffd9a26ff766b01b16d2d2e994efa339331..cd0d13e75d8476be877f635f7387159bfac8a616 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/SkyRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/SkyRenderer.java
|
||||
@@ -118,3 +118,5 @@
|
||||
state.starAngle = attributeProbe.getValue(EnvironmentAttributes.STAR_ANGLE, partialTicks) * (float) (Math.PI / 180.0);
|
||||
- state.rainBrightness = 1.0F - level.getRainLevel(partialTicks);
|
||||
+ // Incari start: a module may show other weather on the client (Weather Changer)
|
||||
+ state.rainBrightness = 1.0F - incari.client.modules.ModuleSky.shownRain(level, partialTicks);
|
||||
+ // Incari end
|
||||
state.starBrightness = attributeProbe.getValue(EnvironmentAttributes.STAR_BRIGHTNESS, partialTicks);
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/WeatherEffectRenderer.java b/src/main/java/net/minecraft/client/renderer/WeatherEffectRenderer.java
|
||||
index 0c0958c3947ffe8d711e2d11bc45a2bf3c75de9f..02369cb4b35328793cf930dbd5cf2d5c0d329bad 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/WeatherEffectRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/WeatherEffectRenderer.java
|
||||
@@ -68,3 +68,5 @@
|
||||
public void extractRenderState(final ClientLevel level, final float partialTicks, final Vec3 cameraPos, final WeatherRenderState renderState) {
|
||||
- renderState.intensity = level.getRainLevel(partialTicks);
|
||||
+ // Incari start: a module may show other weather on the client (Weather Changer)
|
||||
+ renderState.intensity = incari.client.modules.ModuleSky.shownRain(level, partialTicks);
|
||||
+ // Incari end
|
||||
if (!(renderState.intensity <= 0.0F)) {
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/fog/environment/AtmosphericFogEnvironment.java b/src/main/java/net/minecraft/client/renderer/fog/environment/AtmosphericFogEnvironment.java
|
||||
index 61c173d7f9c25543d3e89c1e1eb00436c531d83c..fd35b798177c4cc891d372292a11814ab0a678ea 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/fog/environment/AtmosphericFogEnvironment.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/fog/environment/AtmosphericFogEnvironment.java
|
||||
@@ -44,3 +44,5 @@
|
||||
Vector3fc skyColor = camera.attributeProbe().getValue(EnvironmentAttributes.SKY_COLOR, partialTicks);
|
||||
- skyColor = applyWeatherDarken(skyColor, level.getRainLevel(partialTicks), level.getThunderLevel(partialTicks));
|
||||
+ // Incari start: a module may show other weather on the client (Weather Changer)
|
||||
+ skyColor = applyWeatherDarken(skyColor, incari.client.modules.ModuleSky.shownRain(level, partialTicks), incari.client.modules.ModuleSky.shownThunder(level, partialTicks));
|
||||
+ // Incari end
|
||||
float skyFogEnd = Math.min(camera.attributeProbe().getValue(EnvironmentAttributes.SKY_FOG_END_DISTANCE, partialTicks) / 16.0F, renderDistance);
|
||||
@@ -94,3 +96,5 @@
|
||||
float skyLightLevelMultiplier = Mth.clamp((level.getLightEngine().getLayerListener(LightLayer.SKY).getLightValue(blockPos) - 8.0F) / 7.0F, 0.0F, 1.0F);
|
||||
- float targetRainFogMultiplier = level.getRainLevel(partialTicks) * skyLightLevelMultiplier * (rainsInBiome ? 1.0F : 0.5F);
|
||||
+ // Incari start: a module may show other weather on the client (Weather Changer)
|
||||
+ float targetRainFogMultiplier = incari.client.modules.ModuleSky.shownRain(level, partialTicks) * skyLightLevelMultiplier * (rainsInBiome ? 1.0F : 0.5F);
|
||||
+ // Incari end
|
||||
this.rainFogMultiplier = this.rainFogMultiplier + (targetRainFogMultiplier - this.rainFogMultiplier) * deltaTicks * 0.2F;
|
||||
diff --git a/src/main/java/net/minecraft/world/attribute/WeatherAttributes.java b/src/main/java/net/minecraft/world/attribute/WeatherAttributes.java
|
||||
index 6d207a6359cd33ed0807087d98fdb0393a7b70f3..6c41ec0f8fc8ff907d6278c074b09c039fbace19 100644
|
||||
--- a/src/main/java/net/minecraft/world/attribute/WeatherAttributes.java
|
||||
+++ b/src/main/java/net/minecraft/world/attribute/WeatherAttributes.java
|
||||
@@ -75,3 +75,5 @@
|
||||
public float rainLevel() {
|
||||
- return level.getRainLevel(1.0F);
|
||||
+ // Incari start: a module may show other weather on the client (Weather Changer)
|
||||
+ return incari.client.modules.ModuleSky.shownRain(level, 1.0F);
|
||||
+ // Incari end
|
||||
}
|
||||
@@ -80,3 +82,5 @@
|
||||
public float thunderLevel() {
|
||||
- return level.getThunderLevel(1.0F);
|
||||
+ // Incari start
|
||||
+ return incari.client.modules.ModuleSky.shownThunder(level, 1.0F);
|
||||
+ // Incari end
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java
|
||||
index f09dbba50d2c801c31166c712a289a0a702225ff..8c4eac77220f01d20598603aea64ec81daaa546a 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/Level.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
||||
@@ -928,5 +928,3 @@
|
||||
public float getThunderLevel(final float a) {
|
||||
- // Incari start: a module may show other weather on the client (Weather Changer)
|
||||
- return incari.client.modules.ModuleSky.thunder(this, Mth.lerp(a, this.oThunderLevel, this.thunderLevel) * this.getRainLevel(a));
|
||||
- // Incari end
|
||||
+ return Mth.lerp(a, this.oThunderLevel, this.thunderLevel) * this.getRainLevel(a);
|
||||
}
|
||||
@@ -940,5 +938,3 @@
|
||||
public float getRainLevel(final float a) {
|
||||
- // Incari start: a module may show other weather on the client (Weather Changer)
|
||||
- return incari.client.modules.ModuleSky.rain(this, Mth.lerp(a, this.oRainLevel, this.rainLevel));
|
||||
- // Incari end
|
||||
+ return Mth.lerp(a, this.oRainLevel, this.rainLevel);
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 13 Oct 2026 18:48:35 -0400
|
||||
Subject: [PATCH] modules: Delete a world's waypoints and explored map with it
|
||||
|
||||
Incari keeps them by the world's folder name, which a new world can take
|
||||
again.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/level/storage/LevelStorageSource.java b/src/main/java/net/minecraft/world/level/storage/LevelStorageSource.java
|
||||
index 261e6f5d75dd24b61eb26e2a42ca20f36f392946..a713677fe06068cc6e82e5039970e9fc869938e9 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/storage/LevelStorageSource.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/storage/LevelStorageSource.java
|
||||
@@ -662,2 +662,5 @@
|
||||
}
|
||||
+ // Incari start: the world's waypoints and explored map go with it
|
||||
+ incari.client.modules.IncariModules.worldDeleted(this.levelId);
|
||||
+ // Incari end
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 13 Oct 2026 18:50:36 -0400
|
||||
Subject: [PATCH] modules: Hand the world's projection, bobbing and all, to the
|
||||
waypoint tags
|
||||
|
||||
The tags were projected with the camera's projection alone, while the world
|
||||
is drawn with view bobbing, the hurt tilt and nausea's warp on top.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/GameRenderer.java b/src/main/java/net/minecraft/client/renderer/GameRenderer.java
|
||||
index debb1be334cf7d1a15eebacd64d726b894156b56..25f807f27e314f66915b84ceacc8497be197254d 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/GameRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/GameRenderer.java
|
||||
@@ -673,2 +673,5 @@
|
||||
|
||||
+ // Incari start: waypoint tags follow the world's bobbing, tilt and warp (ADR 0051)
|
||||
+ incari.client.modules.ModuleHud.worldProjection(cameraState.projectionMatrix, projectionMatrix);
|
||||
+ // Incari end
|
||||
RenderSystem.setProjectionMatrix(this.levelProjectionMatrixBuffer.getBuffer(projectionMatrix), ProjectionType.PERSPECTIVE);
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 13 Oct 2026 18:57:27 -0400
|
||||
Subject: [PATCH] modules: Hand 1.7 Animations the held item's own display
|
||||
transform
|
||||
|
||||
It undid a fixed handheld transform, so items whose models are held
|
||||
otherwise (maces, spears, a resource pack's swords) were misplaced.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/FirstPersonHandsAndItemsRenderer.java b/src/main/java/net/minecraft/client/renderer/FirstPersonHandsAndItemsRenderer.java
|
||||
index 760daeb7de43b9e9644b073d659646afee2e8a5e..19c8e8e4e76f5985756f2543b94265fef16d0e21 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/FirstPersonHandsAndItemsRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/FirstPersonHandsAndItemsRenderer.java
|
||||
@@ -569,3 +569,3 @@
|
||||
// Incari start: 1.7's held items (1.7 Animations)
|
||||
- incari.client.modules.ModuleHands.beforeItem(poseStack, itemStack, invert);
|
||||
+ incari.client.modules.ModuleHands.beforeItem(poseStack, itemStack, invert, (isMainHand ? state.mainHandRenderState : state.offHandRenderState).incariTransform());
|
||||
// Incari end
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/item/ItemStackRenderState.java b/src/main/java/net/minecraft/client/renderer/item/ItemStackRenderState.java
|
||||
index 0daea1420170408eeb2486cf0b31564e1afdec53..b00f8330a1763e9e5247499e490b29935ed9b8a9 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/item/ItemStackRenderState.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/item/ItemStackRenderState.java
|
||||
@@ -61,2 +61,8 @@
|
||||
|
||||
+ // Incari start: 1.7 Animations undoes the held item's own display transform
|
||||
+ public ItemTransform incariTransform() {
|
||||
+ return this.activeLayerCount == 0 ? ItemTransform.NO_TRANSFORM : this.layers[0].itemTransform;
|
||||
+ }
|
||||
+ // Incari end
|
||||
+
|
||||
public void setAnimated() {
|
||||
@@ -0,0 +1,18 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 13 Oct 2026 18:59:48 -0400
|
||||
Subject: [PATCH] modules: Let modules see a spear's stab
|
||||
|
||||
A piercing weapon's attack returned before the attack hook, so Hit & Kill
|
||||
Effects and Reach Display never saw it.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
index ed622c7ad27f79afb988acf237ccfb8298fc10f7..a349a50049e75179aa64e528553d4e6dcdf3302d 100644
|
||||
--- a/src/main/java/net/minecraft/client/Minecraft.java
|
||||
+++ b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
@@ -1708,2 +1708,5 @@
|
||||
this.gameMode.piercingAttack(attackAnimation, piercingWeapon);
|
||||
+ // Incari start: modules see a spear's stab too (Hit & Kill Effects, Reach Display)
|
||||
+ incari.client.modules.ModuleInput.stabbed(this.player, this.hitResult);
|
||||
+ // Incari end
|
||||
return true;
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 13 Oct 2026 18:40:17 -0400
|
||||
Subject: [PATCH] modules: A module keybind waiting for a key gets the game's
|
||||
own keys
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/KeyboardHandler.java b/src/main/java/net/minecraft/client/KeyboardHandler.java
|
||||
index 57844a307564c1b77848169641f93205ff201725..956f6bde0ef67489896c5b30f1fb8bcd772de6f0 100644
|
||||
--- a/src/main/java/net/minecraft/client/KeyboardHandler.java
|
||||
+++ b/src/main/java/net/minecraft/client/KeyboardHandler.java
|
||||
@@ -470,2 +470,5 @@
|
||||
|| screen instanceof KeyBindsScreen keyBindsScreen && keyBindsScreen.lastKeySelection > Util.getMillis() - 20L
|
||||
+ // Incari start: a module keybind waiting for a key gets the game's own keys too (F2, F11)
|
||||
+ || incari.client.modules.IncariModules.capturingKey(screen)
|
||||
+ // Incari end
|
||||
|| !this.minecraft.handleGlobalKeyPress(InputConstants.getKey(event), event.hasControlDownWithQuirk())) {
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Wed, 14 Oct 2026 08:07:03 -0400
|
||||
Subject: [PATCH] modules: The minimap redraws a chunk only when the game marks
|
||||
it changed
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/extract/LevelExtractor.java b/src/main/java/net/minecraft/client/renderer/extract/LevelExtractor.java
|
||||
index 1f49f9350d45dacf189177e662dcc633c481134f..624df09ad217a6fc09ee956a9c926700b2d9371a 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/extract/LevelExtractor.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/extract/LevelExtractor.java
|
||||
@@ -597,2 +597,3 @@
|
||||
incari.client.particle.ParticleLight.changed(); // Incari: particle light kept until a block or light changes (ADR 0031)
|
||||
+ incari.client.modules.MapTerrain.sectionChanged(sectionX, sectionZ); // Incari: the minimap redraws only changed chunks
|
||||
this.sectionUpdateTracker.setDirty(sectionX, sectionY, sectionZ, playerChanged);
|
||||
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Thu, 15 Oct 2026 20:25:12 -0400
|
||||
Subject: [PATCH] modules: Let a module narrow the view
|
||||
|
||||
Zoom holds the world's field of view at a share of the game's; the hand and the HUD keep theirs.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Camera.java b/src/main/java/net/minecraft/client/Camera.java
|
||||
index 76eea5796c84d07a2af7d7ca3b0ef35694b457f8..795241e39fe0eb45bcd2f92f39d2f74bbce198ac 100644
|
||||
--- a/src/main/java/net/minecraft/client/Camera.java
|
||||
+++ b/src/main/java/net/minecraft/client/Camera.java
|
||||
@@ -227,2 +227,5 @@
|
||||
float fov = this.minecraft.options.fov().get().intValue() * Mth.lerp(partialTicks, this.oldFovModifier, this.fovModifier);
|
||||
+ // Incari start: a module may narrow the view (Zoom)
|
||||
+ fov = incari.client.modules.ModuleCamera.fov(fov);
|
||||
+ // Incari end
|
||||
return this.modifyFovBasedOnDeathOrFluid(partialTicks, fov);
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Thu, 15 Oct 2026 20:25:12 -0400
|
||||
Subject: [PATCH] modules: Let a module show saturation on the hunger bar
|
||||
|
||||
Saturation outlines each saturated shank over the game's.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Hud.java b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
index 5df4bb155b3435bd21d7060af60aecee9323cd3c..05dcf5d0fd23b85b84eeaf4449277dc288d0f885 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
@@ -1026,2 +1026,5 @@
|
||||
}
|
||||
+ // Incari start: a module may show saturation on the bar (Saturation)
|
||||
+ incari.client.modules.ModuleHunger.shank(graphics, player, i, xo, yo, half, full);
|
||||
+ // Incari end
|
||||
}
|
||||
Reference in New Issue
Block a user