fabric-renderer-api-v1-7.2.3+9be2a36e6f.jar
Download file
package net.fabricmc.fabric.mixin.renderer.client.block.render;
import com.llamalad7.mixinextras.sugar.Local;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.class_1087;
import net.minecraft.class_11659;
import net.minecraft.class_1921;
import net.minecraft.class_2338;
import net.minecraft.class_2680;
import net.minecraft.class_4587;
import net.minecraft.class_9891;
import net.minecraft.class_991;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
@Environment(EnvType.CLIENT)
@Mixin({class_991.class})
abstract class MooshroomMushroomFeatureRendererMixin {
@Redirect(
method = {"method_37314(Lnet/minecraft/class_4587;Lnet/minecraft/class_11659;IZILnet/minecraft/class_2680;ILnet/minecraft/class_1087;)V"},
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/class_11659;method_73484(Lnet/minecraft/class_4587;Lnet/minecraft/class_1921;Lnet/minecraft/class_1087;FFFIII)V"
)
)
private void renderProxy(class_11659 commandQueue, class_4587 matrices, class_1921 renderLayer, class_1087 model, float r, float g, float b, int light, int overlay, int outlineColor, @Local class_2680 blockState) {
commandQueue.submitBlockStateModel(matrices, (blockLayer) -> renderLayer, model, 1.0F, 1.0F, 1.0F, light, overlay, outlineColor, class_9891.field_52611, class_2338.field_10980, blockState);
}
}
Download file