mcrs 0.4.3

Interface with a local Minecraft server
Documentation
#![allow(clippy::uninlined_format_args)]

//! **mcrs**: A Rust interface for a Minecraft server.
//!
//! Based on [mcpp](https://github.com/rozukke/mcpp).
//!
//! Requires a server running [ELCI](https://github.com/rozukke/elci).
//!
//! ```
//! # use mcrs::Connection;
//! let mut mc = Connection::new().unwrap();
//! mc.post_to_chat("Hello world!").unwrap();
//! ```

/// Types related to [`Chunk`].
pub mod chunk;
/// Types related to [`Heights`].
pub mod heights;

mod argument;
mod block;
mod connection;
mod coordinate;
mod coordinate2d;
mod error;
mod response;
mod size;
mod size2d;

pub use block::{Block, BLOCKS};
pub use chunk::Chunk;
pub use connection::Connection;
pub use coordinate::Coordinate;
pub use coordinate2d::Coordinate2D;
pub use error::Error;
pub use heights::Heights;
pub use size::Size;
pub use size2d::Size2D;

type Result<T> = std::result::Result<T, Error>;