#![forbid(unsafe_code)]
#![cfg_attr(test, recursion_limit = "256")]
#![warn(missing_docs, rust_2018_idioms, unreachable_pub, unnameable_types)]
#![cfg_attr(
not(any(
feature = "v1_8",
feature = "v1_12_2",
feature = "v1_16_5",
feature = "v26_1",
feature = "v26_2"
)),
allow(dead_code, unused_variables, unused_imports)
)]
mod client;
pub mod common;
pub mod dialog;
mod engine;
#[cfg(all(
test,
feature = "v1_8",
feature = "v1_12_2",
feature = "v1_16_5",
feature = "v26_1"
))]
mod engine_bench;
mod error;
pub mod hands;
mod interest;
pub mod movement;
#[cfg(all(test, feature = "v26_1", feature = "v1_8", feature = "v1_16_5"))]
#[path = "../../ghast-physics/tests/common/mod.rs"]
#[allow(
clippy::all,
dead_code,
unused_imports,
unexpected_cfgs,
unreachable_pub,
missing_docs
)]
mod phys_golden;
#[cfg(any(
feature = "v1_8",
feature = "v1_12_2",
feature = "v1_16_5",
feature = "v26_1",
feature = "v26_2"
))]
mod record;
pub mod rotation;
mod sim;
pub mod swarm;
#[cfg(all(test, feature = "v1_8"))]
mod trace_replay;
pub mod version;
pub use client::{Account, Client, TICK};
pub use common::{
ChatMessage, ClientSettings, Controls, Face, GameMode, Health, Pose, Vec3, Vehicle,
};
pub use engine::{
Behavior, ClickRefused, ClickTicket, Idle, RawInbound, TeleportEvent, TickContext, TickEvents,
TickView,
};
pub use error::{ClientError, SessionEnd};
pub use ghast_auth::chat::ProfileKeys;
pub use ghast_entity as entity;
pub use ghast_inventory as inventory;
pub use ghast_protocol::BlockPos;
pub use ghast_world as world;
pub use hands::{BlockHit, Buttons};
pub use interest::Interests;
pub use sim::{ForceStepPosition, WorldView};
pub use swarm::{BotContext, BotError, BotHandle, ShutdownReport, Swarm, SwarmBuilder};
pub use version::GameVersion;
pub mod connect {
pub use ghast_auth::connect::{
ConnectError, Connector, ProxyPolicy, Route, TargetAddr, Timeouts,
};
pub use ghast_auth::socks5::Socks5Proxy;
}