diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-02 22:21:44 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-02 22:21:44 +0100 |
commit | 5052aca0aada1d964117542b00220c2f200c6d74 (patch) | |
tree | 8ea009547ea1562210c79f017859d72fdd22f203 /src/main/java/at/hannibal2 | |
parent | 71adca9654bb933405dce2bde970b0a678a55137 (diff) | |
download | skyhanni-5052aca0aada1d964117542b00220c2f200c6d74.tar.gz skyhanni-5052aca0aada1d964117542b00220c2f200c6d74.tar.bz2 skyhanni-5052aca0aada1d964117542b00220c2f200c6d74.zip |
Create additional values in the EntityEquipmentChangeEvent for chest, leggings, feet and hand.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt index 26705ab5e..eecc132ca 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt @@ -9,6 +9,10 @@ data class EntityEquipmentChangeEvent( val newItemStack: ItemStack? ) : LorenzEvent() { val isHead get() = equipmentSlot == EQUIPMENT_SLOT_HEAD + val isChest get() = equipmentSlot == EQUIPMENT_SLOT_CHEST + val isLeggings get() = equipmentSlot == EQUIPMENT_SLOT_LEGGINGS + val isFeet get() = equipmentSlot == EQUIPMENT_SLOT_FEET + val isHand get() = equipmentSlot == EQUIPMENT_SLOT_HAND companion object { const val EQUIPMENT_SLOT_HEAD = 4 @@ -17,4 +21,4 @@ data class EntityEquipmentChangeEvent( const val EQUIPMENT_SLOT_FEET = 1 const val EQUIPMENT_SLOT_HAND = 0 } -}
\ No newline at end of file +} |