diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-07 12:34:10 +0900 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-07 12:34:10 +0900 |
commit | c9858f8884c606d7b2d673a93f84c1f00822dcfe (patch) | |
tree | b8b51addc47748cb82c8ab1f56b1269ef20ec7f6 | |
parent | 52350839ef257791aaeaab2cfd464f4d0fba3377 (diff) | |
download | OneConfig-c9858f8884c606d7b2d673a93f84c1f00822dcfe.tar.gz OneConfig-c9858f8884c606d7b2d673a93f84c1f00822dcfe.tar.bz2 OneConfig-c9858f8884c606d7b2d673a93f84c1f00822dcfe.zip |
make egg 1 customizable
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java | 5 | ||||
-rw-r--r-- | versions/src/main/java/cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java b/src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java index f98a913..cb93f0a 100644 --- a/src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java +++ b/src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java @@ -24,6 +24,11 @@ public class Preferences extends InternalConfig { public static OneKeyBind oneConfigKeyBind = new OneKeyBind(UKeyboard.KEY_RSHIFT); @Switch( + name = "Easter Egg 1" + ) + public static boolean easterEgg1 = true; + + @Switch( name = "Use custom GUI scale", subcategory = "GUI Scale", size = 2 diff --git a/versions/src/main/java/cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java b/versions/src/main/java/cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java index b7e11b8..f5e7bed 100644 --- a/versions/src/main/java/cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java +++ b/versions/src/main/java/cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java @@ -1,6 +1,7 @@ //#if MC<=11202 package cc.polyfrost.oneconfig.internal.eggs; +import cc.polyfrost.oneconfig.internal.config.Preferences; import net.minecraft.client.model.ModelPig; import net.minecraft.client.renderer.entity.RenderPig; import net.minecraft.client.renderer.entity.layers.LayerRenderer; @@ -23,7 +24,7 @@ public class TechnobladeCrownRenderer<T extends EntityPig> implements LayerRende @Override public void doRenderLayer(T entitylivingbaseIn, float f, float g, float partialTicks, float h, float i, float j, float scale) { - if (entitylivingbaseIn.hasCustomName() && entitylivingbaseIn.getCustomNameTag().equals("Technoblade")) { + if (Preferences.easterEgg1 && entitylivingbaseIn.hasCustomName() && entitylivingbaseIn.getCustomNameTag().equals("Technoblade")) { this.renderer.bindTexture(CROWN_TEXTURE); this.pigModel.setModelAttributes(renderer.getMainModel()); this.pigModel.render(entitylivingbaseIn, f, g, h, i, j, scale); |