port: Mounts of Mayham (1.21.11)

This commit is contained in:
Martin Prokoph
2025-12-11 17:47:15 +01:00
parent 7149307f1f
commit 9dd384359f
15 changed files with 112 additions and 40 deletions

View File

@@ -285,8 +285,16 @@ stonecutter {
direction = eval(current.version, ">=1.21.5") direction = eval(current.version, ">=1.21.5")
replace("SimpleTexture", "ReloadableTexture") replace("SimpleTexture", "ReloadableTexture")
} }
replacements.string {
direction = eval(current.version, ">=1.21.11")
replace("ResourceLocation", "Identifier")
}
replacements.string { replacements.string {
direction = eval(current.version, ">=1.21") direction = eval(current.version, ">=1.21")
replace("new ResourceLocation", "ResourceLocation.fromNamespaceAndPath") replace("new ResourceLocation", "ResourceLocation.fromNamespaceAndPath")
} }
replacements.string {
direction = eval(current.version, ">=1.21.11")
replace("net.minecraft.Util", "net.minecraft.util.Util")
}
} }

View File

@@ -31,7 +31,7 @@ deps.neoforge_patch=[VERSIONED]
# Mod dependencies # Mod dependencies
deps.yarn_build=[VERSIONED] deps.yarn_build=[VERSIONED]
deps.modmenu_version=[VERSIONED] deps.modmenu_version=[VERSIONED]
deps.midnightlib_version=1.9.0 deps.midnightlib_version=1.9.2
# Mod integrations # Mod integrations
jigsaws.cull_leaves_version = 3.0.2-fabric jigsaws.cull_leaves_version = 3.0.2-fabric

View File

@@ -21,10 +21,9 @@ stonecutter {
fun mc(loader: String, vararg versions: String) { fun mc(loader: String, vararg versions: String) {
for (version in versions) vers("$version-$loader", version) for (version in versions) vers("$version-$loader", version)
} }
//i would recommend to use neoforge for mc > 1.20.1, i haven't tested template for forge on versions higher than that mc("fabric","1.20.1", "1.21.1", "1.21.5", "1.21.8", "1.21.10", "1.21.11")
mc("fabric","1.20.1", "1.21.1", "1.21.5", "1.21.8", "1.21.10")
//WARNING: neoforge uses mods.toml instead of neoforge.mods.toml for versions 1.20.4 (?) and earlier //WARNING: neoforge uses mods.toml instead of neoforge.mods.toml for versions 1.20.4 (?) and earlier
mc("neoforge", "1.21.1", "1.21.5", "1.21.8", "1.21.10") mc("neoforge", "1.21.1", "1.21.5", "1.21.8", "1.21.10", "1.21.11")
} }
create(rootProject) create(rootProject)
} }

View File

