From 8df225399f1932b8824d2fc44f4c964bc47fc6aa Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 27 Nov 2024 17:26:42 +0100 Subject: feat: Add pickobulus blocker on private island --- src/main/kotlin/events/UseItemEvent.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main/kotlin/events/UseItemEvent.kt (limited to 'src/main/kotlin/events/UseItemEvent.kt') diff --git a/src/main/kotlin/events/UseItemEvent.kt b/src/main/kotlin/events/UseItemEvent.kt new file mode 100644 index 0000000..e294bb1 --- /dev/null +++ b/src/main/kotlin/events/UseItemEvent.kt @@ -0,0 +1,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() + val item: ItemStack = playerEntity.getStackInHand(hand) +} -- cgit