1.21.11: Fix text stuff
This commit is contained in:
+9
-5
@@ -12,17 +12,21 @@ import net.minecraft.client.render.block.entity.EndPortalBlockEntityRenderer;
|
|||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
public class ShaderUtils {
|
public class ShaderUtils {
|
||||||
// public static final RenderPipeline END_GATEWAY_PIPELINE = RenderPipelines.register(
|
// public static final RenderPipeline END_GATEWAY_PIPELINE =
|
||||||
// RenderPipeline.builder(new RenderPipeline.Snippet[] { RenderPipelines.RENDERTYPE_END_PORTAL_SNIPPET })
|
// RenderPipelines.register(
|
||||||
|
// RenderPipeline.builder(new RenderPipeline.Snippet[] {
|
||||||
|
// RenderPipelines.RENDERTYPE_END_PORTAL_SNIPPET })
|
||||||
// .withLocation("pipeline/end_gateway")
|
// .withLocation("pipeline/end_gateway")
|
||||||
// .withShaderDefine("PORTAL_LAYERS", 16)
|
// .withShaderDefine("PORTAL_LAYERS", 16)
|
||||||
// .withCull(false)
|
// .withCull(false)
|
||||||
// .build());
|
// .build());
|
||||||
|
|
||||||
// public static final RenderLayer END_GATEWAY = RenderLayer.of("end_gateway", 1536, false, false,
|
// public static final RenderLayer END_GATEWAY = RenderLayer.of("end_gateway",
|
||||||
|
// 1536, false, false,
|
||||||
// END_GATEWAY_PIPELINE,
|
// END_GATEWAY_PIPELINE,
|
||||||
// RenderLayer.MultiPhaseParameters.builder()
|
// RenderLayer.MultiPhaseParameters.builder()
|
||||||
// .texture(Textures.create().add(EndPortalBlockEntityRenderer.SKY_TEXTURE, false)
|
// .texture(Textures.create().add(EndPortalBlockEntityRenderer.SKY_TEXTURE,
|
||||||
|
// false)
|
||||||
// .add(EndPortalBlockEntityRenderer.PORTAL_TEXTURE, false).build())
|
// .add(EndPortalBlockEntityRenderer.PORTAL_TEXTURE, false).build())
|
||||||
// .build(false));
|
// .build(false));
|
||||||
|
|
||||||
@@ -34,7 +38,7 @@ public class ShaderUtils {
|
|||||||
// return END_GATEWAY;
|
// return END_GATEWAY;
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return RenderLayer.entityAlpha((Identifier) (Object) texture);
|
return RenderLayers.entityAlpha((Identifier) (Object) texture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@ public interface TextMixin extends TextRef {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public default TextRef withFont(IdentifierRef font) {
|
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
|
@Override
|
||||||
|
|||||||
+1
-1
@@ -20,6 +20,6 @@ public class RefConstructorImpl implements RefConstructorProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TextRef text(String text) {
|
public TextRef text(String text) {
|
||||||
return (TextRef) Text.literal(text);
|
return (TextRef) (Text) Text.literal(text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user