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 media;
39pub mod menu;
40pub mod mirror;
41pub mod nanite;
42pub mod net;
43pub mod particle;
44pub mod player;
45pub mod scoreboard;
46pub mod server;
47pub mod sound;
48pub mod tag;
49pub mod ui;
50pub mod video;
51pub mod world;
52
53pub use address::{Address, Cached, NO_ADDRESS, resolve};
54pub use arg::Arg;
55pub use call::{Caller, call, set_caller};
56pub use event::{Event, EventInfo, all};
57pub use handles::{Entity, Player, World};
58pub use message::{Message, keyed};
59pub use phase::EventPhase;
60pub use service::{Service, ServiceInfo, services};
61pub use yog_core::Point;