Skip to main content

yog_core/
lib.rs

1//! Core Yog types and handles shared across all API modules.
2//!
3//! Kept tiny and dependency-free: every other `yog-*` crate builds on this, and
4//! the facade [`yog-api`] re-exports it.
5
6mod server;
7
8pub use server::Server;
9
10/// A block position in the world.
11#[derive(Debug, Clone, Copy, PartialEq, Eq)]
12pub struct BlockPos {
13    pub x: i32,
14    pub y: i32,
15    pub z: i32,
16}
17
18impl BlockPos {
19    pub const fn new(x: i32, y: i32, z: i32) -> Self {
20        Self { x, y, z }
21    }
22}