diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-10-13 12:08:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-13 12:08:11 +0200 |
commit | 486231d369a8e2e8cf54f079d6105dac99dec6aa (patch) | |
tree | 04ab0da51d3dc3090a6fc57262548a42fcf71211 /src/main/java/at/hannibal2/skyhanni/events | |
parent | 37a06d12289f76ee01903454bf47d4a2b9538934 (diff) | |
download | skyhanni-486231d369a8e2e8cf54f079d6105dac99dec6aa.tar.gz skyhanni-486231d369a8e2e8cf54f079d6105dac99dec6aa.tar.bz2 skyhanni-486231d369a8e2e8cf54f079d6105dac99dec6aa.zip |
Improvement + Fix: Ashfang Features with Mob Detection (#2112)
Co-authored-by: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Co-authored-by: ItsEmpa <itsempa@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/MobEvent.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/entity/EntityLeaveWorldEvent.kt | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/MobEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/MobEvent.kt index 10172cb5f..07990ff22 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/MobEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/MobEvent.kt @@ -21,8 +21,6 @@ open class MobEvent(val mob: Mob) : LorenzEvent() { class Projectile(mob: Mob) : DeSpawn(mob) } - // TODO replace with "isFirstTime" parameter in the Spawn event. Also create an actual "player sees the mob for the first time" event - @Deprecated("Old. Will get replaced soon.") open class FirstSeen(mob: Mob) : MobEvent(mob) { class SkyblockMob(mob: Mob) : FirstSeen(mob) class Summon(mob: Mob) : FirstSeen(mob) diff --git a/src/main/java/at/hannibal2/skyhanni/events/entity/EntityLeaveWorldEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/entity/EntityLeaveWorldEvent.kt new file mode 100644 index 000000000..74d885e11 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/events/entity/EntityLeaveWorldEvent.kt @@ -0,0 +1,6 @@ +package at.hannibal2.skyhanni.events.entity + +import at.hannibal2.skyhanni.api.event.GenericSkyHanniEvent +import net.minecraft.entity.Entity + +class EntityLeaveWorldEvent<T : Entity>(val entity: T) : GenericSkyHanniEvent<T>(entity.javaClass) |