@@ -1,6 +1,6 @@
package net.puzzlemc.core; package net.puzzlemc.core;
import net.minecraft.resources.ResourceLocation; import net.minecraft.resources.Identifier;
import net.puzzlemc.gui.screen.PuzzleOptionsScreen; import net.puzzlemc.gui.screen.PuzzleOptionsScreen;
import net.puzzlemc.splashscreen.PuzzleSplashScreen; import net.puzzlemc.splashscreen.PuzzleSplashScreen;
@@ -33,12 +33,12 @@ public class PuzzleClient implements ClientModInitializer, ModMenuApi {
//ResourceManagerHelper.get(PackType.CLIENT_RESOURCES).registerReloadListener //ResourceManagerHelper.get(PackType.CLIENT_RESOURCES).registerReloadListener
//? if >= 1.21.9 { //? if >= 1.21.9 {
ResourceLoader.get(PackType.CLIENT_RESOURCES).registerReloader(ResourceLocation.fromNamespaceAndPath(MOD_ID, "splash_screen"), PuzzleSplashScreen.ReloadListener.INSTANCE); ResourceLoader.get(PackType.CLIENT_RESOURCES).registerReloader(Identifier.fromNamespaceAndPath(MOD_ID, "splash_screen"), PuzzleSplashScreen.ReloadListener.INSTANCE);
//?} else { //?} else {
/*ResourceManagerHelper.get(PackType.CLIENT_RESOURCES).registerReloadListener(new SimpleSynchronousResourceReloadListener() { /*ResourceManagerHelper.get(PackType.CLIENT_RESOURCES).registerReloadListener(new SimpleSynchronousResourceReloadListener() {
@Override @Override
public ResourceLocation getFabricId() { public Identifier getFabricId() {
return ResourceLocation.fromNamespaceAndPath(MOD_ID, "splash_screen"); return Identifier.fromNamespaceAndPath(MOD_ID, "splash_screen");
} }
@Override @Override
public void onResourceManagerReload(ResourceManager manager) { public void onResourceManagerReload(ResourceManager manager) {
@@ -76,7 +76,7 @@ public class PuzzleClient {
//? if >= 1.21.5 { //? if >= 1.21.5 {
@SubscribeEvent @SubscribeEvent
public static void onResourceReload(AddClientReloadListenersEvent event) { public static void onResourceReload(AddClientReloadListenersEvent event) {
event.addListener(ResourceLocation.fromNamespaceAndPath(MOD_ID, "splash_screen"), PuzzleSplashScreen.ReloadListener.INSTANCE); event.addListener(Identifier.fromNamespaceAndPath(MOD_ID, "splash_screen"), PuzzleSplashScreen.ReloadListener.INSTANCE);
} }
//?} else { //?} else {
/^@SubscribeEvent /^@SubscribeEvent

View File

@@ -4,7 +4,7 @@ import eu.midnightdust.core.MidnightLib;
import eu.midnightdust.lib.util.PlatformFunctions; import eu.midnightdust.lib.util.PlatformFunctions;
import net.minecraft.ChatFormatting; import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component; import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation; import net.minecraft.resources.Identifier;
import net.puzzlemc.core.config.PuzzleConfig; import net.puzzlemc.core.config.PuzzleConfig;
import net.puzzlemc.gui.compat.*; import net.puzzlemc.gui.compat.*;
import net.puzzlemc.gui.screen.widget.PuzzleWidget; import net.puzzlemc.gui.screen.widget.PuzzleWidget;
@@ -17,7 +17,7 @@ import static net.puzzlemc.core.PuzzleCore.MOD_ID;
public class PuzzleGui { public class PuzzleGui {
public static final Component YES = Component.translatable("gui.yes").withStyle(ChatFormatting.GREEN); public static final Component YES = Component.translatable("gui.yes").withStyle(ChatFormatting.GREEN);
public static final Component NO = Component.translatable("gui.no").withStyle(ChatFormatting.RED); public static final Component NO = Component.translatable("gui.no").withStyle(ChatFormatting.RED);
public static final ResourceLocation PUZZLE_BUTTON = ResourceLocation.fromNamespaceAndPath(MOD_ID, "icon/button"); public static final Identifier PUZZLE_BUTTON = Identifier.fromNamespaceAndPath(MOD_ID, "icon/button");
public static void init() { public static void init() {
MidnightLib.hiddenMods.add(MOD_ID); MidnightLib.hiddenMods.add(MOD_ID);
@@ -32,10 +32,12 @@ public class PuzzleGui {
PuzzleConfig.write(MOD_ID); PuzzleConfig.write(MOD_ID);
Minecraft.getInstance().getTextureManager()./*? if >= 1.21.5 {*/ registerAndLoad /*?} else {*//*register*//*?}*/(PuzzleSplashScreen.LOGO, new PuzzleSplashScreen.LogoTexture(PuzzleSplashScreen.LOGO)); Minecraft.getInstance().getTextureManager()./*? if >= 1.21.5 {*/ registerAndLoad /*?} else {*//*register*//*?}*/(PuzzleSplashScreen.LOGO, new PuzzleSplashScreen.LogoTexture(PuzzleSplashScreen.LOGO));
})); }));
PuzzleApi.addToResourceOptions(new PuzzleWidget(Component.translatable("puzzle.option.unlimited_model_rotations"), (button) -> button.setMessage(PuzzleConfig.unlimitedRotations ? YES : NO), (button) -> { //? if < 1.21.11 {
PuzzleConfig.unlimitedRotations = !PuzzleConfig.unlimitedRotations; // PuzzleApi.addToResourceOptions(new PuzzleWidget(Component.translatable("puzzle.option.unlimited_model_rotations"), (button) -> button.setMessage(PuzzleConfig.unlimitedRotations ? YES : NO), (button) -> {
PuzzleConfig.write(MOD_ID); // PuzzleConfig.unlimitedRotations = !PuzzleConfig.unlimitedRotations;
})); // PuzzleConfig.write(MOD_ID);
// }));
//?}
PuzzleApi.addToResourceOptions(new PuzzleWidget(Component.translatable("puzzle.option.bigger_custom_models"), (button) -> button.setMessage(PuzzleConfig.biggerModels ? YES : NO), (button) -> { PuzzleApi.addToResourceOptions(new PuzzleWidget(Component.translatable("puzzle.option.bigger_custom_models"), (button) -> button.setMessage(PuzzleConfig.biggerModels ? YES : NO), (button) -> {
PuzzleConfig.biggerModels = !PuzzleConfig.biggerModels; PuzzleConfig.biggerModels = !PuzzleConfig.biggerModels;
PuzzleConfig.write(MOD_ID); PuzzleConfig.write(MOD_ID);

View File

@@ -27,7 +27,7 @@ import net.puzzlemc.gui.PuzzleGui;
//?} else { //?} else {
/*import net.minecraft.client.gui.screens.OptionsScreen; /*import net.minecraft.client.gui.screens.OptionsScreen;
import net.minecraft.client.gui.components.TextAndImageButton; import net.minecraft.client.gui.components.TextAndImageButton;
import net.minecraft.resources.ResourceLocation; import net.minecraft.resources.Identifier;
import static net.puzzlemc.core.PuzzleCore.MOD_ID; import static net.puzzlemc.core.PuzzleCore.MOD_ID;
*///?} *///?}
@@ -66,7 +66,7 @@ public abstract class MixinOptionsScreen extends Screen {
puzzle$button.setPosition(this.width / 2 - 178 + i, layout.getY() + layout.getFooterHeight() - 4); puzzle$button.setPosition(this.width / 2 - 178 + i, layout.getY() + layout.getFooterHeight() - 4);
} }
//?} else { //?} else {
/*@Unique TextAndImageButton puzzle$button = TextAndImageButton.builder(Component.translatable("midnightlib.overview.title"), ResourceLocation.fromNamespaceAndPath(MOD_ID, "icon/button.png"), /*@Unique TextAndImageButton puzzle$button = TextAndImageButton.builder(Component.translatable("midnightlib.overview.title"), Identifier.fromNamespaceAndPath(MOD_ID, "icon/button.png"),
button -> Objects.requireNonNull(minecraft).setScreen(new PuzzleOptionsScreen(this))).textureSize(19, 19).usedTextureSize(16, 16).offset(-2, 0).build(); button -> Objects.requireNonNull(minecraft).setScreen(new PuzzleOptionsScreen(this))).textureSize(19, 19).usedTextureSize(16, 16).offset(-2, 0).build();
@Inject(at = @At("HEAD"), method = "init") @Inject(at = @At("HEAD"), method = "init")

View File

@@ -14,9 +14,19 @@ public class PuzzleButtonWidget extends Button {
this.title = title; this.title = title;
} }
@Override @Override
public void renderWidget(GuiGraphics context, int mouseX, int mouseY, float delta) { //? if < 1.21.11 {
/*public void renderWidget(GuiGraphics context, int mouseX, int mouseY, float delta) {
*///?} else {
public void renderContents(GuiGraphics context, int mouseX, int mouseY, float delta) {
//?}
try { title.setTitle(this); try { title.setTitle(this);
} catch (Exception e) {e.fillInStackTrace(); this.visible = false;} } catch (Exception e) {e.fillInStackTrace(); this.visible = false;}
super.renderWidget(context, mouseX, mouseY, delta);
//? if < 1.21.11 {
/*super.renderWidget(context, mouseX, mouseY, delta);*/
//?} else {
this.renderDefaultSprite(context);
this.renderDefaultLabel(context.textRendererForWidget(this, GuiGraphics.HoveredTextEffects.NONE));
//?}
} }
} }

View File

@@ -3,7 +3,6 @@ package net.puzzlemc.models.mixin;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import com.google.gson.JsonParseException; import com.google.gson.JsonParseException;
import net.minecraft.client.renderer.block.model.BlockElement; import net.minecraft.client.renderer.block.model.BlockElement;
import net.minecraft.util.GsonHelper;
import net.puzzlemc.core.config.PuzzleConfig; import net.puzzlemc.core.config.PuzzleConfig;
import org.joml.Vector3f; import org.joml.Vector3f;
import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mixin;
@@ -11,10 +10,13 @@ import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
//? if < 1.21.11
/*import net.minecraft.util.GsonHelper;*/
@Mixin(BlockElement.Deserializer.class) @Mixin(BlockElement.Deserializer.class)
public abstract class MixinModelElementDeserializer { public abstract class MixinModelElementDeserializer {
@Shadow protected abstract Vector3f getVector3f(JsonObject jsonObject, String string); //? if < 1.21.11 {
/*@Shadow protected abstract Vector3f getVector3f(JsonObject jsonObject, String string);
@Inject(at = @At("HEAD"),method = "getAngle", cancellable = true) @Inject(at = @At("HEAD"),method = "getAngle", cancellable = true)
private void puzzle$deserializeRotationAngle(JsonObject object, CallbackInfoReturnable<Float> cir) { private void puzzle$deserializeRotationAngle(JsonObject object, CallbackInfoReturnable<Float> cir) {
@@ -45,4 +47,22 @@ public abstract class MixinModelElementDeserializer {
} }
} }
} }
*///?} else {
@Shadow
private static Vector3f getVector3f(JsonObject jsonObject, String string) {
throw new RuntimeException("MixinModelElementDeserializer from Puzzle could not be loaded properly");
}
@Inject(at = @At("HEAD"),method = "getPosition", cancellable = true)
private static void puzzle$deserializePos(JsonObject object, String string, CallbackInfoReturnable<Vector3f> cir) {
if (PuzzleConfig.biggerModels) {
Vector3f vec3f = getVector3f(object, string);
if (!(vec3f.x < -32.0F) && !(vec3f.y < -32.0F) && !(vec3f.z < -32.0F) && !(vec3f.x > 48.0F) && !(vec3f.y > 48.0F) && !(vec3f.z > 48.0F)) {
cir.setReturnValue(vec3f);
} else {
throw new JsonParseException("'%s' specifier exceeds the allowed boundaries: %s".formatted(string, vec3f));
}
}
}
//?}
} }

View File

@@ -4,12 +4,12 @@ import com.mojang.blaze3d.pipeline.RenderPipeline;
import com.mojang.blaze3d.platform.NativeImage; import com.mojang.blaze3d.platform.NativeImage;
import eu.midnightdust.lib.util.MidnightColorUtil; import eu.midnightdust.lib.util.MidnightColorUtil;
import eu.midnightdust.lib.util.PlatformFunctions; import eu.midnightdust.lib.util.PlatformFunctions;
import net.minecraft.Util; import net.minecraft.util.Util;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.texture.DynamicTexture; import net.minecraft.client.renderer.texture.DynamicTexture;
import net.minecraft.client.renderer.texture.ReloadableTexture; import net.minecraft.client.renderer.texture.ReloadableTexture;
import net.minecraft.client.resources.metadata.texture.TextureMetadataSection; import net.minecraft.client.resources.metadata.texture.TextureMetadataSection;
import net.minecraft.resources.ResourceLocation; import net.minecraft.resources.Identifier;
import net.minecraft.server.packs.PackType; import net.minecraft.server.packs.PackType;
import net.minecraft.server.packs.VanillaPackResources; import net.minecraft.server.packs.VanillaPackResources;
import net.minecraft.server.packs.resources.ResourceManager; import net.minecraft.server.packs.resources.ResourceManager;
@@ -44,12 +44,15 @@ import net.minecraft.client.renderer.RenderType;
import net.minecraft.util.TriState; import net.minecraft.util.TriState;
*///?} *///?}
//? if >= 1.21.11
import net.minecraft.client.renderer.texture.MipmapStrategy;
import static net.puzzlemc.core.PuzzleCore.LOGGER; import static net.puzzlemc.core.PuzzleCore.LOGGER;
import static net.puzzlemc.core.PuzzleCore.MOD_ID; import static net.puzzlemc.core.PuzzleCore.MOD_ID;
public class PuzzleSplashScreen { public class PuzzleSplashScreen {
public static final ResourceLocation LOGO = ResourceLocation.fromNamespaceAndPath("minecraft", "textures/gui/title/mojangstudios.png"); public static final Identifier LOGO = Identifier.fromNamespaceAndPath("minecraft", "textures/gui/title/mojangstudios.png");
public static final ResourceLocation BACKGROUND = ResourceLocation.fromNamespaceAndPath("minecraft", "puzzle/splash_background.png"); public static final Identifier BACKGROUND = Identifier.fromNamespaceAndPath("minecraft", "puzzle/splash_background.png");
public static File CONFIG_PATH = new File(String.valueOf(PlatformFunctions.getConfigDirectory().resolve(".puzzle_cache"))); public static File CONFIG_PATH = new File(String.valueOf(PlatformFunctions.getConfigDirectory().resolve(".puzzle_cache")));
public static Path LOGO_TEXTURE = Paths.get(CONFIG_PATH + "/mojangstudios.png"); public static Path LOGO_TEXTURE = Paths.get(CONFIG_PATH + "/mojangstudios.png");
public static Path BACKGROUND_TEXTURE = Paths.get(CONFIG_PATH + "/splash_background.png"); public static Path BACKGROUND_TEXTURE = Paths.get(CONFIG_PATH + "/splash_background.png");
@@ -199,7 +202,7 @@ public class PuzzleSplashScreen {
public static class LogoTexture extends ReloadableTexture { public static class LogoTexture extends ReloadableTexture {
public LogoTexture(ResourceLocation logo) { public LogoTexture(Identifier logo) {
super(logo); super(logo);
} }
@@ -208,7 +211,7 @@ public class PuzzleSplashScreen {
Minecraft client = Minecraft.getInstance(); Minecraft client = Minecraft.getInstance();
VanillaPackResources defaultResourcePack = client.getVanillaPackResources(); VanillaPackResources defaultResourcePack = client.getVanillaPackResources();
try (InputStream input = Objects.requireNonNull(defaultResourcePack.getResource(PackType.CLIENT_RESOURCES, LOGO)).get()) { try (InputStream input = Objects.requireNonNull(defaultResourcePack.getResource(PackType.CLIENT_RESOURCES, LOGO)).get()) {
return /*? if >= 1.21.5 {*/ new TextureContents(NativeImage.read(input), new TextureMetadataSection(true, true)) /*?} else {*/ /*new TextureContents(new TextureMetadataSection(true, true), NativeImage.read(input)) *//*?}*/; return /*? if >= 1.21.5 {*/ new TextureContents(NativeImage.read(input), new TextureMetadataSection(true, true /*? if >= 1.21.11 {*/, MipmapStrategy.AUTO, 0 /*?}*/)) /*?} else {*/ /*new TextureContents(new TextureMetadataSection(true, true), NativeImage.read(input)) *//*?}*/;
} catch (IOException ex) { } catch (IOException ex) {
return /*? if >= 1.21.5 {*/ TextureContents.createMissing() /*?} else {*/ /*new TextureContents(ex) *//*?}*/; return /*? if >= 1.21.5 {*/ TextureContents.createMissing() /*?} else {*/ /*new TextureContents(ex) *//*?}*/;
} }
@@ -222,7 +225,7 @@ public class PuzzleSplashScreen {
@Override @Override
public @NotNull TextureContents loadContents(ResourceManager resourceManager) { public @NotNull TextureContents loadContents(ResourceManager resourceManager) {
try (InputStream input = new FileInputStream(String.valueOf(PuzzleSplashScreen.LOGO_TEXTURE))) { try (InputStream input = new FileInputStream(String.valueOf(PuzzleSplashScreen.LOGO_TEXTURE))) {
return /*? if >= 1.21.5 {*/ new TextureContents(NativeImage.read(input), new TextureMetadataSection(true, true)) /*?} else {*/ /*new TextureContents(new TextureMetadataSection(true, true), NativeImage.read(input)) *//*?}*/; return /*? if >= 1.21.5 {*/ new TextureContents(NativeImage.read(input), new TextureMetadataSection(true, true/*? if >= 1.21.11 {*/, MipmapStrategy.AUTO, 0 /*?}*/)) /*?} else {*/ /*new TextureContents(new TextureMetadataSection(true, true), NativeImage.read(input)) *//*?}*/;
} catch (IOException e) { } catch (IOException e) {
LOGGER.error("Encountered an error during logo loading: ", e); LOGGER.error("Encountered an error during logo loading: ", e);
//? if >= 1.21.5 { //? if >= 1.21.5 {

View File

@@ -1,14 +1,14 @@
package net.puzzlemc.splashscreen.mixin; package net.puzzlemc.splashscreen.mixin;
import com.mojang.blaze3d.platform.NativeImage; import com.mojang.blaze3d.platform.NativeImage;
import net.minecraft.Util; import net.minecraft.util.Util;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiGraphics; import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.client.gui.screens.LoadingOverlay; import net.minecraft.client.gui.screens.LoadingOverlay;
import net.minecraft.client.gui.screens.Overlay; import net.minecraft.client.gui.screens.Overlay;
import net.minecraft.client.renderer.texture.DynamicTexture; import net.minecraft.client.renderer.texture.DynamicTexture;
import net.minecraft.client.renderer.texture.TextureManager; import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.resources.ResourceLocation; import net.minecraft.resources.Identifier;
import net.minecraft.util.Mth; import net.minecraft.util.Mth;
import net.puzzlemc.core.config.PuzzleConfig; import net.puzzlemc.core.config.PuzzleConfig;
import net.puzzlemc.splashscreen.PuzzleSplashScreen; import net.puzzlemc.splashscreen.PuzzleSplashScreen;
@@ -59,7 +59,7 @@ public abstract class MixinSplashScreen extends Overlay {
return 0; return 0;
} }
//? if < 1.21.5 //? if < 1.21.5
/*@Shadow @Final static ResourceLocation MOJANG_STUDIOS_LOGO_LOCATION;*/ /*@Shadow @Final static Identifier MOJANG_STUDIOS_LOGO_LOCATION;*/
@Inject(method = "registerTextures", at = @At("TAIL")) // Load our custom textures at game start // @Inject(method = "registerTextures", at = @At("TAIL")) // Load our custom textures at game start //
//? if >= 1.21.5 { //? if >= 1.21.5 {
@@ -87,15 +87,15 @@ public abstract class MixinSplashScreen extends Overlay {
} }
//? if >= 1.21.8 { //? if >= 1.21.8 {
@WrapOperation(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/resources/ResourceLocation;IIFFIIIIIII)V")) @WrapOperation(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/resources/Identifier;IIFFIIIIIII)V"))
private void puzzle$modifyRenderLayer(GuiGraphics context, RenderPipeline pipeline, ResourceLocation sprite, int x, int y, float u, float v, int width, int height, int regionWidth, int regionHeight, int textureWidth, int textureHeight, int color, Operation<Void> original) { private void puzzle$modifyRenderLayer(GuiGraphics context, RenderPipeline pipeline, Identifier sprite, int x, int y, float u, float v, int width, int height, int regionWidth, int regionHeight, int textureWidth, int textureHeight, int color, Operation<Void> original) {
if (PuzzleConfig.resourcepackSplashScreen) if (PuzzleConfig.resourcepackSplashScreen)
context.blit(PuzzleSplashScreen.CUSTOM_LOGO_PIPELINE, sprite, x, y, u, v, width, height, regionWidth, regionHeight, textureWidth, textureHeight, color); context.blit(PuzzleSplashScreen.CUSTOM_LOGO_PIPELINE, sprite, x, y, u, v, width, height, regionWidth, regionHeight, textureWidth, textureHeight, color);
else context.blit(pipeline, sprite, x, y, u, v, width, height, textureWidth, textureHeight, color); else context.blit(pipeline, sprite, x, y, u, v, width, height, textureWidth, textureHeight, color);
} }
//?} else if >= 1.21.5 { //?} else if >= 1.21.5 {
/*@WrapOperation(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Ljava/util/function/Function;Lnet/minecraft/resources/ResourceLocation;IIFFIIIIIII)V")) /*@WrapOperation(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Ljava/util/function/Function;Lnet/minecraft/resources/Identifier;IIFFIIIIIII)V"))
private void puzzle$modifyRenderLayer(GuiGraphics context, Function<ResourceLocation, RenderType> renderType, ResourceLocation sprite, int x, int y, float u, float v, int width, int height, int regionWidth, int regionHeight, int textureWidth, int textureHeight, int color, Operation<Void> original) { private void puzzle$modifyRenderLayer(GuiGraphics context, Function<Identifier, RenderType> renderType, Identifier sprite, int x, int y, float u, float v, int width, int height, int regionWidth, int regionHeight, int textureWidth, int textureHeight, int color, Operation<Void> original) {
if (PuzzleConfig.resourcepackSplashScreen) if (PuzzleConfig.resourcepackSplashScreen)
context.blit(id -> PuzzleSplashScreen.CUSTOM_LOGO_LAYER, sprite, x, y, u, v, width, height, regionWidth, regionHeight, textureWidth, textureHeight, color); context.blit(id -> PuzzleSplashScreen.CUSTOM_LOGO_LAYER, sprite, x, y, u, v, width, height, regionWidth, regionHeight, textureWidth, textureHeight, color);
else context.blit(renderType, sprite, x, y, u, v, width, height, textureWidth, textureHeight, color); else context.blit(renderType, sprite, x, y, u, v, width, height, textureWidth, textureHeight, color);

View File

@@ -5,7 +5,7 @@ plugins {
id("com.github.johnrengelman.shadow") version "8.1.1" apply false id("com.github.johnrengelman.shadow") version "8.1.1" apply false
id("me.modmuss50.mod-publish-plugin") version "0.8.4" apply false id("me.modmuss50.mod-publish-plugin") version "0.8.4" apply false
} }
stonecutter active "1.21.10-fabric" /* [SC] DO NOT EDIT */ stonecutter active "1.21.11-fabric" /* [SC] DO NOT EDIT */
// See https://stonecutter.kikugie.dev/wiki/config/params // See https://stonecutter.kikugie.dev/wiki/config/params
stonecutter parameters { stonecutter parameters {

View File

@@ -1,5 +1,5 @@
mod.mc_dep_fabric=>=1.21.9 mod.mc_dep_fabric=>=1.21.9 <=1.21.10
mod.mc_dep_forgelike=[1.21.10,) mod.mc_dep_forgelike=[1.21.9,1.21.10]
mod.mc_title=1.21.10 mod.mc_title=1.21.10
mod.mc_targets=1.21.9 1.21.10 mod.mc_targets=1.21.9 1.21.10

View File

@@ -1,5 +1,5 @@
mod.mc_dep_fabric=>=1.21.9 mod.mc_dep_fabric=>=1.21.9 <=1.21.10
mod.mc_dep_forgelike=[1.21.10,) mod.mc_dep_forgelike=[1.21.9,1.21.10]
mod.mc_title=1.21.10 mod.mc_title=1.21.10
mod.mc_targets=1.21.9 1.21.10 mod.mc_targets=1.21.9 1.21.10

View File

@@ -0,0 +1,15 @@
mod.mc_dep_fabric=>=1.21.11
mod.mc_dep_forgelike=[1.21.11,)
mod.mc_title=1.21.11
mod.mc_targets=1.21.11
deps.forge_loader=0
deps.neoforge_loader=21.11.3-beta
deps.fabric_version=0.139.4+1.21.11
deps.modmenu_version=17.0.0-alpha.1
jigsaws.emf_version=3.0.6-neoforge-1.21.9
jigsaws.etf_version=7.0.6-neoforge-1.21.9
loom.platform=fabric

View File

@@ -0,0 +1,15 @@
mod.mc_dep_fabric=>=1.21.11
mod.mc_dep_forgelike=[1.21.11,)
mod.mc_title=1.21.11
mod.mc_targets=1.21.11
deps.forge_loader=0
deps.neoforge_loader=21.11.3-beta
deps.fabric_version=0.139.4+1.21.11
deps.modmenu_version=17.0.0-alpha.1
jigsaws.emf_version=3.0.6-neoforge-1.21.9
jigsaws.etf_version=7.0.6-neoforge-1.21.9
loom.platform=neoforge