blob: 5174a5118f3d28d34bc2784c2cc5ec760babea99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
package moe.nea.firmament.events
import net.minecraft.world.entity.player.Player
import net.minecraft.world.item.ItemStack
import net.minecraft.world.InteractionHand
import net.minecraft.world.level.Level
data class UseItemEvent(val playerEntity: Player, val world: Level, val hand: InteractionHand) : FirmamentEvent.Cancellable() {
companion object : FirmamentEventBus<UseItemEvent>()
val item: ItemStack = playerEntity.getItemInHand(hand)
}
|