diff --git a/src/client/java/symbolics/division/modfest_credits/Modfest_creditsClient.java b/src/client/java/symbolics/division/modfest_credits/Modfest_creditsClient.java index 28856a1..eccf25c 100644 --- a/src/client/java/symbolics/division/modfest_credits/Modfest_creditsClient.java +++ b/src/client/java/symbolics/division/modfest_credits/Modfest_creditsClient.java @@ -1,10 +1,17 @@ package symbolics.division.modfest_credits; +import com.mojang.datafixers.util.Pair; import net.fabricmc.api.ClientModInitializer; +import net.minecraft.client.gui.screen.CreditsScreen; +import net.minecraft.client.gui.screen.option.CreditsAndAttributionScreen; +import java.util.Comparator; + +// tf is this name whatever public class Modfest_creditsClient implements ClientModInitializer { @Override public void onInitializeClient() { // This entrypoint is suitable for setting up client-specific logic, such as rendering. + } } \ No newline at end of file diff --git a/src/client/java/symbolics/division/modfest_credits/mixin/CreditsScreenMixin.java b/src/client/java/symbolics/division/modfest_credits/mixin/CreditsScreenMixin.java new file mode 100644 index 0000000..2812b56 --- /dev/null +++ b/src/client/java/symbolics/division/modfest_credits/mixin/CreditsScreenMixin.java @@ -0,0 +1,19 @@ +package symbolics.division.modfest_credits.mixin; + +import net.minecraft.client.gui.screen.CreditsScreen; +import net.minecraft.util.Identifier; +import org.spongepowered.asm.mixin.Mixin; + +@Mixin(CreditsScreen.class) +public class CreditsScreenMixin { + private Identifier CREDITS_TEXT_LOCATION; + +// @WrapOperation( +// method = "init", +// at = @At(value = "FIELD", target = "Lnet/minecraft/client/gui/screen/CreditsScreen;CREDITS_TEXT_LOCATION:Lnet/minecraft/util/Identifier;") +// ) +// public Identifier injectCredits(Operation original) { +// return Identifier.of("mf121", "texts/credits.json"); +// } + +} diff --git a/src/client/java/symbolics/division/modfest_credits/mixin/client/ExampleClientMixin.java b/src/client/java/symbolics/division/modfest_credits/mixin/client/ExampleClientMixin.java deleted file mode 100644 index 1bdb2fe..0000000 --- a/src/client/java/symbolics/division/modfest_credits/mixin/client/ExampleClientMixin.java +++ /dev/null @@ -1,15 +0,0 @@ -package symbolics.division.modfest_credits.mixin.client; - -import net.minecraft.client.MinecraftClient; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; - -@Mixin(MinecraftClient.class) -public class ExampleClientMixin { - @Inject(at = @At("HEAD"), method = "run") - private void init(CallbackInfo info) { - // This code is injected into the start of MinecraftClient.run()V - } -} \ No newline at end of file diff --git a/src/client/resources/modfest_credits.client.mixins.json b/src/client/resources/modfest_credits.client.mixins.json index 74db688..31d238a 100644 --- a/src/client/resources/modfest_credits.client.mixins.json +++ b/src/client/resources/modfest_credits.client.mixins.json @@ -1,9 +1,9 @@ { "required": true, - "package": "symbolics.division.modfest_credits.mixin.client", + "package": "symbolics.division.modfest_credits.mixin", "compatibilityLevel": "JAVA_21", "client": [ - "ExampleClientMixin" + "CreditsScreenMixin" ], "injectors": { "defaultRequire": 1 diff --git a/src/main/java/symbolics/division/modfest_credits/Modfest_credits.java b/src/main/java/symbolics/division/modfest_credits/Modfest_credits.java index e3a3f5f..12be008 100644 --- a/src/main/java/symbolics/division/modfest_credits/Modfest_credits.java +++ b/src/main/java/symbolics/division/modfest_credits/Modfest_credits.java @@ -7,18 +7,10 @@ public class Modfest_credits implements ModInitializer { public static final String MOD_ID = "modfest_credits"; - - // This logger is used to write text to the console and the log file. - // It is considered best practice to use your mod id as the logger's name. - // That way, it's clear which mod wrote info, warnings, and errors. public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID); @Override public void onInitialize() { - // This code runs as soon as Minecraft is in a mod-load-ready state. - // However, some things (like resources) may still be uninitialized. - // Proceed with mild caution. - LOGGER.info("Hello Fabric world!"); } } \ No newline at end of file diff --git a/src/main/resources/assets/minecraft/texts/credits.json b/src/main/resources/assets/minecraft/texts/credits.json new file mode 100644 index 0000000..59e9ca2 --- /dev/null +++ b/src/main/resources/assets/minecraft/texts/credits.json @@ -0,0 +1,34 @@ +[ + { + "section": "ModFest Participants", + "disciplines": [ + { + "discipline": "Armistice", + "titles": [ + { + "title": "God-Executive", + "names": [ + "hama" + ] + } + ] + } + ] + }, + { + "section": "ModFest Team", + "disciplines": [ + { + "discipline": "Being Hot + Sexy", + "titles": [ + { + "title": "Cultural Idol & Pop Icon", + "names": [ + "hama" + ] + } + ] + } + ] + } +] \ No newline at end of file diff --git a/src/main/resources/assets/minecraft/textures/gui/title/minecraft.png b/src/main/resources/assets/minecraft/textures/gui/title/minecraft.png new file mode 100644 index 0000000..c52ab5b Binary files /dev/null and b/src/main/resources/assets/minecraft/textures/gui/title/minecraft.png differ diff --git a/src/main/resources/modfest_credits.mixins.json b/src/main/resources/modfest_credits.mixins.json index edf1542..08ee9fd 100644 --- a/src/main/resources/modfest_credits.mixins.json +++ b/src/main/resources/modfest_credits.mixins.json @@ -3,7 +3,7 @@ "package": "symbolics.division.modfest_credits.mixin", "compatibilityLevel": "JAVA_21", "mixins": [ - "ExampleMixin" + ], "injectors": { "defaultRequire": 1