blob: 2822c28a98c5d5a4f4da7dd47d09bd1a8b4168ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.data.ClickType
import at.hannibal2.skyhanni.utils.BlockUtils.getBlockStateAt
import at.hannibal2.skyhanni.utils.LorenzVec
import net.minecraft.item.ItemStack
import net.minecraftforge.fml.common.eventhandler.Cancelable
@Cancelable
class BlockClickEvent(clickType: ClickType, val position: LorenzVec, itemInHand: ItemStack?) :
WorldClickEvent(itemInHand, clickType) {
val getBlockState by lazy { position.getBlockStateAt() }
}
|