Archive incari-client (client, 26.3, clean)
This commit is contained in:
+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, 29 Sep 2026 18:36:09 -0400
|
||||
Subject: [PATCH] client: List Incari's key mappings with the game's
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Options.java b/src/main/java/net/minecraft/client/Options.java
|
||||
index 788fde49f4ca324c5f5bbca470ecda26c243f971..d228919efbcf89feec9607e0605a6e93b7ffac4c 100644
|
||||
--- a/src/main/java/net/minecraft/client/Options.java
|
||||
+++ b/src/main/java/net/minecraft/client/Options.java
|
||||
@@ -801,3 +801,6 @@
|
||||
this.keyHotbarSlots,
|
||||
- this.debugKeys
|
||||
+ this.debugKeys,
|
||||
+ // Incari start: Incari's key mappings (voice chat's push to talk)
|
||||
+ incari.client.IncariKeys.all()
|
||||
+ // Incari end
|
||||
)
|
||||
@@ -0,0 +1,16 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 29 Sep 2026 18:36:09 -0400
|
||||
Subject: [PATCH] client: Run Incari's work once a tick
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
index e04f062322dd4263116352428c67399fddef2c5f..c4d07d478932b8b541be74a41cfa29cd17e86e42 100644
|
||||
--- a/src/main/java/net/minecraft/client/Minecraft.java
|
||||
+++ b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
@@ -1809,2 +1809,5 @@
|
||||
this.gui.tick();
|
||||
+ // Incari start: Incari's per-tick work (voice chat)
|
||||
+ incari.client.IncariTicks.tick(this);
|
||||
+ // Incari end
|
||||
if (this.gui.screen() != null) {
|
||||
+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, 1 Oct 2026 19:35:55 -0400
|
||||
Subject: [PATCH] client: Link Incari's credits from the Credits & Attribution
|
||||
screen
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/CreditsAndAttributionScreen.java b/src/main/java/net/minecraft/client/gui/screens/CreditsAndAttributionScreen.java
|
||||
index 5be620b821536bdd5e50e866ef1bab338cf0ff8f..aa6c4c7677333e4cae4ff1b69500ab05c0b1c5df 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/CreditsAndAttributionScreen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/CreditsAndAttributionScreen.java
|
||||
@@ -32,2 +32,5 @@
|
||||
content.addChild(Button.builder(LICENSES_BUTTON, ConfirmLinkScreen.confirmLink(this, CommonLinks.LICENSES)).width(210).build());
|
||||
+ // Incari start: Incari's credits and the licenses of what it adds
|
||||
+ content.addChild(incari.client.credits.CreditsScreen.button(this, 210));
|
||||
+ // Incari end
|
||||
this.layout.addToFooter(Button.builder(CommonComponents.GUI_DONE, button -> this.onClose()).width(200).build());
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Thu, 1 Oct 2026 21:55:19 -0400
|
||||
Subject: [PATCH] client: Play under the name chosen in Edit Profile
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
index 0946d05bd9b4fa2993ffcc49081fc5f000b35434..076faaba9b350141a7596687721b21ab638d5995 100644
|
||||
--- a/src/main/java/net/minecraft/client/Minecraft.java
|
||||
+++ b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
@@ -2626,3 +2626,5 @@
|
||||
public User getUser() {
|
||||
- return this.user;
|
||||
+ // Incari start: offline, the player plays under the name they chose in Edit Profile
|
||||
+ return incari.client.profile.PlayerName.user(this.user, this.gameDirectory);
|
||||
+ // Incari end
|
||||
}
|
||||
@@ -2635,3 +2637,5 @@
|
||||
ProfileResult profileResult = this.profileFuture.join();
|
||||
- return profileResult != null ? profileResult.profile() : new GameProfile(this.user.getProfileId(), this.user.getName());
|
||||
+ // Incari start: offline, the player plays under the name they chose in Edit Profile
|
||||
+ return profileResult != null ? profileResult.profile() : new GameProfile(this.getUser().getProfileId(), this.getUser().getName());
|
||||
+ // Incari end
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Thu, 1 Oct 2026 21:55:19 -0400
|
||||
Subject: [PATCH] client: Open Edit Profile at start-up
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Gui.java b/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
index 1aee24f0c727e621ca0290613db514d05b2e6dfe..3e689e6a2a8cc8d5d6d9736bbe2cedd6f115f9d7 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
@@ -420,2 +420,5 @@
|
||||
|
||||
+ // Incari start: Edit Profile before the title screen, as Eagler clients open
|
||||
+ incari.client.profile.ProfileScreen.addAtStartup(screens);
|
||||
+ // Incari end
|
||||
return onboardingScreenAdded;
|
||||
@@ -0,0 +1,16 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Thu, 1 Oct 2026 21:55:19 -0400
|
||||
Subject: [PATCH] client: Link Edit Profile from the title screen
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java b/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java
|
||||
index 80d9e3e19ccfc348f8f073ece4fb4a678d8440ac..dad2ab9b13f8b43cc938fbb88efbf80f355c326e 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java
|
||||
@@ -160,2 +160,5 @@
|
||||
);
|
||||
+ // Incari start: a link to Edit Profile (the name and skin)
|
||||
+ this.addRenderableWidget(incari.client.profile.ProfileScreen.titleLink(this));
|
||||
+ // Incari end
|
||||
if (this.realmsNotificationsScreen == null) {
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 6 Oct 2026 23:28:27 -0400
|
||||
Subject: [PATCH] client: Singleplayer's server runs in a worker where the
|
||||
platform has one
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
index c5a5c4b7b7c56b6eeaa680b913bba16f05967d51..44a4026b5257eb23b588eb0c564aec9efb760760 100644
|
||||
--- a/src/main/java/net/minecraft/client/Minecraft.java
|
||||
+++ b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
@@ -1241,3 +1241,6 @@
|
||||
boolean var28 = this.pause;
|
||||
- this.pause = this.hasSingleplayerServer() && this.gui.isPausing() && !this.singleplayerServer.isPublished();
|
||||
+ this.pause = this.hasSingleplayerServer() && this.gui.isPausing() && !this.singleplayerServer.isPublished()
|
||||
+ // Incari start: a world whose server runs in a worker pauses as an integrated server's does (ADR 0039)
|
||||
+ || incari.client.singleplayer.WorkerWorlds.pauses(this);
|
||||
+ // Incari end
|
||||
if (!var28 && this.pause) {
|
||||
@@ -1619,3 +1622,6 @@
|
||||
public void pauseGame(final boolean suppressPauseMenuIfWeReallyArePausing) {
|
||||
- boolean canGameReallyBePaused = this.hasSingleplayerServer() && !this.singleplayerServer.isPublished();
|
||||
+ boolean canGameReallyBePaused = this.hasSingleplayerServer() && !this.singleplayerServer.isPublished()
|
||||
+ // Incari start: a world whose server runs in a worker can pause (ADR 0039)
|
||||
+ || incari.client.singleplayer.WorkerWorlds.running();
|
||||
+ // Incari end
|
||||
this.gui.setPauseScreen(suppressPauseMenuIfWeReallyArePausing, canGameReallyBePaused);
|
||||
@@ -2058,2 +2064,12 @@
|
||||
// Incari end
|
||||
+ // Incari start: the world's server runs in a worker where the platform has one (ADR 0039)
|
||||
+ if (incari.client.singleplayer.WorkerWorlds.load(this, levelSourceAccess, packRepository, worldStem, gameRules, newWorld)) {
|
||||
+ Connection workerConnection = incari.client.singleplayer.WorkerWorlds.takeConnection();
|
||||
+ if (workerConnection != null) {
|
||||
+ this.isLocalServer = true;
|
||||
+ this.pendingConnection = workerConnection;
|
||||
+ }
|
||||
+ return;
|
||||
+ }
|
||||
+ // Incari end
|
||||
this.disconnectWithProgressScreen();
|
||||
@@ -2201,2 +2217,6 @@
|
||||
|
||||
+ // Incari start: a world whose server runs in a worker saves and stops there (ADR 0039)
|
||||
+ incari.client.singleplayer.WorkerWorlds.stopAndWait(this);
|
||||
+ // Incari end
|
||||
+
|
||||
this.setScreenAndShow(screen);
|
||||
+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: Fri, 9 Oct 2026 21:17:45 -0400
|
||||
Subject: [PATCH] client: Show the player beside the title screen's buttons
|
||||
|
||||
The title screen's Edit Profile link in the top left corner gives way to
|
||||
the player's model, their name over their head and an Edit Profile button
|
||||
below, to the right of the main buttons (Incari's TitleProfile).
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java b/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java
|
||||
index dad2ab9b13f8b43cc938fbb88efbf80f355c326e..ee7507fe31820c1e07a621f6e2d98d8714ac6722 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java
|
||||
@@ -160,4 +160,4 @@
|
||||
);
|
||||
- // Incari start: a link to Edit Profile (the name and skin)
|
||||
- this.addRenderableWidget(incari.client.profile.ProfileScreen.titleLink(this));
|
||||
+ // Incari start: the player, beside the buttons, and Edit Profile (the name and skin)
|
||||
+ incari.client.profile.TitleProfile.add(this, this::addRenderableWidget);
|
||||
// Incari end
|
||||
@@ -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 11:56:07 -0400
|
||||
Subject: [PATCH] client: Incari's own resource pack
|
||||
|
||||
Signed-off-by: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
index d4cd82a2ee9709513a91d27b8f46c2b8a3df75bb..651c962414c02675b99bab4d818162ded371391f 100644
|
||||
--- a/src/main/java/net/minecraft/client/Minecraft.java
|
||||
+++ b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
@@ -398,3 +398,10 @@
|
||||
);
|
||||
- this.resourcePackRepository = new PackRepository(clientPackSource, this.downloadedPackSource.createRepositorySource(), directoryPacks);
|
||||
+ this.resourcePackRepository = new PackRepository(
|
||||
+ clientPackSource,
|
||||
+ this.downloadedPackSource.createRepositorySource(),
|
||||
+ directoryPacks,
|
||||
+ // Incari start: Incari's own pack (its font), always on top
|
||||
+ incari.client.ui.IncariPack.SOURCE
|
||||
+ // Incari end
|
||||
+ );
|
||||
this.vanillaPackResources = clientPackSource.getVanillaPack();
|
||||
+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 15:16:25 -0400
|
||||
Subject: [PATCH] client: The HUD editor's blurred backdrop kept between
|
||||
refreshes on Potato
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/render/GuiRenderer.java b/src/main/java/net/minecraft/client/gui/render/GuiRenderer.java
|
||||
index 0080b0292d90d51bca11e1ad8b38d82f1120bd3b..951ae51c070245bb37f121b11bec11095be2a7f3 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/render/GuiRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/render/GuiRenderer.java
|
||||
@@ -209,2 +209,5 @@
|
||||
RenderSystem.getDevice().createCommandEncoder().clearDepthTexture(mainRenderTarget.getDepthTexture(), 0.0);
|
||||
+ // Incari start: the HUD editor's backdrop, blurred a few times a second on Potato and kept between (BackdropCache)
|
||||
+ if (!incari.client.gui.BackdropCache.blur(mainRenderTarget))
|
||||
+ // Incari end
|
||||
minecraft.gameRenderer.processBlurEffect();
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/GameRenderer.java b/src/main/java/net/minecraft/client/renderer/GameRenderer.java
|
||||
index 065719768ccb489c4938eb3fe536cc5a904c14d4..debb1be334cf7d1a15eebacd64d726b894156b56 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/GameRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/GameRenderer.java
|
||||
@@ -444,2 +444,5 @@
|
||||
this.gameRenderState.shouldRenderLevel = resourcesLoaded && advanceGameTime && this.minecraft.level != null;
|
||||
+ // Incari start: between the HUD editor's backdrop refreshes on Potato, the level isn't drawn (BackdropCache)
|
||||
+ if (incari.client.gui.BackdropCache.beginFrame(this.mainRenderTarget)) this.gameRenderState.shouldRenderLevel = false;
|
||||
+ // Incari end
|
||||
float worldPartialTicks = deltaTracker.getGameTimeDeltaPartialTick(false);
|
||||
@@ -515,2 +518,5 @@
|
||||
this.renderBuffers.endFrame();
|
||||
+ // Incari start: frames that reuse the HUD editor's kept backdrop use no pooled targets; they mustn't age them out (BackdropCache)
|
||||
+ if (!incari.client.gui.BackdropCache.reusing())
|
||||
+ // Incari end
|
||||
this.resourcePool.endFrame();
|
||||
+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 22:19:08 -0400
|
||||
Subject: [PATCH] client: Report Incari's brand to servers and the F3 screen
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/ClientBrandRetriever.java b/src/main/java/net/minecraft/client/ClientBrandRetriever.java
|
||||
index 33bed39442bf679f36629abe53f4791e889ad225..3b269648ed9eb4a59800e9188d5d8a95f63e9741 100644
|
||||
--- a/src/main/java/net/minecraft/client/ClientBrandRetriever.java
|
||||
+++ b/src/main/java/net/minecraft/client/ClientBrandRetriever.java
|
||||
@@ -6,3 +6,5 @@
|
||||
public static String getClientModName() {
|
||||
- return "vanilla";
|
||||
+ // Incari start: report Incari's brand to servers and the F3 screen
|
||||
+ return "incariclient";
|
||||
+ // Incari end
|
||||
}
|
||||
Reference in New Issue
Block a user