diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-10-01 13:17:34 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-10-01 13:17:34 +0200 |
commit | 9946e80fa0fb5da41c4ad8e5ace2edad6c519167 (patch) | |
tree | cb9d11ae19767a47739f74f553a89657c2796016 /src/main/java/at/hannibal2/skyhanni/mixins | |
parent | 0185d2cfdceb33c3f72f79f6e119b896f56b7a79 (diff) | |
download | skyhanni-9946e80fa0fb5da41c4ad8e5ace2edad6c519167.tar.gz skyhanni-9946e80fa0fb5da41c4ad8e5ace2edad6c519167.tar.bz2 skyhanni-9946e80fa0fb5da41c4ad8e5ace2edad6c519167.zip |
add all particles to hide in ashfang and blaze features
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinRenderGlobal.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinRenderGlobal.java b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinRenderGlobal.java new file mode 100644 index 000000000..64f9b1c9a --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinRenderGlobal.java @@ -0,0 +1,19 @@ +package at.hannibal2.skyhanni.mixins.transformers; + +import at.hannibal2.skyhanni.events.SpawnParticleEvent; +import net.minecraft.client.renderer.RenderGlobal; +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.CallbackInfo; + +@Mixin(RenderGlobal.class) +public class MixinRenderGlobal { + + @Inject(method = "spawnParticle(IZDDDDDD[I)V", at = @At("HEAD"), cancellable = true) + private void spawnParticle(int id, boolean ignoreRange, double x, double y, double z, double xOffset, double yOffset, double zOffset, int[] p_180442_15_, CallbackInfo ci) { + if (new SpawnParticleEvent(id, x, y, z).postAndCatch()) { + ci.cancel(); + } + } +} |