aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-28 14:39:42 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-28 14:39:42 +0100
commit6173d681603839168db97e3fbd2cb74c2e7a2897 (patch)
tree0dbb3041588c15a85c98a4bb1c98ebba8079d9cd /src/main/java/at/hannibal2/skyhanni/events
parentb24b16da1d19931d6d91e72bcdbebe2acd8968d0 (diff)
downloadskyhanni-6173d681603839168db97e3fbd2cb74c2e7a2897.tar.gz
skyhanni-6173d681603839168db97e3fbd2cb74c2e7a2897.tar.bz2
skyhanni-6173d681603839168db97e3fbd2cb74c2e7a2897.zip
Created EntityClickEvent.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/EntityClickEvent.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ItemClickInHandEvent.kt8
2 files changed, 8 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/EntityClickEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/EntityClickEvent.kt
new file mode 100644
index 000000000..56aa97bf7
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/events/EntityClickEvent.kt
@@ -0,0 +1,6 @@
+package at.hannibal2.skyhanni.events
+
+import at.hannibal2.skyhanni.data.ClickType
+import net.minecraft.entity.Entity
+
+class EntityClickEvent(val clickType: ClickType, val clickedEntity: Entity?): LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ItemClickInHandEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ItemClickInHandEvent.kt
index e1271b0a3..a328e599e 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/ItemClickInHandEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/ItemClickInHandEvent.kt
@@ -1,10 +1,6 @@
package at.hannibal2.skyhanni.events
+import at.hannibal2.skyhanni.data.ClickType
import net.minecraft.item.ItemStack
-class ItemClickInHandEvent(val clickType: ClickType, val itemInHand: ItemStack?): LorenzEvent() {
-
- enum class ClickType {
- LEFT_CLICK, RIGHT_CLICK
- }
-} \ No newline at end of file
+class ItemClickInHandEvent(val clickType: ClickType, val itemInHand: ItemStack?): LorenzEvent() \ No newline at end of file