summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-09-04 19:03:24 +0200
committerLorenz <lo.scherf@gmail.com>2022-09-04 19:03:24 +0200
commitb33102aa38f460da3f21708d9bb31f030c517cf7 (patch)
tree36deac1bd2ff2ea317b6f6e17205bf6c2192756d /src/main/java/at/hannibal2/skyhanni/events
parentf4e16cc1b3accc3c5ae71ffb42a0df83ed6ffc4b (diff)
downloadskyhanni-b33102aa38f460da3f21708d9bb31f030c517cf7.tar.gz
skyhanni-b33102aa38f460da3f21708d9bb31f030c517cf7.tar.bz2
skyhanni-b33102aa38f460da3f21708d9bb31f030c517cf7.zip
add highlight different ashfang blazes in their respective color
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/RenderMobColoredEvent.kt5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ResetEntityHurtTimeEvent.kt8
2 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/RenderMobColoredEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/RenderMobColoredEvent.kt
new file mode 100644
index 000000000..39d36643d
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/events/RenderMobColoredEvent.kt
@@ -0,0 +1,5 @@
+package at.hannibal2.skyhanni.events
+
+import net.minecraft.entity.EntityLivingBase
+
+class RenderMobColoredEvent(val entity: EntityLivingBase, var color: Int) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ResetEntityHurtTimeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ResetEntityHurtTimeEvent.kt
new file mode 100644
index 000000000..ea644e680
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/events/ResetEntityHurtTimeEvent.kt
@@ -0,0 +1,8 @@
+package at.hannibal2.skyhanni.events
+
+import net.minecraft.entity.EntityLivingBase
+import java.awt.Color
+
+class ResetEntityHurtTimeEvent(val entity: EntityLivingBase, var shouldReset: Boolean) : LorenzEvent()
+
+fun Color.withAlpha(alpha: Int): Int = (alpha.coerceIn(0, 255) shl 24) or (this.rgb and 0x00ffffff) \ No newline at end of file