elder guardian particle block
its so annoying
This commit is contained in:
parent
905f8e568c
commit
d7a69dc0e5
2 changed files with 20 additions and 1 deletions
|
@ -0,0 +1,18 @@
|
||||||
|
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.DefaultParticleType;
|
||||||
|
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/DefaultParticleType;Lnet/minecraft/client/world/ClientWorld;DDDDDD)Lnet/minecraft/client/particle/Particle;", at = @At("HEAD"))
|
||||||
|
private void createParticle (DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i, CallbackInfoReturnable<Particle> cir) {
|
||||||
|
cir.cancel();
|
||||||
|
}
|
||||||
|
}
|
|
@ -16,7 +16,8 @@
|
||||||
"DecoderHandlerMixin",
|
"DecoderHandlerMixin",
|
||||||
"StringHelperMixin",
|
"StringHelperMixin",
|
||||||
"NbtIoMixin",
|
"NbtIoMixin",
|
||||||
"KeyboardInputMixin"
|
"KeyboardInputMixin",
|
||||||
|
"ElderGuardianAppearanceParticleMixin"
|
||||||
],
|
],
|
||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
|
|
Loading…
Reference in a new issue