From 64fb45d74dd1e52b4d707f9c51d0db040dc357cf Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sun, 5 Apr 2026 17:18:32 -0500 Subject: [PATCH] Fix access wideners --- .../1_26_1.distanthorizons.accesswidener | 56 +++++++++++++++++++ versionProperties/1.21.11.properties | 2 +- versionProperties/1.26.1.properties | 2 +- 3 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 common/src/main/resources/1_26_1.distanthorizons.accesswidener diff --git a/common/src/main/resources/1_26_1.distanthorizons.accesswidener b/common/src/main/resources/1_26_1.distanthorizons.accesswidener new file mode 100644 index 000000000..ffde71cec --- /dev/null +++ b/common/src/main/resources/1_26_1.distanthorizons.accesswidener @@ -0,0 +1,56 @@ +accessWidener v1 official + +# used when determining where to save files to +accessible field net/minecraft/world/level/storage/SavedDataStorage dataFolder Ljava/nio/file/Path; +# used to help determine what folder a clientLevel is +accessible field net/minecraft/world/level/biome/BiomeManager biomeZoomSeed J + +# used when rendering +accessible method net/minecraft/client/renderer/GameRenderer getFov (Lnet/minecraft/client/Camera;FZ)F +accessible field net/minecraft/client/Minecraft deltaTracker Lnet/minecraft/client/DeltaTracker$Timer; +accessible field net/minecraft/client/renderer/LevelRenderer level Lnet/minecraft/client/multiplayer/ClientLevel; + + +# used for grabbing vanilla rendered chunks +accessible field net/minecraft/client/renderer/LevelRenderer visibleSections Lit/unimi/dsi/fastutil/objects/ObjectArrayList; + +# world generation +accessible field net/minecraft/world/level/chunk/LevelChunk loaded Z +accessible field net/minecraft/world/level/lighting/LightEngine storage Lnet/minecraft/world/level/lighting/LayerLightSectionStorage; +accessible method net/minecraft/world/level/lighting/LayerLightSectionStorage lightOnInSection (J)Z +accessible field net/minecraft/server/level/ServerChunkCache distanceManager Lnet/minecraft/server/level/DistanceManager; +accessible method net/minecraft/server/level/ChunkMap getUpdatingChunkIfPresent (J)Lnet/minecraft/server/level/ChunkHolder; +accessible method net/minecraft/server/level/ChunkMap tick (Ljava/util/function/BooleanSupplier;)V +accessible field net/minecraft/server/level/ServerLevel entityManager Lnet/minecraft/world/level/entity/PersistentEntitySectionManager; +accessible field net/minecraft/server/level/ChunkMap mainThreadExecutor Lnet/minecraft/util/thread/BlockableEventLoop; + +# getting existing chunks outside the main thread +accessible method net/minecraft/server/level/ChunkMap getVisibleChunkIfPresent (J)Lnet/minecraft/server/level/ChunkHolder; + +# lod generation from save file +accessible field net/minecraft/world/level/chunk/storage/SimpleRegionStorage worker Lnet/minecraft/world/level/chunk/storage/IOWorker; +accessible field net/minecraft/world/level/chunk/storage/IOWorker storage Lnet/minecraft/world/level/chunk/storage/RegionFileStorage; +accessible field net/minecraft/world/level/chunk/storage/RegionFileStorage regionCache Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap; +accessible field net/minecraft/world/level/chunk/storage/RegionFileStorage folder Ljava/nio/file/Path; + +# grabbing textures +accessible class net/minecraft/client/renderer/texture/SpriteContents$AnimatedTexture +accessible method net/minecraft/client/renderer/texture/SpriteContents$AnimatedTexture getFrameX (I)I +accessible method net/minecraft/client/renderer/texture/SpriteContents$AnimatedTexture getFrameY (I)I +accessible field net/minecraft/client/renderer/texture/SpriteContents animatedTexture Lnet/minecraft/client/renderer/texture/SpriteContents$AnimatedTexture; +accessible field net/minecraft/client/renderer/texture/SpriteContents originalImage Lcom/mojang/blaze3d/platform/NativeImage; + +# UI stuff +accessible field net/minecraft/client/gui/components/AbstractButton SPRITES Lnet/minecraft/client/gui/components/WidgetSprites; +# Handles inserting the config button +accessible field net/minecraft/client/gui/layouts/HeaderAndFooterLayout headerFrame Lnet/minecraft/client/gui/layouts/FrameLayout; +accessible field net/minecraft/client/gui/layouts/FrameLayout children Ljava/util/List; +accessible class net/minecraft/client/gui/layouts/FrameLayout$ChildContainer +accessible field net/minecraft/client/gui/layouts/LinearLayout wrapped Lnet/minecraft/client/gui/layouts/GridLayout; +accessible method net/minecraft/client/gui/components/debug/DebugScreenEntries register (Ljava/lang/String;Lnet/minecraft/client/gui/components/debug/DebugScreenEntry;)Lnet/minecraft/resources/Identifier; + +# hacky stuff +accessible field net/minecraft/util/ThreadingDetector lock Ljava/util/concurrent/Semaphore; +mutable field net/minecraft/util/ThreadingDetector lock Ljava/util/concurrent/Semaphore; + + diff --git a/versionProperties/1.21.11.properties b/versionProperties/1.21.11.properties index b5b4c8908..5e73642ed 100644 --- a/versionProperties/1.21.11.properties +++ b/versionProperties/1.21.11.properties @@ -49,7 +49,7 @@ neoforge_version=38-beta neoforge_version_range=[*,) # NeoForge mod versions - neo_iris_version=1.10.2+1.21.11-neoforge + neo_iris_version=1.10.7+1.21.11-neoforge # (Neo)Forge mod run # 0 = Don't enable and don't run diff --git a/versionProperties/1.26.1.properties b/versionProperties/1.26.1.properties index a5587f8be..675c37ad2 100644 --- a/versionProperties/1.26.1.properties +++ b/versionProperties/1.26.1.properties @@ -3,7 +3,7 @@ java_version=25 minecraft_version=26.1 parchment_version=1.21:2024.07.28 compatible_minecraft_versions=["26.1"] -accessWidenerVersion=1_21_11 +accessWidenerVersion=1_26_1 builds_for=fabric,neoforge # forge is broken due to gradle/build script issues