Skip to main content

yog_event/
lib.rs

1//! The bus's vocabulary: the events Minecraft fires (through the Java
2//! host), by plane — `player::session::Join`, `block::Break`,
3//! `server::game::Tick` … — and the services someone provides
4//! (`block::Insert`), each a message with its address and its payload's
5//! schema.
6//!
7//! Subscribing and providing (`Registry::on`/`provide`…) live in the
8//! `yog-api` facade.
9
10#[macro_use]
11mod wire;
12mod planes;
13
14pub use planes::living::{entity, player};
15pub use planes::play::{advancement, bossbar, chat, command, game, scoreboard, server};
16pub use planes::system::{bus, java, jvm, log, mirror, nanite, net};
17pub use planes::things::{block, container, content, item, particle, sound, tag, world};
18pub use planes::view::{client, key_binding, media, menu, ui, video};
19
20pub use wire::address::{Address, Cached, NO_ADDRESS, resolve};
21pub use wire::arg::Arg;
22pub use wire::call::{Caller, call, set_caller};
23pub use wire::event::{Event, EventInfo, all};
24pub use wire::handles::{Entity, Player, World};
25pub use wire::message::{Message, keyed};
26pub use wire::phase::EventPhase;
27pub use wire::service::{Service, ServiceInfo, services};
28pub use yog_core::Point;