dev.creoii.creoapi.mixin.block.RebuildTaskMixin Maven / Gradle / Ivy
package dev.creoii.creoapi.mixin.block;
import com.llamalad7.mixinextras.sugar.Local;
import dev.creoii.creoapi.impl.block.BlockImpl;
import net.minecraft.class_2338;
import net.minecraft.class_2680;
import net.minecraft.class_4587;
import net.minecraft.class_5819;
import net.minecraft.class_750;
import net.minecraft.class_776;
import net.minecraft.class_846;
import net.minecraft.class_853;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(class_846.class_851.class_4578.class)
public class RebuildTaskMixin {
@Inject(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/block/BlockRenderManager;renderBlock(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;ZLnet/minecraft/util/math/random/Random;)V"))
private void gbw$renderSnowOverlay(float cameraX, float cameraY, float cameraZ, class_750 storage, CallbackInfoReturnable cir, @Local class_853 chunkRendererRegion, @Local class_4587 matrixStack, @Local class_5819 random, @Local class_776 blockRenderManager, @Local class_2680 blockState, @Local(ordinal = 2) class_2338 blockPos3) {
BlockImpl.applyRenderOverlayState(blockState, blockPos3, random, storage, blockRenderManager, chunkRendererRegion, matrixStack);
}
}