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 message;
12mod address;
13mod arg;
14mod call;
15mod event;
16mod handles;
17pub mod java;
18mod phase;
19mod service;
20#[cfg(test)]
21mod tests;
22
23pub mod advancement;
24pub mod block;
25pub mod bossbar;
26pub mod bus;
27pub mod chat;
28pub mod client;
29pub mod command;
30pub mod container;
31pub mod content;
32pub mod entity;
33pub mod game;
34pub mod item;
35pub mod jvm;
36pub mod key_binding;
37pub mod log;
38pub mod menu;
39pub mod mirror;
40pub mod net;
41pub mod particle;
42pub mod player;
43pub mod scoreboard;
44pub mod server;
45pub mod sound;
46pub mod tag;
47pub mod ui;
48pub mod world;
49
50pub use address::{Address, Cached, NO_ADDRESS, resolve};
51pub use arg::Arg;
52pub use call::{Caller, call, set_caller};
53pub use event::{Event, EventInfo, all};
54pub use handles::{Entity, Player, World};
55pub use message::{Message, keyed};
56pub use phase::EventPhase;
57pub use service::{Service, ServiceInfo, services};
58pub use yog_core::Point;