diff --git a/versions/1.21.11/src/main/java/org/saturnclient/impl/cosmetics/utils/ShaderUtils.java b/versions/1.21.11/src/main/java/org/saturnclient/impl/cosmetics/utils/ShaderUtils.java index a0adaa7..b702e9f 100644 --- a/versions/1.21.11/src/main/java/org/saturnclient/impl/cosmetics/utils/ShaderUtils.java +++ b/versions/1.21.11/src/main/java/org/saturnclient/impl/cosmetics/utils/ShaderUtils.java @@ -12,19 +12,23 @@ import net.minecraft.client.render.block.entity.EndPortalBlockEntityRenderer; import net.minecraft.util.Identifier; public class ShaderUtils { - // public static final RenderPipeline END_GATEWAY_PIPELINE = RenderPipelines.register( - // RenderPipeline.builder(new RenderPipeline.Snippet[] { RenderPipelines.RENDERTYPE_END_PORTAL_SNIPPET }) - // .withLocation("pipeline/end_gateway") - // .withShaderDefine("PORTAL_LAYERS", 16) - // .withCull(false) - // .build()); + // public static final RenderPipeline END_GATEWAY_PIPELINE = + // RenderPipelines.register( + // RenderPipeline.builder(new RenderPipeline.Snippet[] { + // RenderPipelines.RENDERTYPE_END_PORTAL_SNIPPET }) + // .withLocation("pipeline/end_gateway") + // .withShaderDefine("PORTAL_LAYERS", 16) + // .withCull(false) + // .build()); - // public static final RenderLayer END_GATEWAY = RenderLayer.of("end_gateway", 1536, false, false, - // END_GATEWAY_PIPELINE, - // RenderLayer.MultiPhaseParameters.builder() - // .texture(Textures.create().add(EndPortalBlockEntityRenderer.SKY_TEXTURE, false) - // .add(EndPortalBlockEntityRenderer.PORTAL_TEXTURE, false).build()) - // .build(false)); + // public static final RenderLayer END_GATEWAY = RenderLayer.of("end_gateway", + // 1536, false, false, + // END_GATEWAY_PIPELINE, + // RenderLayer.MultiPhaseParameters.builder() + // .texture(Textures.create().add(EndPortalBlockEntityRenderer.SKY_TEXTURE, + // false) + // .add(EndPortalBlockEntityRenderer.PORTAL_TEXTURE, false).build()) + // .build(false)); public static RenderLayer getRenderLayer(IdentifierRef texture) { String path = texture.toString(); @@ -34,7 +38,7 @@ public class ShaderUtils { // return END_GATEWAY; return null; } else { - return RenderLayer.entityAlpha((Identifier) (Object) texture); + return RenderLayers.entityAlpha((Identifier) (Object) texture); } } } \ No newline at end of file diff --git a/versions/1.21.11/src/main/java/org/saturnclient/impl/mixins/TextMixin.java b/versions/1.21.11/src/main/java/org/saturnclient/impl/mixins/TextMixin.java index 9ed634f..e2fdf55 100644 --- a/versions/1.21.11/src/main/java/org/saturnclient/impl/mixins/TextMixin.java +++ b/versions/1.21.11/src/main/java/org/saturnclient/impl/mixins/TextMixin.java @@ -15,7 +15,7 @@ public interface TextMixin extends TextRef { @Override public default TextRef withFont(IdentifierRef font) { - return (TextRef) (((Text) this).copy().setStyle(Style.EMPTY.withFont(new Font((Identifier) (Object) font)))); + return (TextRef) (Text) (((Text) this).copy().setStyle(Style.EMPTY.withFont(new Font((Identifier) (Object) font)))); } @Override diff --git a/versions/1.21.11/src/main/java/org/saturnclient/impl/provider/RefConstructorImpl.java b/versions/1.21.11/src/main/java/org/saturnclient/impl/provider/RefConstructorImpl.java index cf59bd7..80b7c9a 100644 --- a/versions/1.21.11/src/main/java/org/saturnclient/impl/provider/RefConstructorImpl.java +++ b/versions/1.21.11/src/main/java/org/saturnclient/impl/provider/RefConstructorImpl.java @@ -20,6 +20,6 @@ public class RefConstructorImpl implements RefConstructorProvider { @Override public TextRef text(String text) { - return (TextRef) Text.literal(text); + return (TextRef) (Text) Text.literal(text); } }