Update to 1.21.4
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//#if MC>=10904
|
||||
//#if MC>=10904 && MC<11900
|
||||
package com.replaymod.render.blend.mixin;
|
||||
|
||||
import net.minecraft.client.render.item.ItemRenderer;
|
||||
|
||||
@@ -33,7 +33,12 @@ import net.minecraft.client.render.Camera;
|
||||
@Mixin(ParticleManager.class)
|
||||
public abstract class MixinParticleManager {
|
||||
//#if MC>=11500
|
||||
//#if MC>=12104
|
||||
//$$ @Redirect(method = "renderParticles(Lnet/minecraft/client/render/Camera;FLnet/minecraft/client/render/VertexConsumerProvider$Immediate;Lnet/minecraft/client/particle/ParticleTextureSheet;Ljava/util/Queue;)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/particle/Particle;render(Lnet/minecraft/client/render/VertexConsumer;Lnet/minecraft/client/render/Camera;F)V"))
|
||||
//$$ static
|
||||
//#else
|
||||
@Redirect(method = "renderParticles", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/particle/Particle;buildGeometry(Lnet/minecraft/client/render/VertexConsumer;Lnet/minecraft/client/render/Camera;F)V"))
|
||||
//#endif
|
||||
private void buildOrientedGeometry(Particle particle, VertexConsumer vertexConsumer, Camera camera, float partialTicks) {
|
||||
EntityRendererHandler handler = ((EntityRendererHandler.IEntityRenderer) MCVer.getMinecraft().gameRenderer).replayModRender_getHandler();
|
||||
if (handler == null || !handler.omnidirectional) {
|
||||
@@ -55,7 +60,7 @@ public abstract class MixinParticleManager {
|
||||
}
|
||||
}
|
||||
|
||||
private void buildGeometry(Particle particle, VertexConsumer vertexConsumer, Camera camera, float partialTicks) {
|
||||
private static void buildGeometry(Particle particle, VertexConsumer vertexConsumer, Camera camera, float partialTicks) {
|
||||
//#if MC<11900
|
||||
BlendState blendState = BlendState.getState();
|
||||
if (blendState != null) {
|
||||
|
||||
@@ -31,7 +31,9 @@ public abstract class Mixin_ChromaKeyColorSky {
|
||||
//#else
|
||||
//$$ method = "renderSky(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/math/Matrix4f;FLjava/lang/Runnable;)V",
|
||||
//#endif
|
||||
//#if MC>=12102
|
||||
//#if MC>=12104
|
||||
//$$ at = @At("HEAD"),
|
||||
//#elseif MC>=12102
|
||||
//$$ at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/RenderPhase$Target;startDrawing()V", shift = At.Shift.AFTER),
|
||||
//#else
|
||||
//$$ at = @At(value = "INVOKE", target = "Ljava/lang/Runnable;run()V", remap = false, shift = At.Shift.AFTER),
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
//#if MC<10904
|
||||
//$$ "EntityAccessor",
|
||||
//#endif
|
||||
//#if MC>=10904
|
||||
//#if MC>=10904 && MC<11900
|
||||
"ItemRendererAccessor",
|
||||
//#endif
|
||||
"ParticleAccessor",
|
||||
|
||||
Reference in New Issue
Block a user