package land.chipmunk.chipmunkmod.mixin;

import net.minecraft.client.particle.ElderGuardianAppearanceParticle;
import net.minecraft.client.particle.Particle;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.particle.SimpleParticleType;
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(ElderGuardianAppearanceParticle.Factory.class)
public class ElderGuardianAppearanceParticleMixin {
    @Inject(
            method = "createParticle(Lnet/minecraft/particle/SimpleParticleType;Lnet/minecraft/client/world/ClientWorld;DDDDDD)Lnet/minecraft/client/particle/Particle;",
            at = @At("RETURN"),
            cancellable = true
    )
    private void createParticle (
            final SimpleParticleType simpleParticleType,
            final ClientWorld clientWorld,
            final double d,
            final double e,
            final double f,
            final double g,
            final double h,
            final double i,
            final CallbackInfoReturnable<Particle> cir
    ) {
        // slash scare command
        cir.setReturnValue(null);
    }
}
