Fixed up the build, buildsystem and the transparent lod button.
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
java_version = 17
|
||||
minecraft_version=1.19.4
|
||||
#parchment_version=2022.03.13
|
||||
parchment_version=2022.03.13
|
||||
compatible_minecraft_versions=["1.19.4"]
|
||||
|
||||
# Fabric loader
|
||||
|
||||
+10
-10
@@ -89,7 +89,7 @@ def loadProperties() {
|
||||
"1.19.1" : "1_19",
|
||||
"1.19.2" : "1_19",
|
||||
"1.19.3" : "1_19_3",
|
||||
"1.19.4" : "1_19_4"
|
||||
"1.19.4" : "1_19_3"
|
||||
]
|
||||
// Use this as sometimes multiple versions use the same access wideners
|
||||
rootProject.ext.set("acsessWidenerVersion", mcVersionToAcsessWidenerVersion.get(mcVersion))
|
||||
@@ -242,18 +242,18 @@ subprojects { p ->
|
||||
// Mojmap mappings
|
||||
officialMojangMappings()
|
||||
// Parchment mappings (it adds parameter mappings & javadoc)
|
||||
parchment("org.parchmentmc.data:parchment-1.19.3:2023.03.12@zip")
|
||||
/* Hack fix, cleans up some errors. Parchment now has more versions, but this is designed for 1.19.3 and hopefully works in 1.19.4.
|
||||
if (
|
||||
rootProject.minecraft_version != "1.19"
|
||||
&& rootProject.minecraft_version != "1.19.1"
|
||||
&& rootProject.minecraft_version != "1.19.2"
|
||||
&& rootProject.minecraft_version != "1.19.3"
|
||||
&& rootProject.minecraft_version != "1.19.1"
|
||||
&& rootProject.minecraft_version != "1.19.2"
|
||||
&& rootProject.minecraft_version != "1.19.3"
|
||||
&& rootProject.minecraft_version != "1.19.4"
|
||||
) // We are not gonna use this build script anymore so dont bother fixing this
|
||||
parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:${rootProject.parchment_version}@zip")
|
||||
else
|
||||
parchment("org.parchmentmc.data:parchment-1.18.2:${rootProject.parchment_version}@zip") // As 1.19.x or higher doesnt have parchment mappings yet, we use 1.18.2 mapping
|
||||
*/
|
||||
parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:${rootProject.parchment_version}@zip")
|
||||
else
|
||||
parchment("org.parchmentmc.data:parchment-1.18.2:${rootProject.parchment_version}@zip") // As 1.19.x or higher doesnt have parchment mappings yet, we use 1.18.2 mapping
|
||||
// Note: parchment may have later mappings at the time you are reading this, but at the time this was written, it didnt
|
||||
// Check the main branch for the new build system, with the working mappings
|
||||
}
|
||||
|
||||
//Manifold
|
||||
|
||||
+13
-13
@@ -33,18 +33,18 @@ dependencies {
|
||||
// Mojmap mappings
|
||||
officialMojangMappings()
|
||||
// Parchment mappings (it adds parameter mappings & javadoc)
|
||||
parchment("org.parchmentmc.data:parchment-1.19.3:2023.03.12@zip")
|
||||
/* Hack fix, cleans up some errors. Parchment now has more versions, but this is designed for 1.19.3 and hopefully works in 1.19.4.
|
||||
if (
|
||||
rootProject.minecraft_version != "1.19"
|
||||
&& rootProject.minecraft_version != "1.19.1"
|
||||
&& rootProject.minecraft_version != "1.19.2"
|
||||
&& rootProject.minecraft_version != "1.19.3"
|
||||
) // We are not gonna use this build script anymore so dont bother fixing this
|
||||
parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:${rootProject.parchment_version}@zip")
|
||||
else
|
||||
parchment("org.parchmentmc.data:parchment-1.18.2:${rootProject.parchment_version}@zip") // As 1.19.x or higher doesnt have parchment mappings yet, we use 1.18.2 mapping
|
||||
*/
|
||||
if (
|
||||
rootProject.minecraft_version != "1.19"
|
||||
&& rootProject.minecraft_version != "1.19.1"
|
||||
&& rootProject.minecraft_version != "1.19.2"
|
||||
&& rootProject.minecraft_version != "1.19.3"
|
||||
&& rootProject.minecraft_version != "1.19.4"
|
||||
) // We are not gonna use this build script anymore so dont bother fixing this
|
||||
parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:${rootProject.parchment_version}@zip")
|
||||
else
|
||||
parchment("org.parchmentmc.data:parchment-1.18.2:${rootProject.parchment_version}@zip") // As 1.19.x or higher doesnt have parchment mappings yet, we use 1.18.2 mapping
|
||||
// Note: parchment may have later mappings at the time you are reading this, but at the time this was written, it didnt
|
||||
// Check the main branch for the new build system, with the working mappings
|
||||
}
|
||||
|
||||
//Manifold
|
||||
@@ -223,4 +223,4 @@ sourcesJar {
|
||||
}
|
||||
|
||||
runClient.enabled = false
|
||||
runServer.enabled = false
|
||||
runServer.enabled = false
|
||||
+24
-3
@@ -48,8 +48,8 @@ public class TexturedButtonWidget extends ImageButton {
|
||||
// public TexturedButtonWidget(int x, int y, int width, int height, int u, int v, int hoveredVOffset, ResourceLocation texture, int textureWidth, int textureHeight, OnPress pressAction, OnTooltip tooltipSupplier, Component text) {
|
||||
// super(x, y, width, height, u, v, hoveredVOffset, texture, textureWidth, textureHeight, pressAction, tooltipSupplier, text);
|
||||
// }
|
||||
|
||||
/*
|
||||
|
||||
#if PRE_MC_1_19_4
|
||||
@Override
|
||||
public void renderButton(PoseStack matrices, int mouseX, int mouseY, float delta) {
|
||||
#if PRE_MC_1_17_1
|
||||
@@ -74,5 +74,26 @@ public class TexturedButtonWidget extends ImageButton {
|
||||
#endif
|
||||
|
||||
super.renderButton(matrices, mouseX, mouseY, delta);
|
||||
}*/
|
||||
}
|
||||
#else
|
||||
@Override
|
||||
public void renderWidget(PoseStack matrices, int mouseX, int mouseY, float delta) {
|
||||
RenderSystem.setShader(GameRenderer::getPositionTexShader);
|
||||
RenderSystem.setShaderTexture(0, WIDGETS_LOCATION);
|
||||
RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, this.alpha);
|
||||
|
||||
int i = 1;
|
||||
if (!this.active)
|
||||
i = 0;
|
||||
else if (this.isHovered)
|
||||
i = 2;
|
||||
RenderSystem.enableBlend();
|
||||
RenderSystem.defaultBlendFunc();
|
||||
RenderSystem.enableDepthTest();
|
||||
this.blit(matrices, this.getX(), this.getY(), 0, 46 + i * 20, this.getWidth() / 2, this.getHeight());
|
||||
this.blit(matrices, this.getX() + this.getWidth() / 2, this.getY(), 200 - this.width / 2, 46 + i * 20, this.getWidth() / 2, this.getHeight());
|
||||
|
||||
super.renderWidget(matrices, mouseX, mouseY, delta);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
accessWidener v1 named
|
||||
|
||||
|
||||
# used when determining where to save files to
|
||||
accessible field net/minecraft/world/level/storage/DimensionDataStorage dataFolder Ljava/io/File;
|
||||
|
||||
# used when rendering
|
||||
accessible field com/mojang/blaze3d/vertex/VertexBuffer indexCount I
|
||||
accessible method net/minecraft/client/renderer/GameRenderer getFov (Lnet/minecraft/client/Camera;FZ)D
|
||||
|
||||
# used for grabbing vanilla rendered chunks
|
||||
accessible field net/minecraft/client/renderer/LevelRenderer renderChunkStorage Ljava/util/concurrent/atomic/AtomicReference;
|
||||
accessible class net/minecraft/client/renderer/LevelRenderer$RenderChunkStorage
|
||||
accessible class net/minecraft/client/renderer/LevelRenderer$RenderChunkInfo
|
||||
accessible field net/minecraft/client/renderer/LevelRenderer$RenderChunkInfo chunk Lnet/minecraft/client/renderer/chunk/ChunkRenderDispatcher$RenderChunk;
|
||||
|
||||
# lighting
|
||||
accessible field net/minecraft/client/renderer/LightTexture lightPixels Lcom/mojang/blaze3d/platform/NativeImage;
|
||||
accessible field net/minecraft/client/renderer/LightTexture lightTexture Lnet/minecraft/client/renderer/texture/DynamicTexture;
|
||||
accessible field net/minecraft/world/level/lighting/LevelLightEngine blockEngine Lnet/minecraft/world/level/lighting/LayerLightEngine;
|
||||
accessible field net/minecraft/world/level/lighting/LevelLightEngine skyEngine Lnet/minecraft/world/level/lighting/LayerLightEngine;
|
||||
|
||||
# world generation
|
||||
accessible method net/minecraft/world/level/levelgen/Heightmap setHeight (III)V
|
||||
accessible field net/minecraft/world/level/biome/Biome generationSettings Lnet/minecraft/world/level/biome/BiomeGenerationSettings;
|
||||
# accessible field net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator settings Lnet/minecraft/core/Holder;
|
||||
accessible method net/minecraft/world/level/lighting/LayerLightEngine queueSectionData (JLnet/minecraft/world/level/chunk/DataLayer;Z)V
|
||||
accessible method net/minecraft/server/level/ChunkMap readChunk (Lnet/minecraft/world/level/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
|
||||
|
||||
|
||||
# lod generation from save file
|
||||
accessible field net/minecraft/server/level/ChunkMap mainThreadExecutor Lnet/minecraft/util/thread/BlockableEventLoop;
|
||||
|
||||
|
||||
# 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;
|
||||
|
||||
# hacky stuff
|
||||
accessible field net/minecraft/util/ThreadingDetector lock Ljava/util/concurrent/Semaphore;
|
||||
mutable field net/minecraft/util/ThreadingDetector lock Ljava/util/concurrent/Semaphore;
|
||||
+9
-9
@@ -107,18 +107,18 @@ dependencies {
|
||||
// Mojmap mappings
|
||||
officialMojangMappings()
|
||||
// Parchment mappings (it adds parameter mappings & javadoc)
|
||||
parchment("org.parchmentmc.data:parchment-1.19.3:2023.03.12@zip")
|
||||
/* Hack fix, cleans up some errors. Parchment now has more versions, but this is designed for 1.19.3 and hopefully works in 1.19.4.
|
||||
if (
|
||||
rootProject.minecraft_version != "1.19"
|
||||
&& rootProject.minecraft_version != "1.19.1"
|
||||
&& rootProject.minecraft_version != "1.19.2"
|
||||
&& rootProject.minecraft_version != "1.19.3"
|
||||
&& rootProject.minecraft_version != "1.19.1"
|
||||
&& rootProject.minecraft_version != "1.19.2"
|
||||
&& rootProject.minecraft_version != "1.19.3"
|
||||
&& rootProject.minecraft_version != "1.19.4"
|
||||
) // We are not gonna use this build script anymore so dont bother fixing this
|
||||
parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:${rootProject.parchment_version}@zip")
|
||||
else
|
||||
parchment("org.parchmentmc.data:parchment-1.18.2:${rootProject.parchment_version}@zip") // As 1.19.x or higher doesnt have parchment mappings yet, we use 1.18.2 mapping
|
||||
*/
|
||||
parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:${rootProject.parchment_version}@zip")
|
||||
else
|
||||
parchment("org.parchmentmc.data:parchment-1.18.2:${rootProject.parchment_version}@zip") // As 1.19.x or higher doesnt have parchment mappings yet, we use 1.18.2 mapping
|
||||
// Note: parchment may have later mappings at the time you are reading this, but at the time this was written, it didnt
|
||||
// Check the main branch for the new build system, with the working mappings
|
||||
}
|
||||
|
||||
//Manifold
|
||||
|
||||
+12
-12
@@ -61,18 +61,18 @@ dependencies {
|
||||
// Mojmap mappings
|
||||
officialMojangMappings()
|
||||
// Parchment mappings (it adds parameter mappings & javadoc)
|
||||
parchment("org.parchmentmc.data:parchment-1.19.3:2023.03.12@zip")
|
||||
/* Hack fix, cleans up some errors. Parchment now has more versions, but this is designed for 1.19.3 and hopefully works in 1.19.4.
|
||||
if (
|
||||
rootProject.minecraft_version != "1.19"
|
||||
&& rootProject.minecraft_version != "1.19.1"
|
||||
&& rootProject.minecraft_version != "1.19.2"
|
||||
&& rootProject.minecraft_version != "1.19.3"
|
||||
) // We are not gonna use this build script anymore so dont bother fixing this
|
||||
parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:${rootProject.parchment_version}@zip")
|
||||
else
|
||||
parchment("org.parchmentmc.data:parchment-1.18.2:${rootProject.parchment_version}@zip") // As 1.19.x or higher doesnt have parchment mappings yet, we use 1.18.2 mapping
|
||||
*/
|
||||
if (
|
||||
rootProject.minecraft_version != "1.19"
|
||||
&& rootProject.minecraft_version != "1.19.1"
|
||||
&& rootProject.minecraft_version != "1.19.2"
|
||||
&& rootProject.minecraft_version != "1.19.3"
|
||||
&& rootProject.minecraft_version != "1.19.4"
|
||||
) // We are not gonna use this build script anymore so dont bother fixing this
|
||||
parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:${rootProject.parchment_version}@zip")
|
||||
else
|
||||
parchment("org.parchmentmc.data:parchment-1.18.2:${rootProject.parchment_version}@zip") // As 1.19.x or higher doesnt have parchment mappings yet, we use 1.18.2 mapping
|
||||
// Note: parchment may have later mappings at the time you are reading this, but at the time this was written, it didnt
|
||||
// Check the main branch for the new build system, with the working mappings
|
||||
}
|
||||
|
||||
//Manifold
|
||||
|
||||
+1
-1
@@ -20,4 +20,4 @@ enabled_platforms=fabric,forge
|
||||
mcVersions=1.16.5,1.17.1,1.18.1,1.18.2,1.19,1.19.1,1.19.2,1.19.3,1.19.4
|
||||
|
||||
##### FOR IDE SUPPORT AND TELL IDE TO USE CERTIAN MC VERSION: SWITCH THIS:
|
||||
mcVer=1.19.3
|
||||
mcVer=1.19.4
|
||||
|
||||
Reference in New Issue
Block a user