nurtex 0.5.2

Lightweight library for creating Minecraft bots. Asynchronous, optimized, ease of coding.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Структура данных состояния
#[derive(Debug, Clone, Copy)]
pub struct State {
  pub health: f32,
  pub satiety: u32,
  pub saturation: f32,
}

impl Default for State {
  fn default() -> Self {
    Self {
      health: 0.0,
      satiety: 0,
      saturation: 0.0,
    }
  }
}