diff options
author | Roman / Linnea Gräf <nea@nea.moe> | 2023-06-24 19:03:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-24 19:03:52 +0200 |
commit | 847100cb50dea171d494e541bc3a19bf8438ba3d (patch) | |
tree | c5f3064dc3c4beeab793c7e78eab36bf1ce655ea /src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt | |
parent | 105bc5ee1593a8c16842026c600fc9ffcd2977e5 (diff) | |
download | skyhanni-847100cb50dea171d494e541bc3a19bf8438ba3d.tar.gz skyhanni-847100cb50dea171d494e541bc3a19bf8438ba3d.tar.bz2 skyhanni-847100cb50dea171d494e541bc3a19bf8438ba3d.zip |
Merge pull request #256
* Remove old update data after each update
* VoltHighlighter
* VoltHighlighter
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt new file mode 100644 index 000000000..c9a67f154 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt @@ -0,0 +1,18 @@ +package at.hannibal2.skyhanni.events + +import net.minecraft.entity.Entity +import net.minecraft.item.ItemStack + +data class EntityEquipmentChangeEvent( + val entity: Entity, + val equipmentSlot: Int, + val newItemStack: ItemStack? +) : LorenzEvent() { + companion object { + val EQUIPMENT_SLOT_HEAD = 4 + val EQUIPMENT_SLOT_CHEST = 3 + val EQUIPMENT_SLOT_LEGGINGS = 2 + val EQUIPMENT_SLOT_FEET = 1 + val EQUIPMENT_SLOT_HAND = 0 + } +}
\ No newline at end of file |