From a568266ec91e8ddbc8b8dc86ece9b2803eda5a9e Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sun, 26 May 2024 21:49:16 +1000 Subject: Backend: Track particles command (#1787) --- .../at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/events') diff --git a/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt index 68f42f43b..ef296326d 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.events import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer +import at.hannibal2.skyhanni.utils.LorenzUtils.round import at.hannibal2.skyhanni.utils.LorenzVec import net.minecraft.util.EnumParticleTypes import net.minecraftforge.fml.common.eventhandler.Cancelable @@ -18,4 +19,16 @@ class ReceiveParticleEvent( LorenzEvent() { val distanceToPlayer by lazy { location.distanceToPlayer() } + + override fun toString(): String { + return "ReceiveParticleEvent(type='$type', location=${location.round(1)}, count=$count, speed=$speed, offset=${ + offset.round( + 1 + ) + }, longDistance=$longDistance, particleArgs=${particleArgs.contentToString()}, distanceToPlayer=${ + distanceToPlayer.round( + 1 + ) + })" + } } -- cgit