chore: move to crates folder

This commit is contained in:
Alexander Medvedev committed 2026-08-06 12:56:40 +02:00
1 parent 5d10c0d8a8
commit cb3660bcd2
3393 files changed
+1270 -741

No files matched your search

@@ -0,0 +1,20 @@
use super::super::FromIntoEvent;
use crate::wit::pumpkin::plugin::event::{BlockFromToEventData, Event, EventType};
/// Event triggered when a fluid flows from one block position to another.
pub struct BlockFromToEvent;
impl FromIntoEvent for BlockFromToEvent {
const EVENT_TYPE: EventType = EventType::BlockFromToEvent;
type Data = BlockFromToEventData;
fn data_from_event(event: Event) -> Self::Data {
match event {
Event::BlockFromToEvent(data) => data,
_ => panic!("unexpected event"),
}
}
fn data_into_event(data: Self::Data) -> Event {
Event::BlockFromToEvent(data)
}
}