aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/events/AttackBlockEvent.kt
blob: 81a2952d0889ddb3e316d9bd3a7be39394678a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package moe.nea.firmament.events

import net.minecraft.world.entity.player.Player
import net.minecraft.world.InteractionHand
import net.minecraft.core.BlockPos
import net.minecraft.core.Direction
import net.minecraft.world.level.Level

data class AttackBlockEvent(
    val player: Player,
    val world: Level,
    val hand: InteractionHand,
    val blockPos: BlockPos,
    val direction: Direction
) : FirmamentEvent.Cancellable() {
    companion object : FirmamentEventBus<AttackBlockEvent>()
}