From a4946da8409040003d96c7d8d43ed394597bf675 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Tue, 19 Mar 2024 10:38:45 +0100 Subject: Improvement: Lane Switch v2 (#1208) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/events/CropClickEvent.kt | 2 ++ .../at/hannibal2/skyhanni/events/farming/FarmingLaneSwitchEvent.kt | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/events/farming/FarmingLaneSwitchEvent.kt (limited to 'src/main/java/at/hannibal2/skyhanni/events') diff --git a/src/main/java/at/hannibal2/skyhanni/events/CropClickEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/CropClickEvent.kt index 1bc664cda..960724a17 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/CropClickEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/CropClickEvent.kt @@ -2,10 +2,12 @@ package at.hannibal2.skyhanni.events import at.hannibal2.skyhanni.data.ClickType import at.hannibal2.skyhanni.features.garden.CropType +import at.hannibal2.skyhanni.utils.LorenzVec import net.minecraft.block.state.IBlockState import net.minecraft.item.ItemStack class CropClickEvent( + val position: LorenzVec, val crop: CropType, val blockState: IBlockState, val clickType: ClickType, diff --git a/src/main/java/at/hannibal2/skyhanni/events/farming/FarmingLaneSwitchEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/farming/FarmingLaneSwitchEvent.kt new file mode 100644 index 000000000..3f78fd9c0 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/events/farming/FarmingLaneSwitchEvent.kt @@ -0,0 +1,6 @@ +package at.hannibal2.skyhanni.events.farming + +import at.hannibal2.skyhanni.events.LorenzEvent +import at.hannibal2.skyhanni.features.garden.farming.lane.FarmingLane + +class FarmingLaneSwitchEvent(val lane: FarmingLane?) : LorenzEvent() -- cgit