aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/mixins
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-10-01 13:17:34 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-10-01 13:17:34 +0200
commit9946e80fa0fb5da41c4ad8e5ace2edad6c519167 (patch)
treecb9d11ae19767a47739f74f553a89657c2796016 /src/main/java/at/hannibal2/skyhanni/mixins
parent0185d2cfdceb33c3f72f79f6e119b896f56b7a79 (diff)
downloadskyhanni-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.java19
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();
+ }
+ }
+}