nurtex 1.2.1

Create efficient and lightweight Minecraft bots or clients.
Documentation
use crate::protocol::types::{Experience, Rotation, Vector3};

/// Структура компонентов бота
pub struct BotComponents {
  pub position: Vector3,
  pub velocity: Vector3,
  pub rotation: Rotation,
  pub health: f32,
  pub food: i32,
  pub experience: Experience,
}

impl Default for BotComponents {
  fn default() -> Self {
    Self {
      position: Vector3::zero(),
      velocity: Vector3::zero(),
      rotation: Rotation::zero(),
      health: -1.0,
      food: -1,
      experience: Experience::default(),
    }
  }
}