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