aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-04-11 17:59:57 -0400
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-04-11 17:59:57 -0400
commit8d8c32cdec81e02f8a43a86821532f1c9ba35519 (patch)
treeb9e1cdd65381813d927e8c1bbbfb5e08b15997fb
parent0125cda19bd23da2695092815eba6b5bf8fb1f4b (diff)
downloadSkytilsMod-8d8c32cdec81e02f8a43a86821532f1c9ba35519.tar.gz
SkytilsMod-8d8c32cdec81e02f8a43a86821532f1c9ba35519.tar.bz2
SkytilsMod-8d8c32cdec81e02f8a43a86821532f1c9ba35519.zip
Add sychic pet to splash screen
-rw-r--r--src/main/java/skytils/skytilsmod/mixins/MixinSplashProgress.java34
-rw-r--r--src/main/resources/assets/skytils/sychicpet.gifbin0 -> 112384 bytes
-rw-r--r--src/main/resources/mixins.skytils.json1
3 files changed, 35 insertions, 0 deletions
diff --git a/src/main/java/skytils/skytilsmod/mixins/MixinSplashProgress.java b/src/main/java/skytils/skytilsmod/mixins/MixinSplashProgress.java
new file mode 100644
index 00000000..1df03b7d
--- /dev/null
+++ b/src/main/java/skytils/skytilsmod/mixins/MixinSplashProgress.java
@@ -0,0 +1,34 @@
+/*
+ * Skytils - Hypixel Skyblock Quality of Life Mod
+ * Copyright (C) 2021 Skytils
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+package skytils.skytilsmod.mixins;
+
+import net.minecraft.util.ResourceLocation;
+import net.minecraftforge.fml.client.SplashProgress;
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.injection.At;
+import org.spongepowered.asm.mixin.injection.ModifyVariable;
+
+@Mixin(SplashProgress.class)
+public class MixinSplashProgress {
+
+ @ModifyVariable(method = "start", at = @At(value = "STORE"), ordinal = 2)
+ private static ResourceLocation setForgeGif(ResourceLocation resourceLocation) {
+ return new ResourceLocation("skytils", "sychicpet.gif");
+ }
+}
diff --git a/src/main/resources/assets/skytils/sychicpet.gif b/src/main/resources/assets/skytils/sychicpet.gif
new file mode 100644
index 00000000..907bc490
--- /dev/null
+++ b/src/main/resources/assets/skytils/sychicpet.gif
Binary files differ
diff --git a/src/main/resources/mixins.skytils.json b/src/main/resources/mixins.skytils.json
index d78584d5..6cc0396d 100644
--- a/src/main/resources/mixins.skytils.json
+++ b/src/main/resources/mixins.skytils.json
@@ -33,6 +33,7 @@
"MixinRenderLightningBolt",
"MixinSlot",
"MixinSoundManager",
+ "MixinSplashProgress",
"MixinTileEntityChestRenderer",
"MixinUtil",
"MixinWorld"