aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/events/UseItemEvent.kt
blob: e294bb138be465bbb324bc654883051fe580f277 (plain)
1
2
3
4
5
6
7
8
9
10
11
package moe.nea.firmament.events

import net.minecraft.entity.player.PlayerEntity
import net.minecraft.item.ItemStack
import net.minecraft.util.Hand
import net.minecraft.world.World

data class UseItemEvent(val playerEntity: PlayerEntity, val world: World, val hand: Hand) : FirmamentEvent.Cancellable() {
	companion object : FirmamentEventBus<UseItemEvent>()
	val item: ItemStack = playerEntity.getStackInHand(hand)
}